diff options
author | Dan Gohman <gohman@apple.com> | 2009-09-11 18:01:28 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-09-11 18:01:28 +0000 |
commit | f2f6ce65b79df6ec4ee427d51a18355a170f199b (patch) | |
tree | 10febdb90407974203f9d08ab1180f7073ae459a /test/Transforms/Mem2Reg | |
parent | 597f9797fd12bfede377de73ab89620842278105 (diff) | |
download | external_llvm-f2f6ce65b79df6ec4ee427d51a18355a170f199b.zip external_llvm-f2f6ce65b79df6ec4ee427d51a18355a170f199b.tar.gz external_llvm-f2f6ce65b79df6ec4ee427d51a18355a170f199b.tar.bz2 |
Change tests from "opt %s" to "opt < %s" so that opt doesn't see the
input filename so that opt doesn't print the input filename in the
output so that grep lines in the tests don't unintentionally match
strings in the input filename.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81537 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/Mem2Reg')
12 files changed, 12 insertions, 12 deletions
diff --git a/test/Transforms/Mem2Reg/2002-03-28-UninitializedVal.ll b/test/Transforms/Mem2Reg/2002-03-28-UninitializedVal.ll index 7a62c9a..777f375 100644 --- a/test/Transforms/Mem2Reg/2002-03-28-UninitializedVal.ll +++ b/test/Transforms/Mem2Reg/2002-03-28-UninitializedVal.ll @@ -1,6 +1,6 @@ ; Uninitialized values are not handled correctly. ; -; RUN: opt %s -mem2reg -disable-output +; RUN: opt < %s -mem2reg -disable-output ; define i32 @test() { diff --git a/test/Transforms/Mem2Reg/2002-05-01-ShouldNotPromoteThisAlloca.ll b/test/Transforms/Mem2Reg/2002-05-01-ShouldNotPromoteThisAlloca.ll index 4652487..89bd492 100644 --- a/test/Transforms/Mem2Reg/2002-05-01-ShouldNotPromoteThisAlloca.ll +++ b/test/Transforms/Mem2Reg/2002-05-01-ShouldNotPromoteThisAlloca.ll @@ -1,7 +1,7 @@ ; This input caused the mem2reg pass to die because it was trying to promote ; the %r alloca, even though it is invalid to do so in this case! ; -; RUN: opt %s -mem2reg +; RUN: opt < %s -mem2reg define void @test() { %r = alloca i32 ; <i32*> [#uses=2] diff --git a/test/Transforms/Mem2Reg/2003-04-10-DFNotFound.ll b/test/Transforms/Mem2Reg/2003-04-10-DFNotFound.ll index 798ed81..3665483 100644 --- a/test/Transforms/Mem2Reg/2003-04-10-DFNotFound.ll +++ b/test/Transforms/Mem2Reg/2003-04-10-DFNotFound.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -mem2reg +; RUN: opt < %s -mem2reg define void @_Z3barv() { %result = alloca i32 ; <i32*> [#uses=1] diff --git a/test/Transforms/Mem2Reg/2003-04-18-DeadBlockProblem.ll b/test/Transforms/Mem2Reg/2003-04-18-DeadBlockProblem.ll index 93a3468..36bd9e6 100644 --- a/test/Transforms/Mem2Reg/2003-04-18-DeadBlockProblem.ll +++ b/test/Transforms/Mem2Reg/2003-04-18-DeadBlockProblem.ll @@ -1,5 +1,5 @@ ; This testcases makes sure that mem2reg can handle unreachable blocks. -; RUN: opt %s -mem2reg +; RUN: opt < %s -mem2reg define i32 @test() { %X = alloca i32 ; <i32*> [#uses=2] diff --git a/test/Transforms/Mem2Reg/2003-04-24-MultipleIdenticalSuccessors.ll b/test/Transforms/Mem2Reg/2003-04-24-MultipleIdenticalSuccessors.ll index 3009b30..f5f1ee3 100644 --- a/test/Transforms/Mem2Reg/2003-04-24-MultipleIdenticalSuccessors.ll +++ b/test/Transforms/Mem2Reg/2003-04-24-MultipleIdenticalSuccessors.ll @@ -1,7 +1,7 @@ ; Mem2reg used to only add one incoming value to a PHI node, even if it had ; multiple incoming edges from a block. ; -; RUN: opt %s -mem2reg -disable-output +; RUN: opt < %s -mem2reg -disable-output define i32 @test(i1 %c1, i1 %c2) { %X = alloca i32 ; <i32*> [#uses=2] diff --git a/test/Transforms/Mem2Reg/2003-06-26-IterativePromote.ll b/test/Transforms/Mem2Reg/2003-06-26-IterativePromote.ll index fc53456..e82caa9 100644 --- a/test/Transforms/Mem2Reg/2003-06-26-IterativePromote.ll +++ b/test/Transforms/Mem2Reg/2003-06-26-IterativePromote.ll @@ -1,5 +1,5 @@ ; Promoting some values allows promotion of other values. -; RUN: opt %s -mem2reg -S | not grep alloca +; RUN: opt < %s -mem2reg -S | not grep alloca define i32 @test2() { %result = alloca i32 ; <i32*> [#uses=2] diff --git a/test/Transforms/Mem2Reg/2003-10-05-DeadPHIInsertion.ll b/test/Transforms/Mem2Reg/2003-10-05-DeadPHIInsertion.ll index 4481d70..1d38efc 100644 --- a/test/Transforms/Mem2Reg/2003-10-05-DeadPHIInsertion.ll +++ b/test/Transforms/Mem2Reg/2003-10-05-DeadPHIInsertion.ll @@ -1,7 +1,7 @@ ; Mem2reg should not insert dead PHI nodes! The naive algorithm inserts a PHI ; node in L3, even though there is no load of %A in anything dominated by L3. -; RUN: opt %s -mem2reg -S | not grep phi +; RUN: opt < %s -mem2reg -S | not grep phi define void @test(i32 %B, i1 %C) { %A = alloca i32 ; <i32*> [#uses=4] diff --git a/test/Transforms/Mem2Reg/2005-06-30-ReadBeforeWrite.ll b/test/Transforms/Mem2Reg/2005-06-30-ReadBeforeWrite.ll index 0414efc..7435596 100644 --- a/test/Transforms/Mem2Reg/2005-06-30-ReadBeforeWrite.ll +++ b/test/Transforms/Mem2Reg/2005-06-30-ReadBeforeWrite.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -mem2reg -instcombine -S | grep store +; RUN: opt < %s -mem2reg -instcombine -S | grep store ; PR590 diff --git a/test/Transforms/Mem2Reg/2005-11-28-Crash.ll b/test/Transforms/Mem2Reg/2005-11-28-Crash.ll index c8264b9..8fd3351 100644 --- a/test/Transforms/Mem2Reg/2005-11-28-Crash.ll +++ b/test/Transforms/Mem2Reg/2005-11-28-Crash.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -mem2reg -disable-output +; RUN: opt < %s -mem2reg -disable-output ; PR670 define void @printk(i32, ...) { diff --git a/test/Transforms/Mem2Reg/2007-08-27-VolatileLoadsStores.ll b/test/Transforms/Mem2Reg/2007-08-27-VolatileLoadsStores.ll index 3701ca3..50683cf 100644 --- a/test/Transforms/Mem2Reg/2007-08-27-VolatileLoadsStores.ll +++ b/test/Transforms/Mem2Reg/2007-08-27-VolatileLoadsStores.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -std-compile-opts -S | grep volatile | count 3 +; RUN: opt < %s -std-compile-opts -S | grep volatile | count 3 ; PR1520 ; Don't promote volatile loads/stores. This is really needed to handle setjmp/lonjmp properly. diff --git a/test/Transforms/Mem2Reg/PromoteMemToRegister.ll b/test/Transforms/Mem2Reg/PromoteMemToRegister.ll index ada19a1..1be6b03 100644 --- a/test/Transforms/Mem2Reg/PromoteMemToRegister.ll +++ b/test/Transforms/Mem2Reg/PromoteMemToRegister.ll @@ -1,5 +1,5 @@ ; Simple sanity check testcase. Both alloca's should be eliminated. -; RUN: opt %s -mem2reg -S | not grep alloca +; RUN: opt < %s -mem2reg -S | not grep alloca define double @testfunc(i32 %i, double %j) { %I = alloca i32 ; <i32*> [#uses=4] diff --git a/test/Transforms/Mem2Reg/UndefValuesMerge.ll b/test/Transforms/Mem2Reg/UndefValuesMerge.ll index b9e4b1a..5013229 100644 --- a/test/Transforms/Mem2Reg/UndefValuesMerge.ll +++ b/test/Transforms/Mem2Reg/UndefValuesMerge.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -mem2reg -S | not grep phi +; RUN: opt < %s -mem2reg -S | not grep phi define i32 @testfunc(i1 %C, i32 %i, i8 %j) { %I = alloca i32 ; <i32*> [#uses=2] |