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 | 4f68e0c66398707bce7c1304f09ed42c863337e7 (patch) | |
tree | 2caef93980a252a50bcf6eb784fbf4a3df28a8d0 /test | |
parent | 0c5465e27e51577bdee6797f31a9bd5c7545d5c7 (diff) | |
download | external_llvm-4f68e0c66398707bce7c1304f09ed42c863337e7.zip external_llvm-4f68e0c66398707bce7c1304f09ed42c863337e7.tar.gz external_llvm-4f68e0c66398707bce7c1304f09ed42c863337e7.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')
-rw-r--r-- | test/Transforms/JumpThreading/2008-11-27-EntryMunge.ll | 2 | ||||
-rw-r--r-- | test/Transforms/JumpThreading/2008-11-28-InfLoop.ll | 2 | ||||
-rw-r--r-- | test/Transforms/JumpThreading/2009-01-19-InfSwitchLoop.ll | 2 | ||||
-rw-r--r-- | test/Transforms/JumpThreading/basic.ll | 10 | ||||
-rw-r--r-- | test/Transforms/JumpThreading/compare.ll | 2 | ||||
-rw-r--r-- | test/Transforms/JumpThreading/thread-loads.ll | 2 |
6 files changed, 13 insertions, 7 deletions
diff --git a/test/Transforms/JumpThreading/2008-11-27-EntryMunge.ll b/test/Transforms/JumpThreading/2008-11-27-EntryMunge.ll index 8a852de..b5d1065 100644 --- a/test/Transforms/JumpThreading/2008-11-27-EntryMunge.ll +++ b/test/Transforms/JumpThreading/2008-11-27-EntryMunge.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -jump-threading -simplifycfg -S | grep {ret i32 0} +; RUN: opt < %s -jump-threading -S | grep {ret i32 0} ; PR3138 define i32 @jt() { diff --git a/test/Transforms/JumpThreading/2008-11-28-InfLoop.ll b/test/Transforms/JumpThreading/2008-11-28-InfLoop.ll index dfb6251..306b2d5 100644 --- a/test/Transforms/JumpThreading/2008-11-28-InfLoop.ll +++ b/test/Transforms/JumpThreading/2008-11-28-InfLoop.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -jump-threading | llvm-dis +; RUN: opt < %s -jump-threading -S target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128" target triple = "i386-apple-darwin9.5" diff --git a/test/Transforms/JumpThreading/2009-01-19-InfSwitchLoop.ll b/test/Transforms/JumpThreading/2009-01-19-InfSwitchLoop.ll index 5c1f77b..05a3ef9 100644 --- a/test/Transforms/JumpThreading/2009-01-19-InfSwitchLoop.ll +++ b/test/Transforms/JumpThreading/2009-01-19-InfSwitchLoop.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -jump-threading | llvm-dis +; RUN: opt < %s -jump-threading -S ; PR3353 define i32 @test(i8 %X) { 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 diff --git a/test/Transforms/JumpThreading/compare.ll b/test/Transforms/JumpThreading/compare.ll index 8784b3f..581785c 100644 --- a/test/Transforms/JumpThreading/compare.ll +++ b/test/Transforms/JumpThreading/compare.ll @@ -1,5 +1,5 @@ ; There should be no phi nodes left. -; RUN: opt < %s -jump-threading -simplifycfg -mem2reg -S | not grep {phi i32} +; RUN: opt < %s -jump-threading -S | not grep {phi i32} declare i32 @f1() declare i32 @f2() diff --git a/test/Transforms/JumpThreading/thread-loads.ll b/test/Transforms/JumpThreading/thread-loads.ll index c8e10ca..96ba701 100644 --- a/test/Transforms/JumpThreading/thread-loads.ll +++ b/test/Transforms/JumpThreading/thread-loads.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -jump-threading -mem2reg -simplifycfg -S | grep {ret i32 1} +; RUN: opt < %s -jump-threading -simplifycfg -S | grep {ret i32 1} ; rdar://6402033 ; Test that we can thread through the block with the partially redundant load (%2). |