Use the new prcontext script.
authorJohn Criswell <criswell@uiuc.edu>
Mon, 2 Aug 2004 22:31:58 +0000 (22:31 +0000)
committerJohn Criswell <criswell@uiuc.edu>
Mon, 2 Aug 2004 22:31:58 +0000 (22:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15427 91177308-0d34-0410-b5e6-96231b3b80d8

16 files changed:
test/Transforms/ConstantMerge/2003-10-28-MergeExternalConstants.ll
test/Transforms/IndVarsSimplify/2003-09-23-NotAtTop.ll
test/Transforms/Inline/alloca_test.ll
test/Transforms/LICM/2003-08-04-TrappingInstHoist.ll
test/Transforms/LICM/2003-08-04-TrappingInstOkHoist.ll
test/Transforms/LICM/2003-12-13-VolatilePromote.ll
test/Transforms/LICM/call_sink_const_function.ll
test/Transforms/LICM/call_sink_pure_function.ll
test/Transforms/LICM/sink_critical_edge.ll
test/Transforms/LICM/sink_inst.ll
test/Transforms/LICM/sink_load.ll
test/Transforms/LICM/sink_multiple.ll
test/Transforms/LICM/sink_multiple_exits.ll
test/Transforms/LICM/sink_only_some_exits.ll
test/Transforms/LICM/sink_phi_node_use.ll
test/Transforms/LICM/sink_trapping_inst.ll

index 482b0760d7651a54a66bfb9cce4f992d8e0f2fd8..8cad0019b0ba3556bd4681aa14ac386792535e9c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -constmerge | llvm-dis | grep -C2 foo  | grep bar
+; RUN: llvm-as < %s | opt -constmerge | llvm-dis | %prcontext foo 2 | grep bar
 
 %foo = constant int 6
 %bar = constant int 6
index 637a094359d145d12564edf21a5febfdc29a4692..ccb578737226ed534532352ce7c2e16c8e9e7400 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -indvars  | llvm-dis | grep -C1 Loop: | grep %indvar
+; RUN: llvm-as < %s | opt -indvars  | llvm-dis | %prcontext Loop: 1 | grep %indvar
 
 ; The indvar simplification code should ensure that the first PHI in the block 
 ; is the canonical one!
index cb90b8ca834e7c7019cd0189cf00fe2697a4e0ce..46c4848b9556c64c5bbd835f9101dfe447b0ee8f 100644 (file)
@@ -1,7 +1,7 @@
 ; This test ensures that alloca instructions in the entry block for an inlined
 ; function are moved to the top of the function they are inlined into.
 ;
-; RUN: llvm-as < %s | opt -inline | llvm-dis | grep -C1 alloca | grep Entry:
+; RUN: llvm-as < %s | opt -inline | llvm-dis | %prcontext alloca 1 | grep Entry:
 
 int %func(int %i) {
        %X = alloca int 
index e757ba2660c3bce3d00088785838e4f84d736e16..2173b76d5ba52909e1d417ebdc0c9185f05da95a 100644 (file)
@@ -1,7 +1,7 @@
 ; This testcase tests for a problem where LICM hoists 
 ; potentially trapping instructions when they are not guaranteed to execute.
 ;
-; RUN: llvm-as < %s | opt -licm | llvm-dis | grep -C2 "IfUnEqual" | grep div 
+; RUN: llvm-as < %s | opt -licm | llvm-dis | %prcontext "IfUnEqual" 2 | grep div 
 
 %X = global int 0
 declare void %foo()
index bfe6efef6aa046b32c77b08f2f6f146a2e82fd36..7e2f233a43fd1c7e3353ade62a7c69aab6bf755b 100644 (file)
@@ -1,7 +1,7 @@
 ; This testcase tests to make sure a trapping instruction is hoisted when
 ; it is guaranteed to execute.
 ;
-; RUN: llvm-as < %s | opt -licm | llvm-dis | grep -C2 "test" | grep div
+; RUN: llvm-as < %s | opt -licm | llvm-dis | %prcontext "test" 2 | grep div
 
 %X = global int 0
 declare void %foo(int)
index fad03bf75e0f38ec08fe5bf4d8aa5c359efcf862..66102992a2ebed2c8342ee8e238d8c88914ac425 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -licm | llvm-dis | grep -C1 volatile | grep Loop
+; RUN: llvm-as < %s | opt -licm | llvm-dis | %prcontext volatile 1 | grep Loop
 
 %X = global int 7
 
index 92e9244be6b1202672f6d628a72004339c922ed0..a81e7c399fc26b38606a76ccf095099a72effe87 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -basicaa -licm | llvm-dis | grep -C1 sin | grep Out: 
+; RUN: llvm-as < %s | opt -basicaa -licm | llvm-dis | %prcontext sin 1 | grep Out: 
 declare double %sin(double)
 declare void %foo()
 
index d67436948bd020d9e79df4b5957ae2756fb65e38..80ad8e18fd0f71dcb6a7968eaaa48f4c99359981 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -basicaa -licm | llvm-dis | grep -C1 strlen | grep Out: 
+; RUN: llvm-as < %s | opt -basicaa -licm | llvm-dis | %prcontext strlen 1 | grep Out: 
 declare int %strlen(sbyte*)
 declare void %foo()
 
index 6cd081887b03137dab4329856b9b42044cf32ac3..1ed66523d2bad51c9bf795b64debfe94d71192ba 100644 (file)
@@ -1,7 +1,7 @@
 ; This testcase checks to make sure the sinker does not cause problems with
 ; critical edges.
 
-; RUN: llvm-as < %s | opt -licm | llvm-dis | grep -C1 add | grep Exit
+; RUN: llvm-as < %s | opt -licm | llvm-dis | %prcontext add 1 | grep Exit
 
 implementation   ; Functions:
 
index a4d5c3de21dee2afc4600f2e4017a6e111e30a5b..0cb2c25d7d683caa71a13a00937bf46200ced9cb 100644 (file)
@@ -2,7 +2,7 @@
 ; the instruction to the exit blocks instead of executing it on every
 ; iteration of the loop.
 ;
-; RUN: llvm-as < %s | opt -licm | llvm-dis | grep -C1 mul | grep Out: 
+; RUN: llvm-as < %s | opt -licm | llvm-dis | %prcontext mul 1 | grep Out: 
 
 int %test(int %N) {
 Entry:
index b4c0f2e21ed9ed387ba0081445deee932d784023..a0bfc7f9f71babeff27be97bebb16fb59ab197c6 100644 (file)
@@ -2,7 +2,7 @@
 ; result of the load is only used outside of the loop, sink the load instead of
 ; hoisting it!
 ;
-; RUN: llvm-as < %s | opt -licm | llvm-dis | grep -C1 load | grep Out: 
+; RUN: llvm-as < %s | opt -licm | llvm-dis | %prcontext load 1 | grep Out: 
 
 %X = global int 5
 
index 888dfbe3a522fd9c82291dbb2f1b3674192cd0b2..22ab9f9c1353da8e929828ec4e2966feaab11915 100644 (file)
@@ -3,7 +3,7 @@
 ; instructions from the loop.  Instead they got hoisted, which is better than
 ; leaving them in the loop, but increases register pressure pointlessly.
 
-; RUN: llvm-as < %s | opt -licm | llvm-dis | grep -C1 getelementptr | grep Out:
+; RUN: llvm-as < %s | opt -licm | llvm-dis | %prcontext getelementptr 1 | grep Out:
 
 %Ty = type { int, int }
 %X = external global %Ty
index 1a0f824d5c4cefd330102137d862135afa576fd7..d7f1514a4e9f4960473fb31a954c9791a2d97a2b 100644 (file)
@@ -1,7 +1,7 @@
 ; This testcase ensures that we can sink instructions from loops with
 ; multiple exits.
 ;
-; RUN: llvm-as < %s | opt -licm | llvm-dis | grep -C1 mul | grep 'Out[12]:'
+; RUN: llvm-as < %s | opt -licm | llvm-dis | %prcontext mul 1 | grep 'Out[12]:'
 
 int %test(int %N, bool %C) {
 Entry:
index e672e5854325e6b8b6cc36c9a49e58e8d854adcf..6415c8a1f0dd7aa28a53e20a673741376c438b4f 100644 (file)
@@ -2,7 +2,7 @@
 ; some exits out of the loop, and that we can do so without breaking dominator
 ; info.
 ;
-; RUN: llvm-as < %s | opt -licm | llvm-dis | grep -C1 add | grep exit2:
+; RUN: llvm-as < %s | opt -licm | llvm-dis | %prcontext add 1 | grep exit2:
 
 implementation   ; Functions:
 
index 6335469ea24e56a159fd04a8b9102dffba4094e8..c1d5844e7ecbf4a796fa610802d15e76c56d6a21 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -licm | llvm-dis | grep -C1 add | grep preheader.loopexit: 
+; RUN: llvm-as < %s | opt -licm | llvm-dis | %prcontext add 1 | grep preheader.loopexit: 
 
 implementation
 
index a35c48c4b7261014fb4326c0a5086d7484124c92..4842331d23b4d7485d27be045dab53444af8adef 100644 (file)
@@ -1,7 +1,7 @@
 ; Potentially trapping instructions may be sunk as long as they are guaranteed
 ; to be executed.
 ;
-; RUN: llvm-as < %s | opt -licm | llvm-dis | grep -C1 div | grep Out: 
+; RUN: llvm-as < %s | opt -licm | llvm-dis | %prcontext div 1 | grep Out: 
 
 int %test(int %N) {
 Entry: