diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-09-05 11:35:16 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-09-05 11:35:16 +0000 |
commit | 31ab6e3364c69a8d07d8e80bd4673d5f8a56a122 (patch) | |
tree | 4aec8e97728b70d2691bd6ca9973ebf204e12774 /test/Transforms/GVN | |
parent | 8c042c2337948e5a6051f34a2d6263fe19737e14 (diff) | |
download | external_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')
-rw-r--r-- | test/Transforms/GVN/lpre-call-wrap-2.ll | 7 | ||||
-rw-r--r-- | test/Transforms/GVN/lpre-call-wrap.ll | 7 |
2 files changed, 8 insertions, 6 deletions
diff --git a/test/Transforms/GVN/lpre-call-wrap-2.ll b/test/Transforms/GVN/lpre-call-wrap-2.ll index c9f9352..79512a3 100644 --- a/test/Transforms/GVN/lpre-call-wrap-2.ll +++ b/test/Transforms/GVN/lpre-call-wrap-2.ll @@ -1,6 +1,4 @@ -; RUN: llvm-as < %s | opt -gvn -enable-load-pre | llvm-dis > %t -; RUN: %prcontext bb1: 2 < %t | grep phi -; RUN: %prcontext bb1: 2 < %t | not grep load +; RUN: opt -S -gvn -enable-load-pre %s | FileCheck %s ; ; The partially redundant load in bb1 should be hoisted to "bb". This comes ; from this C code (GCC PR 23455): @@ -30,6 +28,9 @@ bb: ; preds = %entry br label %bb1 bb1: ; preds = %bb, %entry +; CHECK: bb1: +; CHECK-NEXT: phi +; CHECK-NEXT: getelementptr %4 = load i32* @outcnt, align 4 ; <i32> [#uses=1] %5 = getelementptr i8* %outbuf, i32 %4 ; <i8*> [#uses=1] store i8 %bi_buf, i8* %5, align 1 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 |