projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f45731
)
Don't emit two comparisons when comparing a FP value against zero!
author
Chris Lattner
<sabre@nondot.org>
Thu, 17 Mar 2005 16:29:26 +0000
(16:29 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 17 Mar 2005 16:29:26 +0000
(16:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20651
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/X86ISelPattern.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86ISelPattern.cpp
b/lib/Target/X86/X86ISelPattern.cpp
index 9b68ad8b02d15c5e79a84d2a6204bec8ea0fa529..4ae21305b7b02a5bab76a2e4522fb9990aecdc44 100644
(file)
--- a/
lib/Target/X86/X86ISelPattern.cpp
+++ b/
lib/Target/X86/X86ISelPattern.cpp
@@
-1078,6
+1078,7
@@
void ISel::EmitCMP(SDOperand LHS, SDOperand RHS, bool HasOneUse) {
BuildMI(BB, X86::FTST, 1).addReg(Reg);
BuildMI(BB, X86::FNSTSW8r, 0);
BuildMI(BB, X86::SAHF, 1);
+ return;
}
}