[llvm-commits] CVS: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Jun 6 15:26:15 PDT 2006
Changes in directory llvm/lib/Transforms/Scalar:
InstructionCombining.cpp updated: 1.489 -> 1.490
---
Log message:
Fix a bug in a recent patch. This fixes UnitTests/Vector/Altivec/casts.c on
PPC/altivec
---
Diffs of the changes: (+1 -1)
InstructionCombining.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.489 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.490
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.489 Wed May 31 16:14:00 2006
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp Tue Jun 6 17:26:02 2006
@@ -5169,7 +5169,7 @@
if (((Tmp = dyn_cast<CastInst>(SVI->getOperand(0))) &&
Tmp->getOperand(0)->getType() == CI.getType()) ||
((Tmp = dyn_cast<CastInst>(SVI->getOperand(1))) &&
- Tmp->getOperand(1)->getType() == CI.getType())) {
+ Tmp->getOperand(0)->getType() == CI.getType())) {
Value *LHS = InsertOperandCastBefore(SVI->getOperand(0),
CI.getType(), &CI);
Value *RHS = InsertOperandCastBefore(SVI->getOperand(1),
More information about the llvm-commits
mailing list