projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a5b812
)
Remove redundant code in InstCombineShift, no functionality change because instsimpli...
author
Nick Lewycky
<nicholas@mxc.ca>
Thu, 19 Jun 2014 03:28:28 +0000
(
03:28
+0000)
committer
Nick Lewycky
<nicholas@mxc.ca>
Thu, 19 Jun 2014 03:28:28 +0000
(
03:28
+0000)
llvm-svn: 211250
llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp
b/llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp
index
cc6665c
..
2495747
100644
(file)
--- a/
llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp
+++ b/
llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp
@@
-789,11
+789,6
@@
Instruction *InstCombiner::visitAShr(BinaryOperator &I) {
// have a sign-extend idiom.
Value *X;
if (match(Op0, m_Shl(m_Value(X), m_Specific(Op1)))) {
- // If the left shift is just shifting out partial signbits, delete the
- // extension.
- if (cast<OverflowingBinaryOperator>(Op0)->hasNoSignedWrap())
- return ReplaceInstUsesWith(I, X);
-
// If the input is an extension from the shifted amount value, e.g.
// %x = zext i8 %A to i32
// %y = shl i32 %x, 24