diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-03-26 18:07:14 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-03-26 18:07:14 +0000 |
commit | cde6650bd05a745e78920e1cd508c3899ebbd644 (patch) | |
tree | 9bd3e043b46c1f4be3d582d46d901dc50f3d5770 /test | |
parent | 81748bc32092c75c61bb7cb34bfb5a616924e535 (diff) | |
download | external_llvm-cde6650bd05a745e78920e1cd508c3899ebbd644.zip external_llvm-cde6650bd05a745e78920e1cd508c3899ebbd644.tar.gz external_llvm-cde6650bd05a745e78920e1cd508c3899ebbd644.tar.bz2 |
Revert r153423 as this is causing failures on our internal nightly testers.
Original commit message:
Use the new range metadata in computeMaskedBits and add a new optimization to
instruction simplify that lets us remove an and when loading a boolean value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153452 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Transforms/InstSimplify/pr12251.ll | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/test/Transforms/InstSimplify/pr12251.ll b/test/Transforms/InstSimplify/pr12251.ll deleted file mode 100644 index f180f9f..0000000 --- a/test/Transforms/InstSimplify/pr12251.ll +++ /dev/null @@ -1,15 +0,0 @@ -; RUN: opt < %s -instsimplify -S | FileCheck %s - -define zeroext i1 @_Z3fooPb(i8* nocapture %x) { -entry: - %a = load i8* %x, align 1, !range !0 - %b = and i8 %a, 1 - %tobool = icmp ne i8 %b, 0 - ret i1 %tobool -} - -; CHECK: %a = load i8* %x, align 1, !range !0 -; CHECK-NEXT: %tobool = icmp ne i8 %a, 0 -; CHECK-NEXT: ret i1 %tobool - -!0 = metadata !{i8 0, i8 2} |