diff options
author | Chris Lattner <sabre@nondot.org> | 2008-12-15 03:46:38 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-12-15 03:46:38 +0000 |
commit | f33131685bb9de34dd876641bdf2d514fb49ce4c (patch) | |
tree | b310c95ae993b5a41e46019a975931ec910062c1 /test/Transforms/GVN | |
parent | 9e59c64c14cfe55e7cc9086c6bff8cfeecac361e (diff) | |
download | external_llvm-f33131685bb9de34dd876641bdf2d514fb49ce4c.zip external_llvm-f33131685bb9de34dd876641bdf2d514fb49ce4c.tar.gz external_llvm-f33131685bb9de34dd876641bdf2d514fb49ce4c.tar.bz2 |
make GVN try to rename inputs to the resultant replaced values, which
cleans up the generated code a bit. This should have the added benefit of
not randomly renaming functions/globals like my previous patch did. :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61023 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/GVN')
-rw-r--r-- | test/Transforms/GVN/2007-07-26-InterlockingLoops.ll | 4 | ||||
-rw-r--r-- | test/Transforms/GVN/2007-07-26-PhiErasure.ll | 2 | ||||
-rw-r--r-- | test/Transforms/GVN/2007-07-31-NoDomInherit.ll | 2 | ||||
-rw-r--r-- | test/Transforms/GVN/rle-dominated.ll | 8 | ||||
-rw-r--r-- | test/Transforms/GVN/rle-must-alias.ll | 2 | ||||
-rw-r--r-- | test/Transforms/GVN/rle-nonlocal.ll | 2 | ||||
-rw-r--r-- | test/Transforms/GVN/rle-phi-translate.ll | 4 | ||||
-rw-r--r-- | test/Transforms/GVN/rle-semidominated.ll | 2 |
8 files changed, 13 insertions, 13 deletions
diff --git a/test/Transforms/GVN/2007-07-26-InterlockingLoops.ll b/test/Transforms/GVN/2007-07-26-InterlockingLoops.ll index 1dd1479..5403a1b 100644 --- a/test/Transforms/GVN/2007-07-26-InterlockingLoops.ll +++ b/test/Transforms/GVN/2007-07-26-InterlockingLoops.ll @@ -1,5 +1,5 @@ -; RUN: llvm-as < %s | opt -gvn | llvm-dis | not grep {tmp17625 =} -; RUN: llvm-as < %s | opt -gvn | llvm-dis | not grep {tmp17631 =} +; RUN: llvm-as < %s | opt -gvn | llvm-dis | grep {tmp17625 = phi i32. } +; RUN: llvm-as < %s | opt -gvn | llvm-dis | grep {tmp17631.* = phi i32. } @last = external global [65 x i32*] ; <[65 x i32*]*> [#uses=1] diff --git a/test/Transforms/GVN/2007-07-26-PhiErasure.ll b/test/Transforms/GVN/2007-07-26-PhiErasure.ll index 52c5b8e..4925df7 100644 --- a/test/Transforms/GVN/2007-07-26-PhiErasure.ll +++ b/test/Transforms/GVN/2007-07-26-PhiErasure.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -gvn | llvm-dis | not grep {tmp298316 =} +; RUN: llvm-as < %s | opt -gvn | llvm-dis | grep {tmp298316 = phi i32 } %struct..0anon = type { i32 } %struct.FILE = type { i8*, i32, i32, i16, i16, %struct.__sbuf, i32, i8*, i32 (i8*)*, i32 (i8*, i8*, i32)*, i64 (i8*, i64, i32)*, i32 (i8*, i8*, i32)*, %struct.__sbuf, %struct.__sFILEX*, i32, [3 x i8], [1 x i8], %struct.__sbuf, i32, i64 } diff --git a/test/Transforms/GVN/2007-07-31-NoDomInherit.ll b/test/Transforms/GVN/2007-07-31-NoDomInherit.ll index 5dbd34c..6cb7785 100644 --- a/test/Transforms/GVN/2007-07-31-NoDomInherit.ll +++ b/test/Transforms/GVN/2007-07-31-NoDomInherit.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -gvn | llvm-dis | grep tmp51.rle +; RUN: llvm-as < %s | opt -gvn | llvm-dis | grep {tmp47 = phi i32 } %struct.anon = type { i32 (i32, i32, i32)*, i32, i32, [3 x i32], i8*, i8*, i8* } @debug = external constant i32 ; <i32*> [#uses=0] diff --git a/test/Transforms/GVN/rle-dominated.ll b/test/Transforms/GVN/rle-dominated.ll index d7c9417..0d51717 100644 --- a/test/Transforms/GVN/rle-dominated.ll +++ b/test/Transforms/GVN/rle-dominated.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -gvn | llvm-dis | not grep DEAD +; RUN: llvm-as < %s | opt -gvn | llvm-dis | grep load | count 2 define i32 @main(i32** %p) { block1: @@ -14,7 +14,7 @@ block3: br label %block4 block4: - %DEAD = load i32** %p - %c = load i32* %DEAD - ret i32 %c + %c = load i32** %p + %d = load i32* %c + ret i32 %d } diff --git a/test/Transforms/GVN/rle-must-alias.ll b/test/Transforms/GVN/rle-must-alias.ll index 7108916..ada4398 100644 --- a/test/Transforms/GVN/rle-must-alias.ll +++ b/test/Transforms/GVN/rle-must-alias.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -gvn | llvm-dis | grep {DEAD.rle = phi i32} +; RUN: llvm-as < %s | opt -gvn | llvm-dis | grep {DEAD = phi i32 } ; XFAIL: * ; FIXME: GVN should eliminate the fully redundant %9 GEP which diff --git a/test/Transforms/GVN/rle-nonlocal.ll b/test/Transforms/GVN/rle-nonlocal.ll index 1618d05..d932231 100644 --- a/test/Transforms/GVN/rle-nonlocal.ll +++ b/test/Transforms/GVN/rle-nonlocal.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -gvn | llvm-dis | not grep {DEAD =} +; RUN: llvm-as < %s | opt -gvn | llvm-dis | grep {%DEAD = phi i32. } define i32 @main(i32** %p) { block1: diff --git a/test/Transforms/GVN/rle-phi-translate.ll b/test/Transforms/GVN/rle-phi-translate.ll index 0f9c58f..b5311ee 100644 --- a/test/Transforms/GVN/rle-phi-translate.ll +++ b/test/Transforms/GVN/rle-phi-translate.ll @@ -1,5 +1,5 @@ -; RUN: llvm-as < %s | opt -gvn | llvm-dis | grep {%cv.rle = phi i32} -; RUN: llvm-as < %s | opt -gvn | llvm-dis | grep {%bv.rle = phi i32} +; RUN: llvm-as < %s | opt -gvn | llvm-dis | grep {%cv = phi i32} +; RUN: llvm-as < %s | opt -gvn | llvm-dis | grep {%bv = phi i32} 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-darwin7" diff --git a/test/Transforms/GVN/rle-semidominated.ll b/test/Transforms/GVN/rle-semidominated.ll index 95ee56a..5c11b06 100644 --- a/test/Transforms/GVN/rle-semidominated.ll +++ b/test/Transforms/GVN/rle-semidominated.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -gvn | llvm-dis | not grep {DEAD =} +; RUN: llvm-as < %s | opt -gvn | llvm-dis | grep {DEAD = phi i32 } define i32 @main(i32* %p) { block1: |