aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/Alpha/AlphaISelPattern.cpp
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2005-04-03 18:24:50 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2005-04-03 18:24:50 +0000
commit500d025bd9e6ef772b7dc4df8c90fe8201f032f2 (patch)
treeea6eb96f4fbb301c9908751ff1b737da3f20b5d9 /lib/Target/Alpha/AlphaISelPattern.cpp
parent664044b2bddc82ed26e7a71015a084c75a645e50 (diff)
fix 101 regressions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21063 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaISelPattern.cpp')
-rw-r--r--lib/Target/Alpha/AlphaISelPattern.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/Alpha/AlphaISelPattern.cpp b/lib/Target/Alpha/AlphaISelPattern.cpp
index 6f093ba65f..6e74a79dc3 100644
--- a/lib/Target/Alpha/AlphaISelPattern.cpp
+++ b/lib/Target/Alpha/AlphaISelPattern.cpp
@@ -1591,7 +1591,7 @@ unsigned ISel::SelectExpr(SDOperand N) {
//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 @@ unsigned ISel::SelectExpr(SDOperand N) {
.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);