projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9cb95f
)
Delete dead code.
author
Zhou Sheng
<zhousheng00@gmail.com>
Sat, 31 Mar 2007 02:50:26 +0000
(
02:50
+0000)
committer
Zhou Sheng
<zhousheng00@gmail.com>
Sat, 31 Mar 2007 02:50:26 +0000
(
02:50
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35525
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/InstructionCombining.cpp
b/lib/Transforms/Scalar/InstructionCombining.cpp
index 1d172ced5258cd24d23d299f5fc5b6dc76dafc51..e0fdc5fbaeab5d6bb1c6d8b8136020c5e43e8508 100644
(file)
--- a/
lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/
lib/Transforms/Scalar/InstructionCombining.cpp
@@
-4777,7
+4777,6
@@
Instruction *InstCombiner::visitICmpInst(ICmpInst &I) {
// of the bits shifted in could be tested after the mask.
uint32_t TyBits = Ty->getPrimitiveSizeInBits();
int ShAmtVal = TyBits - ShAmt->getLimitedValue(TyBits);
- if (ShAmtVal < 0) ShAmtVal = 0; // Out of range shift.
uint32_t BitWidth = AndTy->getPrimitiveSizeInBits();
if ((APInt::getHighBitsSet(BitWidth, BitWidth-ShAmtVal) &