Changes in directory llvm/lib/Transforms/Scalar:
InstructionCombining.cpp updated: 1.472 -> 1.473 --- Log message: Fix InstCombine/2006-04-28-ShiftShiftLongLong.ll --- 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.472 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.473 --- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.472 Thu Apr 27 16:14:21 2006 +++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp Fri Apr 28 17:21:41 2006 @@ -4435,7 +4435,7 @@ // this case, C1 == C2 and C1 is 8, 16, or 32. if (ShiftAmt1 == ShiftAmt2) { const Type *SExtType = 0; - switch (ShiftAmt1) { + switch (Op0->getType()->getPrimitiveSizeInBits() - ShiftAmt1) { case 8 : SExtType = Type::SByteTy; break; case 16: SExtType = Type::ShortTy; break; case 32: SExtType = Type::IntTy; break; _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits