diff options
author | Evan Cheng <evan.cheng@apple.com> | 2012-07-17 18:54:11 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2012-07-17 18:54:11 +0000 |
commit | a9e13ba3c8230073dd1157e4a17ef52906ac6cb8 (patch) | |
tree | f849baf7930c539651e1bb7307e95fcde46b5102 /test/Transforms | |
parent | d3e31218ef7ccf96b0bc7e06e2ebd279325c97fe (diff) | |
download | external_llvm-a9e13ba3c8230073dd1157e4a17ef52906ac6cb8.zip external_llvm-a9e13ba3c8230073dd1157e4a17ef52906ac6cb8.tar.gz external_llvm-a9e13ba3c8230073dd1157e4a17ef52906ac6cb8.tar.bz2 |
Back out r160101 and instead implement a dag combine to recover from instcombine transformation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160387 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r-- | test/Transforms/InstCombine/2012-07-11-AddSubDemandedBits.ll | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/test/Transforms/InstCombine/2012-07-11-AddSubDemandedBits.ll b/test/Transforms/InstCombine/2012-07-11-AddSubDemandedBits.ll deleted file mode 100644 index d62a886..0000000 --- a/test/Transforms/InstCombine/2012-07-11-AddSubDemandedBits.ll +++ /dev/null @@ -1,18 +0,0 @@ -; RUN: opt < %s -instcombine -S | FileCheck %s - -; When shrinking demanded constant operand of an add instruction, keep in -; mind the opcode can be changed to sub and the constant negated. Make sure -; the shrinking the constant would actually reduce the width. -; rdar://11793464 - -define i64 @t(i64 %key, i64* %val) nounwind { -entry: -; CHECK: @t -; CHECK-NOT: add i64 %0, 2305843009213693951 -; CHECK: add i64 %0, -1 - %shr = lshr i64 %key, 3 - %0 = load i64* %val, align 8 - %sub = sub i64 %0, 1 - %and = and i64 %sub, %shr - ret i64 %and -} |