[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelSimple.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Oct 8 09:34:24 PDT 2004
Changes in directory llvm/lib/Target/X86:
X86ISelSimple.cpp updated: 1.284 -> 1.285
---
Log message:
Fix bug: 2004-10-08-SelectSetCCFold.llx. Normally this is hidden by the
instcombine xform, which is why we didn't notice it before.
---
Diffs of the changes: (+2 -1)
Index: llvm/lib/Target/X86/X86ISelSimple.cpp
diff -u llvm/lib/Target/X86/X86ISelSimple.cpp:1.284 llvm/lib/Target/X86/X86ISelSimple.cpp:1.285
--- llvm/lib/Target/X86/X86ISelSimple.cpp:1.284 Wed Oct 6 09:31:50 2004
+++ llvm/lib/Target/X86/X86ISelSimple.cpp Fri Oct 8 11:34:13 2004
@@ -847,7 +847,8 @@
if ((isa<BranchInst>(User) || isa<SelectInst>(User)) &&
(getClassB(SCI->getOperand(0)->getType()) != cLong ||
SCI->getOpcode() == Instruction::SetEQ ||
- SCI->getOpcode() == Instruction::SetNE))
+ SCI->getOpcode() == Instruction::SetNE) &&
+ User->getOperand(0) == V)
return SCI;
}
return 0;
More information about the llvm-commits
mailing list