[llvm-commits] CVS: llvm/lib/Target/Alpha/AlphaISelPattern.cpp
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Sun Apr 3 11:25:07 PDT 2005
Changes in directory llvm/lib/Target/Alpha:
AlphaISelPattern.cpp updated: 1.77 -> 1.78
---
Log message:
fix 101 regressions
---
Diffs of the changes: (+3 -3)
AlphaISelPattern.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Index: llvm/lib/Target/Alpha/AlphaISelPattern.cpp
diff -u llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.77 llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.78
--- llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.77 Sat Apr 2 16:32:39 2005
+++ llvm/lib/Target/Alpha/AlphaISelPattern.cpp Sun Apr 3 13:24:50 2005
@@ -1591,7 +1591,7 @@
//Int SetCC -> Select
//Dropping the CC is only useful if we are comparing to 0
if(SetCC->getOperand(1).getOpcode() == ISD::Constant &&
- cast<ConstantSDNode>(SetCC->getOperand(0))->getValue() == 0)
+ cast<ConstantSDNode>(SetCC->getOperand(1))->getValue() == 0)
{
bool useI = (SetCC->getOperand(1).getOpcode() == ISD::Constant &&
cast<ConstantSDNode>(SetCC->getOperand(1))->getValue() <= 255);
@@ -1617,8 +1617,8 @@
.addReg(SelectExpr(SetCC->getOperand(1)));
return Result;
}
- if(SetCC->getOperand(1).getOpcode() == ISD::Constant &&
- cast<ConstantSDNode>(SetCC->getOperand(1))->getValue() == 0)
+ if(SetCC->getOperand(0).getOpcode() == ISD::Constant &&
+ cast<ConstantSDNode>(SetCC->getOperand(0))->getValue() == 0)
{
bool useI = (SetCC->getOperand(0).getOpcode() == ISD::Constant &&
cast<ConstantSDNode>(SetCC->getOperand(0))->getValue() <= 255);
More information about the llvm-commits
mailing list