summaryrefslogtreecommitdiff
path: root/lib/Transforms
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2014-06-19 03:28:28 +0000
committerNick Lewycky <nicholas@mxc.ca>2014-06-19 03:28:28 +0000
commitbdb4aca20211b9ed31874c1be0d814fe26f10a24 (patch)
treec8b5f16b3ad80a6d4c6308668b5b0b6c6a3a5d17 /lib/Transforms
parentf9ec8fe70c5084a15372cc0b126218f699794e24 (diff)
downloadllvm-bdb4aca20211b9ed31874c1be0d814fe26f10a24.tar.gz
llvm-bdb4aca20211b9ed31874c1be0d814fe26f10a24.tar.bz2
llvm-bdb4aca20211b9ed31874c1be0d814fe26f10a24.tar.xz
Remove redundant code in InstCombineShift, no functionality change because instsimplify already does this and instcombine calls instsimplify a few lines above. Patch by Suyog Sarda!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211250 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/InstCombine/InstCombineShifts.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/Transforms/InstCombine/InstCombineShifts.cpp b/lib/Transforms/InstCombine/InstCombineShifts.cpp
index cc6665c947..2495747da5 100644
--- a/lib/Transforms/InstCombine/InstCombineShifts.cpp
+++ b/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