[llvm-commits] CVS: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Jan 14 09:35:27 PST 2005
Changes in directory llvm/lib/Transforms/Scalar:
InstructionCombining.cpp updated: 1.304 -> 1.305
---
Log message:
Fix some bugs in an xform added yesterday. This fixes Prolangs-C/allroots.
---
Diffs of the changes: (+2 -2)
Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.304 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.305
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.304 Fri Jan 14 11:17:59 2005
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp Fri Jan 14 11:35:12 2005
@@ -3651,7 +3651,7 @@
BinaryOperator::createNeg(SubOp->getOperand(1)), SI);
}
- Value *NewTrueOp = AddOp->getOperand(1);
+ Value *NewTrueOp = OtherAddOp;
Value *NewFalseOp = NegVal;
if (AddOp != TI)
std::swap(NewTrueOp, NewFalseOp);
@@ -3659,7 +3659,7 @@
new SelectInst(CondVal, NewTrueOp,NewFalseOp,SI.getName()+".p");
NewSel = InsertNewInstBefore(NewSel, SI);
- return BinaryOperator::createAdd(AddOp->getOperand(0), NewSel);
+ return BinaryOperator::createAdd(SubOp->getOperand(0), NewSel);
}
}
}
More information about the llvm-commits
mailing list