[llvm-commits] CVS: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
Zhou Sheng
zhousheng00 at gmail.com
Tue Mar 27 22:16:14 PDT 2007
Changes in directory llvm/lib/Transforms/Scalar:
InstructionCombining.cpp updated: 1.701 -> 1.702
---
Log message:
Use UnknownBIts[BitWidth-1] instead of UnknownBIts & SignBits.
---
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.701 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.702
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.701 Tue Mar 27 22:02:21 2007
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp Wed Mar 28 00:15:57 2007
@@ -851,7 +851,7 @@
Min = KnownOne;
Max = KnownOne|UnknownBits;
- if ((SignBit & UnknownBits) != 0) { // Sign bit is unknown
+ if (UnknownBits[BitWidth-1]) { // Sign bit is unknown
Min |= SignBit;
Max &= ~SignBit;
}
More information about the llvm-commits
mailing list