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),



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to