aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/GVN/lpre-call-wrap.ll
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-09-05 11:35:16 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-09-05 11:35:16 +0000
commit31ab6e3364c69a8d07d8e80bd4673d5f8a56a122 (patch)
tree4aec8e97728b70d2691bd6ca9973ebf204e12774 /test/Transforms/GVN/lpre-call-wrap.ll
parent8c042c2337948e5a6051f34a2d6263fe19737e14 (diff)
downloadexternal_llvm-31ab6e3364c69a8d07d8e80bd4673d5f8a56a122.zip
external_llvm-31ab6e3364c69a8d07d8e80bd4673d5f8a56a122.tar.gz
external_llvm-31ab6e3364c69a8d07d8e80bd4673d5f8a56a122.tar.bz2
Eliminate uses of %prcontext.
- I'd appreciate it if someone else eyeballs my changes to make sure I captured the intent of the test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81083 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/GVN/lpre-call-wrap.ll')
-rw-r--r--test/Transforms/GVN/lpre-call-wrap.ll7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/Transforms/GVN/lpre-call-wrap.ll b/test/Transforms/GVN/lpre-call-wrap.ll
index 7470953..4046279 100644
--- a/test/Transforms/GVN/lpre-call-wrap.ll
+++ b/test/Transforms/GVN/lpre-call-wrap.ll
@@ -1,6 +1,4 @@
-; RUN: llvm-as < %s | opt -gvn -enable-load-pre | llvm-dis > %t
-; RUN: %prcontext bb3.backedge: 2 < %t | grep phi
-; RUN: %prcontext bb3.backedge: 2 < %t | not grep load
+; RUN: opt -S -gvn -enable-load-pre %s | FileCheck %s
;
; Make sure the load in bb3.backedge is removed and moved into bb1 after the
; call. This makes the non-call case faster.
@@ -43,6 +41,9 @@ bb1: ; preds = %bb
br label %bb3.backedge
bb3.backedge: ; preds = %bb, %bb1
+; CHECK: bb3.backedge:
+; CHECK-NEXT: phi
+; CHECK-NEXT: icmp
%7 = load i32* %0, align 4 ; <i32> [#uses=2]
%8 = icmp eq i32 %7, 0 ; <i1> [#uses=1]
br i1 %8, label %return, label %bb