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 | 08e57e5ccf69de817434b6205dc6a65defe0f3e7 (patch) | |
| tree | 5444babaef96ab8353eec4d42b5e0b3082906201 /llvm/test/Transforms/InstSimplify/pr12251.ll | |
| parent | e51feea79c59428c25bd6e313ef0bee6f6568707 (diff) | |
| download | bcm5719-llvm-08e57e5ccf69de817434b6205dc6a65defe0f3e7.tar.gz bcm5719-llvm-08e57e5ccf69de817434b6205dc6a65defe0f3e7.zip | |
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.
llvm-svn: 153452
Diffstat (limited to 'llvm/test/Transforms/InstSimplify/pr12251.ll')
| -rw-r--r-- | llvm/test/Transforms/InstSimplify/pr12251.ll | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/llvm/test/Transforms/InstSimplify/pr12251.ll b/llvm/test/Transforms/InstSimplify/pr12251.ll deleted file mode 100644 index f180f9f1eba..00000000000 --- a/llvm/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} |

