projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
72b2df1
)
simplify some code.
author
Chris Lattner
<sabre@nondot.org>
Thu, 6 Dec 2007 06:25:04 +0000
(06:25 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 6 Dec 2007 06:25:04 +0000
(06:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44655
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 b1317502836a4be13c217b38a859e7a21e29fad5..a868e56ca63c25ee11a7c0e02026db38ce93a941 100644
(file)
--- a/
lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/
lib/Transforms/Scalar/InstructionCombining.cpp
@@
-6082,9
+6082,8
@@
Instruction *InstCombiner::FoldShiftByConstant(Value *Op0, ConstantInt *Op1,
// the constant which would cause it to be modified for this
// operation.
//
- if (isValid &&
!isLeftShift && I.getOpcode() == Instruction::AShr) {
+ if (isValid &&
I.getOpcode() == Instruction::AShr)
isValid = Op0C->getValue()[TypeBits-1] == highBitSet;
- }
if (isValid) {
Constant *NewRHS = ConstantExpr::get(I.getOpcode(), Op0C, Op1);