[NFC] Port all CodeExtractor tests to `-passes=` syntax
authorRoman Lebedev <lebedev.ri@gmail.com>
Wed, 7 Dec 2022 19:37:54 +0000 (22:37 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Wed, 7 Dec 2022 20:15:16 +0000 (23:15 +0300)
51 files changed:
llvm/test/Transforms/CodeExtractor/2004-03-13-LoopExtractorCrash.ll
llvm/test/Transforms/CodeExtractor/2004-03-14-DominanceProblem.ll
llvm/test/Transforms/CodeExtractor/2004-03-17-MissedLiveIns.ll
llvm/test/Transforms/CodeExtractor/2004-03-17-UpdatePHIsOutsideRegion.ll
llvm/test/Transforms/CodeExtractor/2004-03-18-InvokeHandling.ll
llvm/test/Transforms/CodeExtractor/2004-08-12-BlockExtractPHI.ll
llvm/test/Transforms/CodeExtractor/2004-11-12-InvokeExtract.ll
llvm/test/Transforms/CodeExtractor/BlockAddressReference.ll
llvm/test/Transforms/CodeExtractor/BlockAddressSelfReference.ll
llvm/test/Transforms/CodeExtractor/ExtractedFnEntryCount.ll
llvm/test/Transforms/CodeExtractor/LoopExtractor.ll
llvm/test/Transforms/CodeExtractor/LoopExtractor_alloca.ll
llvm/test/Transforms/CodeExtractor/LoopExtractor_min_wrapper.ll
llvm/test/Transforms/CodeExtractor/MultipleExitBranchProb.ll
llvm/test/Transforms/CodeExtractor/PartialInlineAlloca.ll
llvm/test/Transforms/CodeExtractor/PartialInlineAlloca2.ll
llvm/test/Transforms/CodeExtractor/PartialInlineAlloca4.ll
llvm/test/Transforms/CodeExtractor/PartialInlineAlloca5.ll
llvm/test/Transforms/CodeExtractor/PartialInlineAnd.ll
llvm/test/Transforms/CodeExtractor/PartialInlineAndOr.ll
llvm/test/Transforms/CodeExtractor/PartialInlineAttributes.ll
llvm/test/Transforms/CodeExtractor/PartialInlineCallRef.ll
llvm/test/Transforms/CodeExtractor/PartialInlineDebug.ll
llvm/test/Transforms/CodeExtractor/PartialInlineEntryPHICost.ll
llvm/test/Transforms/CodeExtractor/PartialInlineEntryUpdate.ll
llvm/test/Transforms/CodeExtractor/PartialInlineHighCost.ll
llvm/test/Transforms/CodeExtractor/PartialInlineInvokeProducesOutVal.ll
llvm/test/Transforms/CodeExtractor/PartialInlineLiveAcross.ll
llvm/test/Transforms/CodeExtractor/PartialInlineNoInline.ll
llvm/test/Transforms/CodeExtractor/PartialInlineNoLiveOut.ll
llvm/test/Transforms/CodeExtractor/PartialInlineNotViable.ll
llvm/test/Transforms/CodeExtractor/PartialInlineORECrash.ll
llvm/test/Transforms/CodeExtractor/PartialInlineOptRemark.ll
llvm/test/Transforms/CodeExtractor/PartialInlineOr.ll
llvm/test/Transforms/CodeExtractor/PartialInlineOrAnd.ll
llvm/test/Transforms/CodeExtractor/PartialInlinePGOMultiRegion.ll
llvm/test/Transforms/CodeExtractor/PartialInlinePGORegion.ll
llvm/test/Transforms/CodeExtractor/PartialInlineVarArg.ll
llvm/test/Transforms/CodeExtractor/PartialInlineVarArgsDebug.ll
llvm/test/Transforms/CodeExtractor/SingleCondition.ll
llvm/test/Transforms/CodeExtractor/X86/InheritTargetAttributes.ll
llvm/test/Transforms/CodeExtractor/cost.ll
llvm/test/Transforms/CodeExtractor/cost_meta.ll
llvm/test/Transforms/CodeExtractor/inline_eh.ll
llvm/test/Transforms/CodeExtractor/inline_eh_1.ll
llvm/test/Transforms/CodeExtractor/live_shrink.ll
llvm/test/Transforms/CodeExtractor/live_shrink_gep.ll
llvm/test/Transforms/CodeExtractor/live_shrink_hoist.ll
llvm/test/Transforms/CodeExtractor/live_shrink_multiple.ll
llvm/test/Transforms/CodeExtractor/live_shrink_unsafe.ll
llvm/test/Transforms/CodeExtractor/unreachable-block.ll

index e0063d4..bcf418e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -loop-simplify -loop-extract -disable-output
+; RUN: opt < %s -passes='function(loop-simplify),loop-extract'  -disable-output
 
 define void @solve() {
 entry:
index 0df49c8..1319690 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt < %s -loop-simplify -loop-extract -disable-output
-; This testcase is failing the loop extractor because not all exit blocks 
+; RUN: opt < %s -passes='function(loop-simplify),loop-extract'  -disable-output
+; This testcase is failing the loop extractor because not all exit blocks
 ; are dominated by all of the live-outs.
 
 define i32 @ab(i32 %alpha, i32 %beta) {
index 8a48736..81c715a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -loop-simplify -loop-extract -disable-output
+; RUN: opt < %s -passes='function(loop-simplify),loop-extract'  -disable-output
 
 define void @sendMTFValues() {
 entry:
index 9d14054..5068cfe 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -loop-simplify -loop-extract -disable-output
+; RUN: opt < %s -passes='function(loop-simplify),loop-extract'  -disable-output
 
 define void @maketree() {
 entry:
index b331672..57b7645 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -loop-simplify -loop-extract -disable-output
+; RUN: opt < %s -passes='function(loop-simplify),loop-extract'  -disable-output
 
 declare i32 @_IO_getc()
 
index 9f70bdc..ae24f74 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -extract-blocks -disable-output
+; RUN: opt < %s -passes=extract-blocks -disable-output
 
 define void @test1() {
 no_exit.0.i:
index 0a83681..a533298 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -extract-blocks -disable-output
+; RUN: opt < %s -passes=extract-blocks -disable-output
 define i32 @foo() personality i32 (...)* @__gcc_personality_v0 {
         br label %EB
 
index dca20ae..6578da5 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -loop-simplify -loop-extract -S | FileCheck %s
+; RUN: opt < %s -passes='function(loop-simplify),loop-extract'  -S | FileCheck %s
 
 @label = common local_unnamed_addr global i8* null
 
index 0c26f7d..ef1018f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -loop-simplify -loop-extract -S | FileCheck %s
+; RUN: opt < %s -passes='function(loop-simplify),loop-extract'  -S | FileCheck %s
 
 @choum.addr = internal unnamed_addr constant [3 x i8*] [i8* blockaddress(@choum, %bb10), i8* blockaddress(@choum, %bb14), i8* blockaddress(@choum, %bb18)]
 
index 55c44e1..3e77932 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -partial-inliner -skip-partial-inlining-cost-analysis -S | FileCheck %s
+; RUN: opt < %s -passes=partial-inliner -skip-partial-inlining-cost-analysis -S | FileCheck %s
 
 ; This test checks to make sure that the CodeExtractor
 ;  properly sets the entry count for the function that is
index 84274c0..f5a68fa 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -break-crit-edges -loop-simplify -loop-extract -S | FileCheck %s
+; RUN: opt < %s -passes='function(break-crit-edges,loop-simplify),loop-extract' -S | FileCheck %s
 
 ; This function has 2 simple loops and they should be extracted into 2 new functions.
 define void @test3() {
index d277eb4..474e489 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -debugify -loop-simplify -loop-extract -S < %s | FileCheck %s
+; RUN: opt -passes=debugify,loop-simplify,loop-extract -S < %s | FileCheck %s
 
 ; This tests 2 cases:
 ; 1. loop1 should be extracted into a function, without extracting %v1 alloca.
index a96d820..3f1bdae 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -break-crit-edges -loop-simplify -loop-extract -S | FileCheck %s
+; RUN: opt < %s -passes='function(break-crit-edges,loop-simplify),loop-extract' -S | FileCheck %s
 
 ; This function is just a minimal wrapper around a loop and should not be extracted.
 define void @test() {
index 8e36208..6356845 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -partial-inliner -max-num-inline-blocks=2 -skip-partial-inlining-cost-analysis -S | FileCheck %s
+; RUN: opt < %s -passes=partial-inliner -max-num-inline-blocks=2 -skip-partial-inlining-cost-analysis -S | FileCheck %s
 
 ; This test checks to make sure that CodeExtractor updates
 ;  the exit branch probabilities for multiple exit blocks.
index 48db0b6..2af08ec 100644 (file)
@@ -1,5 +1,5 @@
 
-;  RUN: opt < %s -partial-inliner -skip-partial-inlining-cost-analysis -S | FileCheck  %s
+;  RUN: opt < %s -passes=partial-inliner -skip-partial-inlining-cost-analysis -S | FileCheck  %s
  ; RUN: opt < %s -passes=partial-inliner -skip-partial-inlining-cost-analysis -S | FileCheck   %s
 
 %"class.base" = type { %"struct.base"* }
index 4ca4183..5b11971 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -partial-inliner -skip-partial-inlining-cost-analysis -S | FileCheck  %s
+; RUN: opt < %s -passes=partial-inliner -skip-partial-inlining-cost-analysis -S | FileCheck  %s
 ; RUN: opt < %s -passes=partial-inliner -skip-partial-inlining-cost-analysis -S | FileCheck   %s
 
 %"class.base" = type { %"struct.base"* }
index 5112135..c0401a9 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -partial-inliner -skip-partial-inlining-cost-analysis -S | FileCheck  %s
+; RUN: opt < %s -passes=partial-inliner -skip-partial-inlining-cost-analysis -S | FileCheck  %s
 ; RUN: opt < %s -passes=partial-inliner -skip-partial-inlining-cost-analysis -S | FileCheck   %s
 
 %"class.base" = type { %"struct.base"* }
index 0bde58f..54fe9a5 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -partial-inliner -skip-partial-inlining-cost-analysis -S | FileCheck  %s
+; RUN: opt < %s -passes=partial-inliner -skip-partial-inlining-cost-analysis -S | FileCheck  %s
 ; RUN: opt < %s -passes=partial-inliner -skip-partial-inlining-cost-analysis -S | FileCheck   %s
 
 %"class.base" = type { %"struct.base"* }
index 6d555b7..1f42ef7 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: opt < %s -partial-inliner -S | FileCheck %s
 ; RUN: opt < %s -passes=partial-inliner -S | FileCheck %s
-; RUN: opt < %s -partial-inliner -skip-partial-inlining-cost-analysis -max-num-inline-blocks=2 -S | FileCheck --check-prefix=LIMIT %s
+; RUN: opt < %s -passes=partial-inliner -S | FileCheck %s
+; RUN: opt < %s -passes=partial-inliner -skip-partial-inlining-cost-analysis -max-num-inline-blocks=2 -S | FileCheck --check-prefix=LIMIT %s
 ; RUN: opt < %s -passes=partial-inliner -skip-partial-inlining-cost-analysis -max-num-inline-blocks=2 -S | FileCheck  --check-prefix=LIMIT %s
 
 ; Function Attrs: nounwind uwtable
index 9da9ed4..9c25d23 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: opt < %s -partial-inliner -S | FileCheck %s
 ; RUN: opt < %s -passes=partial-inliner -S | FileCheck %s
-; RUN: opt < %s -partial-inliner -max-num-inline-blocks=3 -S | FileCheck --check-prefix=LIMIT %s
+; RUN: opt < %s -passes=partial-inliner -S | FileCheck %s
+; RUN: opt < %s -passes=partial-inliner -max-num-inline-blocks=3 -S | FileCheck --check-prefix=LIMIT %s
 ; RUN: opt < %s -passes=partial-inliner -max-num-inline-blocks=3 -S | FileCheck  --check-prefix=LIMIT %s
 
 ; Function Attrs: nounwind uwtable
@@ -57,7 +57,7 @@ bb:
   ret i32 %tmp
 }
 
-attributes #0 = { nounwind } 
+attributes #0 = { nounwind }
 attributes #1 = { nounwind }
 attributes #2 = { nounwind }
 
index ef9779c..080ea2e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -S -partial-inliner -skip-partial-inlining-cost-analysis=true | FileCheck %s
+; RUN: opt < %s -S -passes=partial-inliner -skip-partial-inlining-cost-analysis=true | FileCheck %s
 
 
 define i32 @callee_most(i32 %v) unnamed_addr  #0 #1 {
index 4465a0f..0e8723f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -partial-inliner -S  | FileCheck %s
+; RUN: opt < %s -passes=partial-inliner -S  | FileCheck %s
 ; RUN: opt < %s -passes=partial-inliner -S  | FileCheck %s
 
 
index cbcb0af..eb2fb4f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -S -partial-inliner -skip-partial-inlining-cost-analysis=true | FileCheck %s
+; RUN: opt < %s -S -passes=partial-inliner -skip-partial-inlining-cost-analysis=true | FileCheck %s
 
 ; CHECK-LABEL: @callee
 ; CHECK: %mul = mul nsw i32 %v, 10, !dbg ![[DBG1:[0-9]+]]
index a8c2d62..1a5fb45 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -partial-inliner -S | FileCheck %s
+; RUN: opt < %s -passes=partial-inliner -S | FileCheck %s
 ; RUN: opt < %s -passes=partial-inliner -S | FileCheck %s
 
 ; Check that we do not overcompute the outlined region cost, where the PHIs in
index 0efc829..6f835a7 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -skip-partial-inlining-cost-analysis -partial-inliner -S  | FileCheck %s
+; RUN: opt < %s -skip-partial-inlining-cost-analysis -passes=partial-inliner -S  | FileCheck %s
 ; RUN: opt < %s -skip-partial-inlining-cost-analysis -passes=partial-inliner -S  | FileCheck %s
 
 define i32 @Func(i1 %cond, i32* align 4 %align.val) !prof !1 {
index e43a94d..65a3851 100644 (file)
@@ -1,8 +1,8 @@
 ; The outlined region has high frequency  and the outlining
 ; call sequence is expensive (input, output, multiple exit etc)
-; RUN: opt < %s -partial-inliner -max-num-inline-blocks=2 -S | FileCheck %s
 ; RUN: opt < %s -passes=partial-inliner -max-num-inline-blocks=2 -S | FileCheck %s
-; RUN: opt < %s -partial-inliner -skip-partial-inlining-cost-analysis -max-num-inline-blocks=2 -S | FileCheck --check-prefix=NOCOST %s
+; RUN: opt < %s -passes=partial-inliner -max-num-inline-blocks=2 -S | FileCheck %s
+; RUN: opt < %s -passes=partial-inliner -skip-partial-inlining-cost-analysis -max-num-inline-blocks=2 -S | FileCheck --check-prefix=NOCOST %s
 ; RUN: opt < %s -passes=partial-inliner -skip-partial-inlining-cost-analysis -max-num-inline-blocks=2 -S | FileCheck  --check-prefix=NOCOST %s
 
 
@@ -76,7 +76,7 @@ define i32 @dummy_caller(i32 %arg) local_unnamed_addr #0 {
 bb:
 ; CHECK-LABEL: @dummy_caller
 ; CHECK-NOT: br i1
-; CHECK-NOT: call{{.*}}bar_hot_outline_region. 
+; CHECK-NOT: call{{.*}}bar_hot_outline_region.
 ; NOCOST-LABEL: @dummy_caller
 ; NOCOST: br i1
 ; NOCOST: call{{.*}}bar_hot_outline_region.
index 2e0fbf6..3c80d79 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -partial-inliner -S | FileCheck %s
+; RUN: opt < %s -passes=partial-inliner -S | FileCheck %s
 
 ; Function Attrs: nounwind uwtable
 define dso_local i8* @bar(i32 %arg) local_unnamed_addr #0 personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) {
index aaf59ef..195d431 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S  -partial-inliner -max-num-inline-blocks=2 -skip-partial-inlining-cost-analysis < %s  | FileCheck %s
+; RUN: opt -S  -passes=partial-inliner -max-num-inline-blocks=2 -skip-partial-inlining-cost-analysis < %s  | FileCheck %s
 ; RUN: opt -S -passes=partial-inliner -max-num-inline-blocks=2 -skip-partial-inlining-cost-analysis < %s  | FileCheck %s
 define i32 @test(i32 %arg) local_unnamed_addr #0 {
 bb:
index 6c0b832..118091d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -partial-inliner -S -stats -pass-remarks=partial-inlining 2>&1 | FileCheck %s
+; RUN: opt < %s -passes=partial-inliner -S -stats -pass-remarks=partial-inlining 2>&1 | FileCheck %s
 ; RUN: opt < %s -passes=partial-inliner -S -stats -pass-remarks=partial-inlining 2>&1 | FileCheck %s
 
 @stat = external global i32, align 4
index 904b20b..f70e023 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -partial-inliner -max-num-inline-blocks=2 -skip-partial-inlining-cost-analysis  < %s  | FileCheck %s
+; RUN: opt -S -passes=partial-inliner -max-num-inline-blocks=2 -skip-partial-inlining-cost-analysis  < %s  | FileCheck %s
 ; RUN: opt -S -passes=partial-inliner -max-num-inline-blocks=2  -skip-partial-inlining-cost-analysis < %s  | FileCheck %s
 
 define i32 @test(i32 %arg) local_unnamed_addr #0 {
index 010d677..4534a9d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -partial-inliner -skip-partial-inlining-cost-analysis -S | FileCheck %s
+; RUN: opt < %s -passes=partial-inliner -skip-partial-inlining-cost-analysis -S | FileCheck %s
 ;
 
 define i32 @callee_indr_branch(i32 %v) {
index c7f1494..1baf581 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -partial-inliner -skip-partial-inlining-cost-analysis -inline-threshold=0 -disable-output
+; RUN: opt < %s -passes=partial-inliner -skip-partial-inlining-cost-analysis -inline-threshold=0 -disable-output
 
 target datalayout = "e-m:e-i64:64-n32:64"
 target triple = "powerpc64le-unknown-linux-gnu"
@@ -91,8 +91,8 @@ define void @_ZN23btDiscreteDynamicsWorld28internalSingleStepSimulationEf(%6*, f
           to label %12 unwind label %13
 
 ; <label>:12:
-  ret void  
+  ret void
+
 ; <label>:13:
   %14 = landingpad { i8*, i32 }
           cleanup
index 5f2a0ff..999d678 100644 (file)
@@ -1,13 +1,13 @@
-; RUN: opt -S -partial-inliner -pass-remarks=partial-inlining  -disable-output < %s 2>&1 | FileCheck %s
+; RUN: opt -S -passes=partial-inliner -pass-remarks=partial-inlining  -disable-output < %s 2>&1 | FileCheck %s
 ; RUN: opt -S -passes=partial-inliner  -pass-remarks=partial-inlining -disable-output < %s 2>&1 | FileCheck %s
-; RUN: opt -S -partial-inliner -pass-remarks=partial-inlining  -disable-output -max-partial-inlining=1 < %s 2>&1 | FileCheck %s
+; RUN: opt -S -passes=partial-inliner -pass-remarks=partial-inlining  -disable-output -max-partial-inlining=1 < %s 2>&1 | FileCheck %s
 ; RUN: opt -S -passes=partial-inliner  -pass-remarks=partial-inlining -disable-output -max-partial-inlining=1 < %s 2>&1 | FileCheck %s
 
-; RUN: opt -S -partial-inliner -pass-remarks=partial-inlining  -disable-partial-inlining < %s 2>&1 | FileCheck --check-prefix=LIMIT %s
+; RUN: opt -S -passes=partial-inliner -pass-remarks=partial-inlining  -disable-partial-inlining < %s 2>&1 | FileCheck --check-prefix=LIMIT %s
 ; RUN: opt -S -passes=partial-inliner  -pass-remarks=partial-inlining  --disable-partial-inlining < %s 2>&1 | FileCheck  --check-prefix=LIMIT %s
-; RUN: opt -S -partial-inliner -pass-remarks=partial-inlining   -max-partial-inlining=0 < %s 2>&1 | FileCheck --check-prefix=LIMIT  %s
+; RUN: opt -S -passes=partial-inliner -pass-remarks=partial-inlining   -max-partial-inlining=0 < %s 2>&1 | FileCheck --check-prefix=LIMIT  %s
 ; RUN: opt -S -passes=partial-inliner  -pass-remarks=partial-inlining  -max-partial-inlining=0 < %s 2>&1 | FileCheck --check-prefix=LIMIT  %s
-; RUN: opt -S -partial-inliner -pass-remarks=partial-inlining   -inline-threshold=0 < %s 2>&1 | FileCheck --check-prefix=LIMIT  %s
+; RUN: opt -S -passes=partial-inliner -pass-remarks=partial-inlining   -inline-threshold=0 < %s 2>&1 | FileCheck --check-prefix=LIMIT  %s
 ; RUN: opt -S -passes=partial-inliner  -pass-remarks=partial-inlining  -inline-threshold=0 < %s 2>&1 | FileCheck --check-prefix=LIMIT  %s
 
 define i32 @bar(i32 %arg) local_unnamed_addr #0 !dbg !5 {
index cbf7a47..bcb15be 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: opt < %s -partial-inliner -skip-partial-inlining-cost-analysis -S | FileCheck %s
 ; RUN: opt < %s -passes=partial-inliner -skip-partial-inlining-cost-analysis -S | FileCheck %s
-; RUN: opt < %s -partial-inliner -max-num-inline-blocks=2 -S | FileCheck --check-prefix=LIMIT %s
+; RUN: opt < %s -passes=partial-inliner -skip-partial-inlining-cost-analysis -S | FileCheck %s
+; RUN: opt < %s -passes=partial-inliner -max-num-inline-blocks=2 -S | FileCheck --check-prefix=LIMIT %s
 ; RUN: opt < %s -passes=partial-inliner -max-num-inline-blocks=2 -S | FileCheck  --check-prefix=LIMIT %s
 
 ; Function Attrs: nounwind uwtable
@@ -74,7 +74,7 @@ bb7:
   tail call void (...) @foo() #1
   br label %bb8
 bb8:
-  ret i32 0 
+  ret i32 0
 
 bb5:                                              ; preds = %bb4, %bb1
   %.0 = phi i32 [ 0, %bb4 ], [ 1, %bb1 ], [0, %bb6]
index 09d0e25..18b4acd 100644 (file)
@@ -1,8 +1,8 @@
-; RUN: opt < %s -partial-inliner -S | FileCheck %s
 ; RUN: opt < %s -passes=partial-inliner -S | FileCheck %s
-; RUN: opt < %s -partial-inliner -max-num-inline-blocks=3 -skip-partial-inlining-cost-analysis  -S | FileCheck --check-prefix=LIMIT3 %s
+; RUN: opt < %s -passes=partial-inliner -S | FileCheck %s
+; RUN: opt < %s -passes=partial-inliner -max-num-inline-blocks=3 -skip-partial-inlining-cost-analysis  -S | FileCheck --check-prefix=LIMIT3 %s
 ; RUN: opt < %s -passes=partial-inliner -max-num-inline-blocks=3 -skip-partial-inlining-cost-analysis -S | FileCheck  --check-prefix=LIMIT3 %s
-; RUN: opt < %s -partial-inliner -max-num-inline-blocks=2 -S | FileCheck --check-prefix=LIMIT2 %s
+; RUN: opt < %s -passes=partial-inliner -max-num-inline-blocks=2 -S | FileCheck --check-prefix=LIMIT2 %s
 ; RUN: opt < %s -passes=partial-inliner -max-num-inline-blocks=2 -S | FileCheck  --check-prefix=LIMIT2 %s
 
 
@@ -65,7 +65,7 @@ bb:
   ret i32 %tmp
 }
 
-attributes #0 = { nounwind } 
+attributes #0 = { nounwind }
 attributes #1 = { nounwind }
 attributes #2 = { nounwind }
 
index 560d2ff..a5a0218 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -partial-inliner -min-block-execution=1 -skip-partial-inlining-cost-analysis < %s | FileCheck %s
+; RUN: opt -S -passes=partial-inliner -min-block-execution=1 -skip-partial-inlining-cost-analysis < %s | FileCheck %s
 ; RUN: opt -S -passes=partial-inliner -min-block-execution=1 -skip-partial-inlining-cost-analysis < %s | FileCheck %s
 ; Require a dummy block (if.then.b) as successor to if.then due to PI requirement
 ; of region containing more than one BB.
index 4aa7062..a11c3b4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -partial-inliner -min-block-execution=1 -skip-partial-inlining-cost-analysis < %s | FileCheck %s
+; RUN: opt -S -passes=partial-inliner -min-block-execution=1 -skip-partial-inlining-cost-analysis < %s | FileCheck %s
 ; RUN: opt -S -passes=partial-inliner -min-block-execution=1 -skip-partial-inlining-cost-analysis < %s | FileCheck %s
 ; Require a dummy block (if.then.b) as successor to if.then due to PI requirement
 ; of region containing more than one BB.
index 8582f5e..e2d708f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -partial-inliner -S -skip-partial-inlining-cost-analysis | FileCheck %s
+; RUN: opt < %s -passes=partial-inliner -S -skip-partial-inlining-cost-analysis | FileCheck %s
 ; RUN: opt < %s -passes=partial-inliner -S -skip-partial-inlining-cost-analysis | FileCheck %s
 
 @stat = external global i32, align 4
index 151efac..d0f9e01 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -S -partial-inliner -skip-partial-inlining-cost-analysis=true | FileCheck %s
+; RUN: opt < %s -S -passes=partial-inliner -skip-partial-inlining-cost-analysis=true | FileCheck %s
 
 ; CHECK-LABEL: @callee
 ; CHECK: %mul = mul nsw i32 %v, 10, !dbg ![[DBG1:[0-9]+]]
index 3343644..5e0b7e0 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -skip-partial-inlining-cost-analysis -partial-inliner -S  | FileCheck %s
+; RUN: opt < %s -skip-partial-inlining-cost-analysis -passes=partial-inliner -S  | FileCheck %s
 ; RUN: opt < %s -skip-partial-inlining-cost-analysis -passes=partial-inliner -S  | FileCheck %s
 
 define internal i32 @inlinedFunc(i1 %cond, i32* align 4 %align.val) {
index e6a5113..684455c 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt < %s -partial-inliner -skip-partial-inlining-cost-analysis | llc -filetype=null
-; RUN: opt < %s -partial-inliner -skip-partial-inlining-cost-analysis -S | FileCheck %s
+; RUN: opt < %s -passes=partial-inliner -skip-partial-inlining-cost-analysis | llc -filetype=null
+; RUN: opt < %s -passes=partial-inliner -skip-partial-inlining-cost-analysis -S | FileCheck %s
 ; This testcase checks to see if CodeExtractor properly inherits
 ;   target specific attributes for the extracted function. This can
 ;   cause certain instructions that depend on the attributes to not
index 841b42b..57b36ef 100644 (file)
@@ -1,8 +1,8 @@
-; RUN: opt -S < %s  -partial-inliner -partial-inlining-extra-penalty=10 | FileCheck %s
+; RUN: opt -S < %s  -passes=partial-inliner -partial-inlining-extra-penalty=10 | FileCheck %s
 ; RUN: opt -S < %s  -passes=partial-inliner -partial-inlining-extra-penalty=10 | FileCheck %s
 define i32 @outline_region_notlikely(i32* %arg) local_unnamed_addr {
 bb:
-;  ptr != null is predicted to be true 
+;  ptr != null is predicted to be true
   %tmp = icmp ne i32* %arg, null
   br i1 %tmp, label %bb8, label %bb1
 
index ca1690a..5bdeb84 100644 (file)
@@ -1,8 +1,8 @@
-; RUN: opt -S < %s  -partial-inliner -partial-inlining-extra-penalty=2000 | FileCheck %s
+; RUN: opt -S < %s  -passes=partial-inliner -partial-inlining-extra-penalty=2000 | FileCheck %s
 ; RUN: opt -S < %s  -passes=partial-inliner -partial-inlining-extra-penalty=2000 | FileCheck %s
 define i32 @outline_region_notlikely(i32* %arg) local_unnamed_addr {
 bb:
-;  ptr != null is predicted to be true 
+;  ptr != null is predicted to be true
   %tmp = icmp ne i32* %arg, null
   br i1 %tmp, label %bb8, label %bb1, !prof !2
 
index a69e0c3..15348f3 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -skip-partial-inlining-cost-analysis -partial-inliner -S  | FileCheck %s
+; RUN: opt < %s -skip-partial-inlining-cost-analysis -passes=partial-inliner -S  | FileCheck %s
 ; RUN: opt < %s -skip-partial-inlining-cost-analysis -passes=partial-inliner -S  | FileCheck %s
 
 declare void @bar()
index b01abb6..e78fbb2 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -skip-partial-inlining-cost-analysis -partial-inliner -S  | FileCheck %s
+; RUN: opt < %s -skip-partial-inlining-cost-analysis -passes=partial-inliner -S  | FileCheck %s
 ; RUN: opt < %s -skip-partial-inlining-cost-analysis -passes=partial-inliner -S  | FileCheck %s
 
 declare dso_local void @bar()
index 780ab48..86f0498 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -partial-inliner  -skip-partial-inlining-cost-analysis  < %s |   FileCheck %s
+; RUN: opt -S -passes=partial-inliner  -skip-partial-inlining-cost-analysis  < %s |   FileCheck %s
 ; RUN: opt -S -passes=partial-inliner  -skip-partial-inlining-cost-analysis  < %s   | FileCheck %s
 
 %class.A = type { i32 }
@@ -24,12 +24,12 @@ bb5:                                              ; preds = %bb4, %bb
 }
 
 ; Function Attrs: argmemonly nounwind
-declare void @llvm.lifetime.start.p0i8(i64, i8* nocapture) 
+declare void @llvm.lifetime.start.p0i8(i64, i8* nocapture)
 
-declare void @_ZN1A7memfuncEv(%class.A*) local_unnamed_addr 
+declare void @_ZN1A7memfuncEv(%class.A*) local_unnamed_addr
 
 ; Function Attrs: argmemonly nounwind
-declare void @llvm.lifetime.end.p0i8(i64, i8* nocapture) 
+declare void @llvm.lifetime.end.p0i8(i64, i8* nocapture)
 
 ; Function Attrs: uwtable
 define void @_Z3goov() local_unnamed_addr  {
index aed86f8..4a73265 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -partial-inliner -skip-partial-inlining-cost-analysis  < %s   | FileCheck %s
+; RUN: opt -S -passes=partial-inliner -skip-partial-inlining-cost-analysis  < %s   | FileCheck %s
 ; RUN: opt -S -passes=partial-inliner  -skip-partial-inlining-cost-analysis < %s   | FileCheck %s
 
 %class.A = type { i8 }
@@ -10,7 +10,7 @@ define void @_Z3foov() local_unnamed_addr  {
 bb:
   %tmp = alloca %class.A, align 1
   %tmp1 = getelementptr inbounds %class.A, %class.A* %tmp, i64 0, i32 0
-  call void @llvm.lifetime.start.p0i8(i64 1, i8* nonnull %tmp1) 
+  call void @llvm.lifetime.start.p0i8(i64 1, i8* nonnull %tmp1)
   %tmp2 = load i32, i32* @cond, align 4, !tbaa !2
   %tmp3 = icmp eq i32 %tmp2, 0
   br i1 %tmp3, label %bb4, label %bb5
@@ -20,17 +20,17 @@ bb4:                                              ; preds = %bb
   br label %bb5
 
 bb5:                                              ; preds = %bb4, %bb
-  call void @llvm.lifetime.end.p0i8(i64 1, i8* nonnull %tmp1) 
+  call void @llvm.lifetime.end.p0i8(i64 1, i8* nonnull %tmp1)
   ret void
 }
 
 ; Function Attrs: argmemonly nounwind
-declare void @llvm.lifetime.start.p0i8(i64, i8* nocapture) 
+declare void @llvm.lifetime.start.p0i8(i64, i8* nocapture)
 
-declare void @_ZN1A7memfuncEv(%class.A*) local_unnamed_addr 
+declare void @_ZN1A7memfuncEv(%class.A*) local_unnamed_addr
 
 ; Function Attrs: argmemonly nounwind
-declare void @llvm.lifetime.end.p0i8(i64, i8* nocapture) 
+declare void @llvm.lifetime.end.p0i8(i64, i8* nocapture)
 
 ; Function Attrs: uwtable
 define void @_Z3goov() local_unnamed_addr  {
index 13dab8d..65f869b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -partial-inliner -max-num-inline-blocks=3 -skip-partial-inlining-cost-analysis  < %s |   FileCheck %s
+; RUN: opt -S -passes=partial-inliner -max-num-inline-blocks=3 -skip-partial-inlining-cost-analysis  < %s |   FileCheck %s
 ; RUN: opt -S -passes=partial-inliner -max-num-inline-blocks=2  -skip-partial-inlining-cost-analysis < %s   | FileCheck %s
 
 %class.A = type { i32 }
@@ -10,7 +10,7 @@ define void @_Z3foov() local_unnamed_addr  {
 bb:
   %tmp = alloca %class.A, align 4
   %tmp1 = bitcast %class.A* %tmp to i8*
-  call void @llvm.lifetime.start.p0i8(i64 4, i8* nonnull %tmp1) 
+  call void @llvm.lifetime.start.p0i8(i64 4, i8* nonnull %tmp1)
   %tmp2 = load i32, i32* @cond, align 4, !tbaa !2
   %tmp3 = icmp eq i32 %tmp2, 0
   br i1 %tmp3, label %bb4, label %bb9
@@ -31,17 +31,17 @@ bb8:                                              ; preds = %bb4
   br label %bb9
 
 bb9:                                              ; preds = %bb8, %bb4, %bb
-  call void @llvm.lifetime.end.p0i8(i64 4, i8* nonnull %tmp1) 
+  call void @llvm.lifetime.end.p0i8(i64 4, i8* nonnull %tmp1)
   ret void
 }
 
 ; Function Attrs: argmemonly nounwind
-declare void @llvm.lifetime.start.p0i8(i64, i8* nocapture) 
+declare void @llvm.lifetime.start.p0i8(i64, i8* nocapture)
 
-declare void @_ZN1A7memfuncEv(%class.A*) local_unnamed_addr 
+declare void @_ZN1A7memfuncEv(%class.A*) local_unnamed_addr
 
 ; Function Attrs: argmemonly nounwind
-declare void @llvm.lifetime.end.p0i8(i64, i8* nocapture) 
+declare void @llvm.lifetime.end.p0i8(i64, i8* nocapture)
 
 ; Function Attrs: uwtable
 define void @_Z3goov() local_unnamed_addr  {
index 3f4c947..aac5b80 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -partial-inliner -skip-partial-inlining-cost-analysis < %s   | FileCheck %s
+; RUN: opt -S -passes=partial-inliner -skip-partial-inlining-cost-analysis < %s   | FileCheck %s
 ; RUN: opt -S -passes=partial-inliner -skip-partial-inlining-cost-analysis < %s   | FileCheck %s
 
 %class.A = type { i32 }
@@ -10,9 +10,9 @@ bb:
   %tmp = alloca %class.A, align 4
   %tmp1 = alloca %class.A, align 4
   %tmp2 = bitcast %class.A* %tmp to i8*
-  call void @llvm.lifetime.start.p0i8(i64 4, i8* nonnull %tmp2) 
+  call void @llvm.lifetime.start.p0i8(i64 4, i8* nonnull %tmp2)
   %tmp3 = bitcast %class.A* %tmp1 to i8*
-  call void @llvm.lifetime.start.p0i8(i64 4, i8* nonnull %tmp3) 
+  call void @llvm.lifetime.start.p0i8(i64 4, i8* nonnull %tmp3)
   %tmp4 = load i32, i32* @cond, align 4, !tbaa !2
   %tmp5 = icmp eq i32 %tmp4, 0
   br i1 %tmp5, label %bb6, label %bb7
@@ -22,18 +22,18 @@ bb6:                                              ; preds = %bb
   br label %bb7
 
 bb7:                                              ; preds = %bb6, %bb
-  call void @llvm.lifetime.end.p0i8(i64 4, i8* nonnull %tmp3) 
-  call void @llvm.lifetime.end.p0i8(i64 4, i8* nonnull %tmp2) 
+  call void @llvm.lifetime.end.p0i8(i64 4, i8* nonnull %tmp3)
+  call void @llvm.lifetime.end.p0i8(i64 4, i8* nonnull %tmp2)
   ret void
 }
 
 ; Function Attrs: argmemonly nounwind
-declare void @llvm.lifetime.start.p0i8(i64, i8* nocapture) 
+declare void @llvm.lifetime.start.p0i8(i64, i8* nocapture)
 
-declare void @_ZN1A7memfuncEv(%class.A*) local_unnamed_addr 
+declare void @_ZN1A7memfuncEv(%class.A*) local_unnamed_addr
 
 ; Function Attrs: argmemonly nounwind
-declare void @llvm.lifetime.end.p0i8(i64, i8* nocapture) 
+declare void @llvm.lifetime.end.p0i8(i64, i8* nocapture)
 
 ; Function Attrs: uwtable
 define void @_Z3goov() local_unnamed_addr  {
@@ -44,11 +44,11 @@ bb:
 
 ; CHECK-LABEL: define internal void @_Z3foov.1.
 ; CHECK: newFuncRoot:
-; CHECK-NEXT:  alloca 
 ; CHECK-NEXT:  alloca
-; CHECK-NEXT:  bitcast 
+; CHECK-NEXT:  alloca
+; CHECK-NEXT:  bitcast
 ; CHECK-NEXT:  call void @llvm.lifetime.start.p0i8
-; CHECK-NEXT:  bitcast 
+; CHECK-NEXT:  bitcast
 ; CHECK-NEXT:  call void @llvm.lifetime.start.p0i8
 ; CHECK:  call void @llvm.lifetime.end.p0i8
 ; CHECK-NEXT:  call void @llvm.lifetime.end.p0i8
index 08cbc5d..d5e77f7 100644 (file)
@@ -1,7 +1,7 @@
 ; The expected behavior of this file is expected to change when partial
 ; inlining legality check is enhanced.
 
-; RUN: opt -S -partial-inliner -skip-partial-inlining-cost-analysis  < %s   | FileCheck %s
+; RUN: opt -S -passes=partial-inliner -skip-partial-inlining-cost-analysis  < %s   | FileCheck %s
 ; RUN: opt -S -passes=partial-inliner -skip-partial-inlining-cost-analysis < %s |   FileCheck %s
 
 %class.A = type { i32 }
@@ -15,9 +15,9 @@ bb:
   %tmp = alloca %class.A, align 4
   %tmp1 = alloca %class.A, align 4
   %tmp2 = bitcast %class.A* %tmp to i8*
-  call void @llvm.lifetime.start.p0i8(i64 4, i8* nonnull %tmp2) 
+  call void @llvm.lifetime.start.p0i8(i64 4, i8* nonnull %tmp2)
   %tmp3 = bitcast %class.A* %tmp1 to i8*
-  call void @llvm.lifetime.start.p0i8(i64 4, i8* nonnull %tmp3) 
+  call void @llvm.lifetime.start.p0i8(i64 4, i8* nonnull %tmp3)
   %tmp4 = load i32*, i32** @condptr, align 8, !tbaa !2
   %tmp5 = load i32, i32* %tmp4, align 4, !tbaa !6
   %tmp6 = icmp eq i32 %tmp5, 0
@@ -28,21 +28,21 @@ bb7:                                              ; preds = %bb
   br label %bb8
 
 bb8:                                              ; preds = %bb7, %bb
-  call void @llvm.lifetime.end.p0i8(i64 4, i8* nonnull %tmp3) 
-  call void @llvm.lifetime.end.p0i8(i64 4, i8* nonnull %tmp2) 
+  call void @llvm.lifetime.end.p0i8(i64 4, i8* nonnull %tmp3)
+  call void @llvm.lifetime.end.p0i8(i64 4, i8* nonnull %tmp2)
   ret void
 }
 
 declare void @_Z3barv() local_unnamed_addr
-declare void @llvm.lifetime.start.p0i8(i64, i8* nocapture) 
-declare void @_ZN1A7memfuncEv(%class.A*) local_unnamed_addr 
-declare void @llvm.lifetime.end.p0i8(i64, i8* nocapture) 
+declare void @llvm.lifetime.start.p0i8(i64, i8* nocapture)
+declare void @_ZN1A7memfuncEv(%class.A*) local_unnamed_addr
+declare void @llvm.lifetime.end.p0i8(i64, i8* nocapture)
 
 define void @_Z3foo_unknown_calli(i32 %arg) local_unnamed_addr {
 bb:
   %tmp = alloca %class.A, align 4
   %tmp1 = bitcast %class.A* %tmp to i8*
-  call void @llvm.lifetime.start.p0i8(i64 4, i8* nonnull %tmp1) 
+  call void @llvm.lifetime.start.p0i8(i64 4, i8* nonnull %tmp1)
   tail call void @_Z3barv()
   %tmp2 = icmp eq i32 %arg, 0
   br i1 %tmp2, label %bb3, label %bb4
@@ -52,7 +52,7 @@ bb3:                                              ; preds = %bb
   br label %bb4
 
 bb4:                                              ; preds = %bb3, %bb
-  call void @llvm.lifetime.end.p0i8(i64 4, i8* nonnull %tmp1) 
+  call void @llvm.lifetime.end.p0i8(i64 4, i8* nonnull %tmp1)
   ret void
 }
 
index d903390..573fecf 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -partial-inliner %s | FileCheck %s
+; RUN: opt -S -passes=partial-inliner %s | FileCheck %s
 
 ; CHECK-LABEL: define void @dipsy(
 ; CHECK-NEXT:   call void @tinkywinky.1.ontrue()