diff options
author | Chris Lattner <sabre@nondot.org> | 2009-10-11 03:54:21 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-10-11 03:54:21 +0000 |
commit | d98eb44ddea257802f597b198d07108a3a4c9c32 (patch) | |
tree | 2caef93980a252a50bcf6eb784fbf4a3df28a8d0 /test/Transforms/JumpThreading/basic.ll | |
parent | 2840c18cf559f9e3dff1c18490d1dc62153e74a0 (diff) | |
download | external_llvm-d98eb44ddea257802f597b198d07108a3a4c9c32.zip external_llvm-d98eb44ddea257802f597b198d07108a3a4c9c32.tar.gz external_llvm-d98eb44ddea257802f597b198d07108a3a4c9c32.tar.bz2 |
simplify some run lines, convert a test to filecheck.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83750 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/JumpThreading/basic.ll')
-rw-r--r-- | test/Transforms/JumpThreading/basic.ll | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/Transforms/JumpThreading/basic.ll b/test/Transforms/JumpThreading/basic.ll index 0a6155f..16c3418 100644 --- a/test/Transforms/JumpThreading/basic.ll +++ b/test/Transforms/JumpThreading/basic.ll @@ -1,6 +1,6 @@ -; RUN: opt < %s -jump-threading -simplifycfg -mem2reg -S | grep {ret i32 %v1} +; RUN: opt < %s -jump-threading -S | FileCheck %s ; There should be no uncond branches left. -; RUN: opt < %s -jump-threading -simplifycfg -mem2reg -S | not grep {br label} +; RUN: opt < %s -jump-threading -S | not grep {br label} declare i32 @f1() declare i32 @f2() @@ -23,10 +23,14 @@ Merge: br i1 %A, label %T2, label %F2 T2: +; CHECK: T2: +; CHECK: ret i32 %v1 call void @f3() ret i32 %B F2: +; CHECK: F2: +; CHECK: ret i32 %v2 ret i32 %B } @@ -37,6 +41,8 @@ Entry: br i1 %cond, label %T1, label %F1 T1: +; CHECK: %v1 = call i32 @f1() +; CHECK: ret i32 47 %v1 = call i32 @f1() br label %Merge |