[llvm-commits] CVS: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Oct 16 16:28:18 PDT 2004
Changes in directory llvm/lib/Transforms/Scalar:
InstructionCombining.cpp updated: 1.270 -> 1.271
---
Log message:
Fix a type violation
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.270 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.271
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.270 Sat Oct 16 14:46:33 2004
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp Sat Oct 16 18:28:04 2004
@@ -2516,7 +2516,7 @@
if (isa<UndefValue>(Op0)) { // undef >>s X -> undef
if (!isLeftShift && I.getType()->isSigned())
- return ReplaceInstUsesWith(I, Op1);
+ return ReplaceInstUsesWith(I, Op0);
else // undef << X -> 0 AND undef >>u X -> 0
return ReplaceInstUsesWith(I, Constant::getNullValue(I.getType()));
}
More information about the llvm-commits
mailing list