diff options
Diffstat (limited to 'test/Transforms/SimplifyCFG')
51 files changed, 52 insertions, 52 deletions
diff --git a/test/Transforms/SimplifyCFG/2002-05-05-EmptyBlockMerge.ll b/test/Transforms/SimplifyCFG/2002-05-05-EmptyBlockMerge.ll index cd6d924..eadafdb 100644 --- a/test/Transforms/SimplifyCFG/2002-05-05-EmptyBlockMerge.ll +++ b/test/Transforms/SimplifyCFG/2002-05-05-EmptyBlockMerge.ll @@ -1,6 +1,6 @@ ; Basic block #2 should not be merged into BB #3! ; -; RUN: opt %s -simplifycfg | llvm-dis | \ +; RUN: opt %s -simplifycfg -S | \ ; RUN: grep {br label} ; diff --git a/test/Transforms/SimplifyCFG/2002-06-24-PHINode.ll b/test/Transforms/SimplifyCFG/2002-06-24-PHINode.ll index f8e7e40..8217e8b 100644 --- a/test/Transforms/SimplifyCFG/2002-06-24-PHINode.ll +++ b/test/Transforms/SimplifyCFG/2002-06-24-PHINode.ll @@ -1,7 +1,7 @@ ; -simplifycfg is not folding blocks if there is a PHI node involved. This ; should be fixed eventually -; RUN: opt %s -simplifycfg | llvm-dis | not grep br +; RUN: opt %s -simplifycfg -S | not grep br define i32 @main(i32 %argc) { ; <label>:0 diff --git a/test/Transforms/SimplifyCFG/2003-08-05-MishandleInvoke.ll b/test/Transforms/SimplifyCFG/2003-08-05-MishandleInvoke.ll index 8de559c..610f7b5 100644 --- a/test/Transforms/SimplifyCFG/2003-08-05-MishandleInvoke.ll +++ b/test/Transforms/SimplifyCFG/2003-08-05-MishandleInvoke.ll @@ -1,6 +1,6 @@ ; Do not remove the invoke! ; -; RUN: opt %s -simplifycfg | llvm-dis | grep invoke +; RUN: opt %s -simplifycfg -S | grep invoke define i32 @test() { invoke i32 @test( ) diff --git a/test/Transforms/SimplifyCFG/2003-08-17-BranchFold.ll b/test/Transforms/SimplifyCFG/2003-08-17-BranchFold.ll index 63fdb4a..018d21f 100644 --- a/test/Transforms/SimplifyCFG/2003-08-17-BranchFold.ll +++ b/test/Transforms/SimplifyCFG/2003-08-17-BranchFold.ll @@ -1,7 +1,7 @@ ; This test checks to make sure that 'br X, Dest, Dest' is folded into ; 'br Dest' -; RUN: opt %s -simplifycfg | llvm-dis | \ +; RUN: opt %s -simplifycfg -S | \ ; RUN: not grep {br i1 %c2} declare void @noop() diff --git a/test/Transforms/SimplifyCFG/2003-08-17-BranchFoldOrdering.ll b/test/Transforms/SimplifyCFG/2003-08-17-BranchFoldOrdering.ll index 1fd2655..ebcbe2b 100644 --- a/test/Transforms/SimplifyCFG/2003-08-17-BranchFoldOrdering.ll +++ b/test/Transforms/SimplifyCFG/2003-08-17-BranchFoldOrdering.ll @@ -3,7 +3,7 @@ ; due to the fact that the SimplifyCFG function does not use ; the ConstantFoldTerminator function. -; RUN: opt %s -simplifycfg | llvm-dis | \ +; RUN: opt %s -simplifycfg -S | \ ; RUN: not grep {br i1 %c2} declare void @noop() diff --git a/test/Transforms/SimplifyCFG/2003-08-17-FoldSwitch-dbg.ll b/test/Transforms/SimplifyCFG/2003-08-17-FoldSwitch-dbg.ll index abd260c..90a521a 100644 --- a/test/Transforms/SimplifyCFG/2003-08-17-FoldSwitch-dbg.ll +++ b/test/Transforms/SimplifyCFG/2003-08-17-FoldSwitch-dbg.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplifycfg | llvm-dis | \ +; RUN: opt %s -simplifycfg -S | \ ; RUN: not grep switch diff --git a/test/Transforms/SimplifyCFG/2003-08-17-FoldSwitch.ll b/test/Transforms/SimplifyCFG/2003-08-17-FoldSwitch.ll index f4e17e9..8ba0ae9 100644 --- a/test/Transforms/SimplifyCFG/2003-08-17-FoldSwitch.ll +++ b/test/Transforms/SimplifyCFG/2003-08-17-FoldSwitch.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplifycfg | llvm-dis | \ +; RUN: opt %s -simplifycfg -S | \ ; RUN: not grep switch ; Test normal folding diff --git a/test/Transforms/SimplifyCFG/2006-10-19-UncondDiv.ll b/test/Transforms/SimplifyCFG/2006-10-19-UncondDiv.ll index 02ce47c..5e54b4f 100644 --- a/test/Transforms/SimplifyCFG/2006-10-19-UncondDiv.ll +++ b/test/Transforms/SimplifyCFG/2006-10-19-UncondDiv.ll @@ -1,5 +1,5 @@ ; PR957 -; RUN: opt %s -simplifycfg | llvm-dis | \ +; RUN: opt %s -simplifycfg -S | \ ; RUN: not grep select @G = extern_weak global i32 diff --git a/test/Transforms/SimplifyCFG/2007-11-22-InvokeNoUnwind.ll b/test/Transforms/SimplifyCFG/2007-11-22-InvokeNoUnwind.ll index c3c9f32..9f01d85 100644 --- a/test/Transforms/SimplifyCFG/2007-11-22-InvokeNoUnwind.ll +++ b/test/Transforms/SimplifyCFG/2007-11-22-InvokeNoUnwind.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplifycfg | llvm-dis | not grep invoke +; RUN: opt %s -simplifycfg -S | not grep invoke declare i32 @func(i8*) nounwind diff --git a/test/Transforms/SimplifyCFG/2008-01-02-hoist-fp-add.ll b/test/Transforms/SimplifyCFG/2008-01-02-hoist-fp-add.ll index 966c91d..194d2a5 100644 --- a/test/Transforms/SimplifyCFG/2008-01-02-hoist-fp-add.ll +++ b/test/Transforms/SimplifyCFG/2008-01-02-hoist-fp-add.ll @@ -1,5 +1,5 @@ ; The phi should not be eliminated in this case, because the fp op could trap. -; RUN: opt %s -simplifycfg | llvm-dis | grep {= phi double} +; RUN: opt %s -simplifycfg -S | grep {= phi double} 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 = "i686-apple-darwin8" diff --git a/test/Transforms/SimplifyCFG/2008-05-16-PHIBlockMerge.ll b/test/Transforms/SimplifyCFG/2008-05-16-PHIBlockMerge.ll index d3bc130..377c584 100644 --- a/test/Transforms/SimplifyCFG/2008-05-16-PHIBlockMerge.ll +++ b/test/Transforms/SimplifyCFG/2008-05-16-PHIBlockMerge.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplifycfg | llvm-dis > %t +; RUN: opt %s -simplifycfg -S > %t ; RUN: not grep {^BB.tomerge} %t ; RUN grep {^BB.nomerge} %t | count 2 diff --git a/test/Transforms/SimplifyCFG/2008-07-13-InfLoopMiscompile.ll b/test/Transforms/SimplifyCFG/2008-07-13-InfLoopMiscompile.ll index fd40be7..0b01c44 100644 --- a/test/Transforms/SimplifyCFG/2008-07-13-InfLoopMiscompile.ll +++ b/test/Transforms/SimplifyCFG/2008-07-13-InfLoopMiscompile.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplifycfg | llvm-dis | grep {%outval = phi i32 .*mux} +; RUN: opt %s -simplifycfg -S | grep {%outval = phi i32 .*mux} ; PR2540 ; Outval should end up with a select from 0/2, not all constants. diff --git a/test/Transforms/SimplifyCFG/2008-12-16-DCECond.ll b/test/Transforms/SimplifyCFG/2008-12-16-DCECond.ll index 3a48f8c..7ad0c4b 100644 --- a/test/Transforms/SimplifyCFG/2008-12-16-DCECond.ll +++ b/test/Transforms/SimplifyCFG/2008-12-16-DCECond.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplifycfg | llvm-dis | not grep icmp +; RUN: opt %s -simplifycfg -S | not grep icmp ; ModuleID = '/tmp/x.bc' 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 = "i686-pc-linux-gnu" diff --git a/test/Transforms/SimplifyCFG/2009-01-19-UnconditionalTrappingConstantExpr.ll b/test/Transforms/SimplifyCFG/2009-01-19-UnconditionalTrappingConstantExpr.ll index b9411a0..1fefa08 100644 --- a/test/Transforms/SimplifyCFG/2009-01-19-UnconditionalTrappingConstantExpr.ll +++ b/test/Transforms/SimplifyCFG/2009-01-19-UnconditionalTrappingConstantExpr.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplifycfg | llvm-dis | grep {br i1 } | count 4 +; RUN: opt %s -simplifycfg -S | grep {br i1 } | count 4 ; PR3354 ; Do not merge bb1 into the entry block, it might trap. diff --git a/test/Transforms/SimplifyCFG/2009-03-05-Speculative-Hoist-Dbg.ll b/test/Transforms/SimplifyCFG/2009-03-05-Speculative-Hoist-Dbg.ll index 0d6f8e0..617cdfb 100644 --- a/test/Transforms/SimplifyCFG/2009-03-05-Speculative-Hoist-Dbg.ll +++ b/test/Transforms/SimplifyCFG/2009-03-05-Speculative-Hoist-Dbg.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplifycfg | llvm-dis | grep select +; RUN: opt %s -simplifycfg -S | grep select %llvm.dbg.anchor.type = type { i32, i32 } %llvm.dbg.compile_unit.type = type { i32, { }*, i32, i8*, i8*, i8*, i1, i1, i8* } diff --git a/test/Transforms/SimplifyCFG/2009-05-12-externweak.ll b/test/Transforms/SimplifyCFG/2009-05-12-externweak.ll index 1088a0f..9d71dd8 100644 --- a/test/Transforms/SimplifyCFG/2009-05-12-externweak.ll +++ b/test/Transforms/SimplifyCFG/2009-05-12-externweak.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplifycfg | llvm-dis | not grep select +; RUN: opt %s -simplifycfg -S | not grep select ; ModuleID = '<stdin>' 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-darwin10.0" diff --git a/test/Transforms/SimplifyCFG/BrUnwind.ll b/test/Transforms/SimplifyCFG/BrUnwind.ll index c971897..3afb6b2 100644 --- a/test/Transforms/SimplifyCFG/BrUnwind.ll +++ b/test/Transforms/SimplifyCFG/BrUnwind.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplifycfg | llvm-dis | \ +; RUN: opt %s -simplifycfg -S | \ ; RUN: not grep {br label} define void @test(i1 %C) { diff --git a/test/Transforms/SimplifyCFG/DeadSetCC.ll b/test/Transforms/SimplifyCFG/DeadSetCC.ll index 9eed20d..6bc54ab 100644 --- a/test/Transforms/SimplifyCFG/DeadSetCC.ll +++ b/test/Transforms/SimplifyCFG/DeadSetCC.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplifycfg | llvm-dis | \ +; RUN: opt %s -simplifycfg -S | \ ; RUN: not grep {icmp eq} ; Check that simplifycfg deletes a dead 'seteq' instruction when it diff --git a/test/Transforms/SimplifyCFG/EqualPHIEdgeBlockMerge.ll b/test/Transforms/SimplifyCFG/EqualPHIEdgeBlockMerge.ll index 1c174bf..8104715 100644 --- a/test/Transforms/SimplifyCFG/EqualPHIEdgeBlockMerge.ll +++ b/test/Transforms/SimplifyCFG/EqualPHIEdgeBlockMerge.ll @@ -1,6 +1,6 @@ ; Test merging of blocks with phi nodes. ; -; RUN: opt %s -simplifycfg | llvm-dis | not grep N: +; RUN: opt %s -simplifycfg -S | not grep N: ; define i32 @test(i1 %a) { diff --git a/test/Transforms/SimplifyCFG/HoistCode.ll b/test/Transforms/SimplifyCFG/HoistCode.ll index 008aea7..f52d160 100644 --- a/test/Transforms/SimplifyCFG/HoistCode.ll +++ b/test/Transforms/SimplifyCFG/HoistCode.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplifycfg | llvm-dis | not grep br +; RUN: opt %s -simplifycfg -S | not grep br define void @foo(i1 %C, i32* %P) { br i1 %C, label %T, label %F diff --git a/test/Transforms/SimplifyCFG/InvokeEliminate.ll b/test/Transforms/SimplifyCFG/InvokeEliminate.ll index e56b971..1e746c4 100644 --- a/test/Transforms/SimplifyCFG/InvokeEliminate.ll +++ b/test/Transforms/SimplifyCFG/InvokeEliminate.ll @@ -3,7 +3,7 @@ ; If this test is successful, the function should be reduced to 'call; ret' -; RUN: opt %s -simplifycfg | llvm-dis | \ +; RUN: opt %s -simplifycfg -S | \ ; RUN: not egrep {\\(invoke\\)|\\(br\\)} declare void @bar() diff --git a/test/Transforms/SimplifyCFG/PhiBlockMerge.ll b/test/Transforms/SimplifyCFG/PhiBlockMerge.ll index 9845370..3ef1fe2 100644 --- a/test/Transforms/SimplifyCFG/PhiBlockMerge.ll +++ b/test/Transforms/SimplifyCFG/PhiBlockMerge.ll @@ -1,6 +1,6 @@ ; Test merging of blocks that only have PHI nodes in them ; -; RUN: opt %s -simplifycfg | llvm-dis | not grep N: +; RUN: opt %s -simplifycfg -S | not grep N: ; define i32 @test(i1 %a, i1 %b) { diff --git a/test/Transforms/SimplifyCFG/PhiBlockMerge2.ll b/test/Transforms/SimplifyCFG/PhiBlockMerge2.ll index f6e91d4..89a7e59 100644 --- a/test/Transforms/SimplifyCFG/PhiBlockMerge2.ll +++ b/test/Transforms/SimplifyCFG/PhiBlockMerge2.ll @@ -2,7 +2,7 @@ ; where the mergedinto block doesn't have any PHI nodes, and is in fact ; dominated by the block-to-be-eliminated ; -; RUN: opt %s -simplifycfg | llvm-dis | not grep N: +; RUN: opt %s -simplifycfg -S | not grep N: ; declare i1 @foo() diff --git a/test/Transforms/SimplifyCFG/PhiEliminate.ll b/test/Transforms/SimplifyCFG/PhiEliminate.ll index 3b7a69d..a877a1f 100644 --- a/test/Transforms/SimplifyCFG/PhiEliminate.ll +++ b/test/Transforms/SimplifyCFG/PhiEliminate.ll @@ -3,7 +3,7 @@ ; nodes away allows the branches to be eliminated, performing a simple form of ; 'if conversion'. -; RUN: opt %s -simplifycfg | llvm-dis > %t.xform +; RUN: opt %s -simplifycfg -S > %t.xform ; RUN: not grep phi %t.xform ; RUN: grep ret %t.xform diff --git a/test/Transforms/SimplifyCFG/PhiEliminate2.ll b/test/Transforms/SimplifyCFG/PhiEliminate2.ll index 80769ed..c0270e4 100644 --- a/test/Transforms/SimplifyCFG/PhiEliminate2.ll +++ b/test/Transforms/SimplifyCFG/PhiEliminate2.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplifycfg | llvm-dis | not grep br +; RUN: opt %s -simplifycfg -S | not grep br define i32 @test(i1 %C, i32 %V1, i32 %V2) { entry: diff --git a/test/Transforms/SimplifyCFG/PhiNoEliminate.ll b/test/Transforms/SimplifyCFG/PhiNoEliminate.ll index 9470ca8..ccca831 100644 --- a/test/Transforms/SimplifyCFG/PhiNoEliminate.ll +++ b/test/Transforms/SimplifyCFG/PhiNoEliminate.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplifycfg | llvm-dis | \ +; RUN: opt %s -simplifycfg -S | \ ; RUN: not grep select ;; The PHI node in this example should not be turned into a select, as we are diff --git a/test/Transforms/SimplifyCFG/SpeculativeExec.ll b/test/Transforms/SimplifyCFG/SpeculativeExec.ll index 581df09..891b566 100644 --- a/test/Transforms/SimplifyCFG/SpeculativeExec.ll +++ b/test/Transforms/SimplifyCFG/SpeculativeExec.ll @@ -1,5 +1,5 @@ -; RUN: opt %s -simplifycfg | llvm-dis | grep select -; RUN: opt %s -simplifycfg | llvm-dis | grep br | count 2 +; RUN: opt %s -simplifycfg -S | grep select +; RUN: opt %s -simplifycfg -S | grep br | count 2 define i32 @t2(i32 %a, i32 %b, i32 %c) nounwind { entry: diff --git a/test/Transforms/SimplifyCFG/UncondBranchToReturn.ll b/test/Transforms/SimplifyCFG/UncondBranchToReturn.ll index 7d282ab..bbc8619 100644 --- a/test/Transforms/SimplifyCFG/UncondBranchToReturn.ll +++ b/test/Transforms/SimplifyCFG/UncondBranchToReturn.ll @@ -2,7 +2,7 @@ ; a PHI node and a return. Make sure the simplify cfg can straighten out this ; important case. This is basically the most trivial form of tail-duplication. -; RUN: opt %s -simplifycfg | llvm-dis | \ +; RUN: opt %s -simplifycfg -S | \ ; RUN: not grep {br label} define i32 @test(i1 %B, i32 %A, i32 %B.upgrd.1) { diff --git a/test/Transforms/SimplifyCFG/UnreachableEliminate.ll b/test/Transforms/SimplifyCFG/UnreachableEliminate.ll index 9c7a79e..a9623ef 100644 --- a/test/Transforms/SimplifyCFG/UnreachableEliminate.ll +++ b/test/Transforms/SimplifyCFG/UnreachableEliminate.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplifycfg | llvm-dis | not grep unreachable +; RUN: opt %s -simplifycfg -S | not grep unreachable define void @test1(i1 %C, i1* %BP) { br i1 %C, label %T, label %F diff --git a/test/Transforms/SimplifyCFG/basictest.ll b/test/Transforms/SimplifyCFG/basictest.ll index 996d31e..0bf5b5e 100644 --- a/test/Transforms/SimplifyCFG/basictest.ll +++ b/test/Transforms/SimplifyCFG/basictest.ll @@ -1,6 +1,6 @@ ; Test CFG simplify removal of branch instructions... ; -; RUN: opt %s -simplifycfg | llvm-dis | not grep br +; RUN: opt %s -simplifycfg -S | not grep br define void @test1() { br label %BB1 diff --git a/test/Transforms/SimplifyCFG/branch-branch-dbginfo.ll b/test/Transforms/SimplifyCFG/branch-branch-dbginfo.ll index 443a925..8769f79 100644 --- a/test/Transforms/SimplifyCFG/branch-branch-dbginfo.ll +++ b/test/Transforms/SimplifyCFG/branch-branch-dbginfo.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplifycfg | llvm-dis | grep {br i1} | count 1 +; RUN: opt %s -simplifycfg -S | grep {br i1} | count 1 ; ModuleID = '<stdin>' 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:32:32" diff --git a/test/Transforms/SimplifyCFG/branch-cond-prop.ll b/test/Transforms/SimplifyCFG/branch-cond-prop.ll index 8d5cdc5..1ba6226 100644 --- a/test/Transforms/SimplifyCFG/branch-cond-prop.ll +++ b/test/Transforms/SimplifyCFG/branch-cond-prop.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplifycfg | llvm-dis | not grep call +; RUN: opt %s -simplifycfg -S | not grep call declare void @bar() diff --git a/test/Transforms/SimplifyCFG/branch-fold-test.ll b/test/Transforms/SimplifyCFG/branch-fold-test.ll index b575f5b..460f245 100644 --- a/test/Transforms/SimplifyCFG/branch-fold-test.ll +++ b/test/Transforms/SimplifyCFG/branch-fold-test.ll @@ -1,7 +1,7 @@ ; This test ensures that the simplifycfg pass continues to constant fold ; terminator instructions. -; RUN: opt %s -simplifycfg | llvm-dis | not grep br +; RUN: opt < %s -simplifycfg -S | not grep br define i32 @test(i32 %A, i32 %B) { J: diff --git a/test/Transforms/SimplifyCFG/branch-fold.ll b/test/Transforms/SimplifyCFG/branch-fold.ll index 40f59df..c3d51c1 100644 --- a/test/Transforms/SimplifyCFG/branch-fold.ll +++ b/test/Transforms/SimplifyCFG/branch-fold.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplifycfg | llvm-dis | grep {br i1} | count 1 +; RUN: opt %s -simplifycfg -S | grep {br i1} | count 1 define void @test(i32* %P, i32* %Q, i1 %A, i1 %B) { br i1 %A, label %a, label %b diff --git a/test/Transforms/SimplifyCFG/branch-phi-thread.ll b/test/Transforms/SimplifyCFG/branch-phi-thread.ll index 5288f7c..1d926d5 100644 --- a/test/Transforms/SimplifyCFG/branch-phi-thread.ll +++ b/test/Transforms/SimplifyCFG/branch-phi-thread.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplifycfg -adce | llvm-dis | \ +; RUN: opt %s -simplifycfg -adce -S | \ ; RUN: not grep {call void @f1} ; END. diff --git a/test/Transforms/SimplifyCFG/branch_fold_dbg.ll b/test/Transforms/SimplifyCFG/branch_fold_dbg.ll index 618657f..c91a87e 100644 --- a/test/Transforms/SimplifyCFG/branch_fold_dbg.ll +++ b/test/Transforms/SimplifyCFG/branch_fold_dbg.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplifycfg | llvm-dis | not grep br +; RUN: opt < %s -simplifycfg -S | not grep br ; END. %llvm.dbg.anchor.type = type { i32, i32 } diff --git a/test/Transforms/SimplifyCFG/dbginfo.ll b/test/Transforms/SimplifyCFG/dbginfo.ll index 4049901..c9b7b86 100644 --- a/test/Transforms/SimplifyCFG/dbginfo.ll +++ b/test/Transforms/SimplifyCFG/dbginfo.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplifycfg | llvm-dis | not grep "br label" +; RUN: opt %s -simplifycfg -S | not grep "br label" %llvm.dbg.anchor.type = type { i32, i32 } %llvm.dbg.basictype.type = type { i32, { }*, i8*, { }*, i32, i64, i64, i64, i32, i32 } diff --git a/test/Transforms/SimplifyCFG/hoist-common-code.dbg.ll b/test/Transforms/SimplifyCFG/hoist-common-code.dbg.ll index 0122fb8..9a73cbc 100644 --- a/test/Transforms/SimplifyCFG/hoist-common-code.dbg.ll +++ b/test/Transforms/SimplifyCFG/hoist-common-code.dbg.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplifycfg | llvm-dis | not grep br +; RUN: opt %s -simplifycfg -S | not grep br %llvm.dbg.anchor.type = type { i32, i32 } diff --git a/test/Transforms/SimplifyCFG/hoist-common-code.ll b/test/Transforms/SimplifyCFG/hoist-common-code.ll index 6ab6991..3568571 100644 --- a/test/Transforms/SimplifyCFG/hoist-common-code.ll +++ b/test/Transforms/SimplifyCFG/hoist-common-code.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplifycfg | llvm-dis | not grep br +; RUN: opt %s -simplifycfg -S | not grep br declare void @bar(i32) diff --git a/test/Transforms/SimplifyCFG/iterative-simplify.ll b/test/Transforms/SimplifyCFG/iterative-simplify.ll index f752458..5f5a1b0 100644 --- a/test/Transforms/SimplifyCFG/iterative-simplify.ll +++ b/test/Transforms/SimplifyCFG/iterative-simplify.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplifycfg | llvm-dis | not grep bb17 +; RUN: opt %s -simplifycfg -S | not grep bb17 ; PR1786 define i32 @main() { diff --git a/test/Transforms/SimplifyCFG/noreturn-call.ll b/test/Transforms/SimplifyCFG/noreturn-call.ll index 50d5102..16cebc2 100644 --- a/test/Transforms/SimplifyCFG/noreturn-call.ll +++ b/test/Transforms/SimplifyCFG/noreturn-call.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplifycfg | llvm-dis | grep unreachable +; RUN: opt %s -simplifycfg -S | grep unreachable ; PR1796 declare void @Finisher(i32) noreturn diff --git a/test/Transforms/SimplifyCFG/return-merge.ll b/test/Transforms/SimplifyCFG/return-merge.ll index a375646..ddc791d 100644 --- a/test/Transforms/SimplifyCFG/return-merge.ll +++ b/test/Transforms/SimplifyCFG/return-merge.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplifycfg | llvm-dis | not grep br +; RUN: opt %s -simplifycfg -S | not grep br define i32 @test1(i1 %C) { entry: diff --git a/test/Transforms/SimplifyCFG/switch_create.ll b/test/Transforms/SimplifyCFG/switch_create.ll index 6c473d6..5df9210 100644 --- a/test/Transforms/SimplifyCFG/switch_create.ll +++ b/test/Transforms/SimplifyCFG/switch_create.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplifycfg | llvm-dis | not grep br +; RUN: opt %s -simplifycfg -S | not grep br declare void @foo1() diff --git a/test/Transforms/SimplifyCFG/switch_formation.dbg.ll b/test/Transforms/SimplifyCFG/switch_formation.dbg.ll index b8e9574..9b4b4ae 100644 --- a/test/Transforms/SimplifyCFG/switch_formation.dbg.ll +++ b/test/Transforms/SimplifyCFG/switch_formation.dbg.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplifycfg | llvm-dis | not grep br +; RUN: opt %s -simplifycfg -S | not grep br ; END. diff --git a/test/Transforms/SimplifyCFG/switch_formation.ll b/test/Transforms/SimplifyCFG/switch_formation.ll index fb3f112..6eea141 100644 --- a/test/Transforms/SimplifyCFG/switch_formation.ll +++ b/test/Transforms/SimplifyCFG/switch_formation.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplifycfg | llvm-dis | not grep br +; RUN: opt %s -simplifycfg -S | not grep br ; END. define i1 @_ZN4llvm11SetCondInst7classofEPKNS_11InstructionE({ i32, i32 }* %I) { diff --git a/test/Transforms/SimplifyCFG/switch_switch_fold.ll b/test/Transforms/SimplifyCFG/switch_switch_fold.ll index c30f0c0..2e2e310 100644 --- a/test/Transforms/SimplifyCFG/switch_switch_fold.ll +++ b/test/Transforms/SimplifyCFG/switch_switch_fold.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplifycfg | llvm-dis | \ +; RUN: opt < %s -simplifycfg -S | \ ; RUN: grep switch | count 1 ; Test that a switch going to a switch on the same value can be merged. All diff --git a/test/Transforms/SimplifyCFG/switch_switch_fold_dbginfo.ll b/test/Transforms/SimplifyCFG/switch_switch_fold_dbginfo.ll index 778705d..7d7391a 100644 --- a/test/Transforms/SimplifyCFG/switch_switch_fold_dbginfo.ll +++ b/test/Transforms/SimplifyCFG/switch_switch_fold_dbginfo.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplifycfg | llvm-dis | \ +; RUN: opt < %s -simplifycfg -S | \ ; RUN: grep switch | count 1 ; ModuleID = '<stdin>' diff --git a/test/Transforms/SimplifyCFG/switch_thread.ll b/test/Transforms/SimplifyCFG/switch_thread.ll index c94f52c..eff4717 100644 --- a/test/Transforms/SimplifyCFG/switch_thread.ll +++ b/test/Transforms/SimplifyCFG/switch_thread.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplifycfg | llvm-dis | \ +; RUN: opt %s -simplifycfg -S | \ ; RUN: not grep {call void @DEAD} ; Test that we can thread a simple known condition through switch statements. diff --git a/test/Transforms/SimplifyCFG/trapping-load-unreachable.ll b/test/Transforms/SimplifyCFG/trapping-load-unreachable.ll index 8c856c7..1596f0e 100644 --- a/test/Transforms/SimplifyCFG/trapping-load-unreachable.ll +++ b/test/Transforms/SimplifyCFG/trapping-load-unreachable.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplifycfg | llvm-dis | grep {volatile load} +; RUN: opt %s -simplifycfg -S | grep {volatile load} ; PR2967 target datalayout = diff --git a/test/Transforms/SimplifyCFG/two-entry-phi-return.dbg.ll b/test/Transforms/SimplifyCFG/two-entry-phi-return.dbg.ll index 3748ef6..ff85810 100644 --- a/test/Transforms/SimplifyCFG/two-entry-phi-return.dbg.ll +++ b/test/Transforms/SimplifyCFG/two-entry-phi-return.dbg.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplifycfg | llvm-dis | not grep br +; RUN: opt %s -simplifycfg -S | not grep br %llvm.dbg.anchor.type = type { i32, i32 } %llvm.dbg.compile_unit.type = type { i32, { }*, i32, i8*, i8*, i8*, i1, i1, i8* } diff --git a/test/Transforms/SimplifyCFG/two-entry-phi-return.ll b/test/Transforms/SimplifyCFG/two-entry-phi-return.ll index ff9d45e..f28c8c9 100644 --- a/test/Transforms/SimplifyCFG/two-entry-phi-return.ll +++ b/test/Transforms/SimplifyCFG/two-entry-phi-return.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplifycfg | llvm-dis | not grep br +; RUN: opt %s -simplifycfg -S | not grep br define i1 @qux(i8* %m, i8* %n, i8* %o, i8* %p) nounwind { entry: |