aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/GVN
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-11-27 06:33:09 +0000
committerChris Lattner <sabre@nondot.org>2009-11-27 06:33:09 +0000
commit8dca876ab767327411dcdfc6fadd90fb2f8cd206 (patch)
tree34d6699a185820b06f9d1c6d547d32f2f054222a /test/Transforms/GVN
parent9b15d60c7a1d8a4fb1c40a9d4ede49b1003bcddf (diff)
filecheckize
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89994 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/GVN')
-rw-r--r--test/Transforms/GVN/pre-load.ll10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/Transforms/GVN/pre-load.ll b/test/Transforms/GVN/pre-load.ll
index 41b51806cd..de90465567 100644
--- a/test/Transforms/GVN/pre-load.ll
+++ b/test/Transforms/GVN/pre-load.ll
@@ -1,11 +1,14 @@
-; RUN: opt < %s -gvn -enable-load-pre -S | grep {%PRE = phi}
+; RUN: opt < %s -gvn -enable-load-pre -S | FileCheck %s
-define i32 @test(i32* %p, i1 %C) {
+define i32 @test1(i32* %p, i1 %C) {
+; CHECK: @test1
block1:
br i1 %C, label %block2, label %block3
block2:
br label %block4
+; CHECK: block2:
+; CHECK-NEXT: load i32* %p
block3:
%b = bitcast i32 0 to i32
@@ -15,4 +18,7 @@ block3:
block4:
%PRE = load i32* %p
ret i32 %PRE
+; CHECK: block4:
+; CHECK-NEXT: phi i32
+; CHECK-NEXT: ret i32
}