[llvm-commits] [llvm] r89994 - /llvm/trunk/test/Transforms/GVN/pre-load.ll
Chris Lattner
sabre at nondot.org
Thu Nov 26 22:33:09 PST 2009
Author: lattner
Date: Fri Nov 27 00:33:09 2009
New Revision: 89994
URL: http://llvm.org/viewvc/llvm-project?rev=89994&view=rev
Log:
filecheckize
Modified:
llvm/trunk/test/Transforms/GVN/pre-load.ll
Modified: llvm/trunk/test/Transforms/GVN/pre-load.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/GVN/pre-load.ll?rev=89994&r1=89993&r2=89994&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/GVN/pre-load.ll (original)
+++ llvm/trunk/test/Transforms/GVN/pre-load.ll Fri Nov 27 00:33:09 2009
@@ -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 @@
block4:
%PRE = load i32* %p
ret i32 %PRE
+; CHECK: block4:
+; CHECK-NEXT: phi i32
+; CHECK-NEXT: ret i32
}
More information about the llvm-commits
mailing list