diff options
author | Owen Anderson <resistor@mac.com> | 2010-08-27 17:12:29 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2010-08-27 17:12:29 +0000 |
commit | 77e20df502c0de4373e8914ee054209edb7f769d (patch) | |
tree | 0fb70ca06ea4d8d01b26f861c227238e53ebbd64 /test/Transforms/JumpThreading/lvi-load.ll | |
parent | 22b00d70c9c06012405b097bd0f1f2af372186f2 (diff) | |
download | external_llvm-77e20df502c0de4373e8914ee054209edb7f769d.zip external_llvm-77e20df502c0de4373e8914ee054209edb7f769d.tar.gz external_llvm-77e20df502c0de4373e8914ee054209edb7f769d.tar.bz2 |
Use LVI to eliminate conditional branches where we've tested a related condition previously. Update tests for this change.
This fixes PR5652.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112270 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/JumpThreading/lvi-load.ll')
-rw-r--r-- | test/Transforms/JumpThreading/lvi-load.ll | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/Transforms/JumpThreading/lvi-load.ll b/test/Transforms/JumpThreading/lvi-load.ll index c6af7b5..0bf4187 100644 --- a/test/Transforms/JumpThreading/lvi-load.ll +++ b/test/Transforms/JumpThreading/lvi-load.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -jump-threading -enable-jump-threading-lvi < %s | FileCheck %s +; RUN: opt -S -jump-threading -enable-jump-threading-lvi -dce < %s | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" target triple = "x86_64-apple-darwin10.4" @@ -25,6 +25,7 @@ bb.i: ; preds = %entry %toBoolnot.i.i = icmp ult i8 %1, 21 ; <i1> [#uses=1] br i1 %toBoolnot.i.i, label %bb6.i.i, label %_ZN4llvm8dyn_castINS_11InstructionEPNS_5ValueEEENS_10cast_rettyIT_T0_E8ret_typeERKS6_.exit +; CHECK-NOT: assert bb6.i.i: ; preds = %bb.i tail call void @__assert_rtn(i8* getelementptr inbounds ([5 x i8]* @_ZZN4llvm4castINS_11InstructionEPNS_5ValueEEENS_10cast_rettyIT_T0_E8ret_typeERKS6_E8__func__, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8]* @.str, i64 0, i64 0), i32 202, i8* getelementptr inbounds ([59 x i8]* @.str1, i64 0, i64 0)) noreturn unreachable |