[llvm] r290592 - [PM] Turn on the new PM's inliner in addition to the current one for

Chandler Carruth via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 26 23:18:44 PST 2016


Author: chandlerc
Date: Tue Dec 27 01:18:43 2016
New Revision: 290592

URL: http://llvm.org/viewvc/llvm-project?rev=290592&view=rev
Log:
[PM] Turn on the new PM's inliner in addition to the current one for
most of the inliner test cases.

The inliner involves a bunch of interesting code and tends to be where
most of the issues I've seen experimenting with the new PM lie. All of
these test cases pass, but I'd like to keep some more thorough coverage
here so doing a fairly blanket enabling.

There are a handful of interesting tests I've not enabled yet because
they're focused on the always inliner, or on functionality that doesn't
(yet) exist in the inliner.

Modified:
    llvm/trunk/test/Transforms/Inline/2007-04-15-InlineEH.ll
    llvm/trunk/test/Transforms/Inline/2007-06-25-WeakInline.ll
    llvm/trunk/test/Transforms/Inline/2007-12-19-InlineNoUnwind.ll
    llvm/trunk/test/Transforms/Inline/2008-09-02-NoInline.ll
    llvm/trunk/test/Transforms/Inline/2009-01-08-NoInlineDynamicAlloca.ll
    llvm/trunk/test/Transforms/Inline/X86/inline-target-attr.ll
    llvm/trunk/test/Transforms/Inline/alloca-bonus.ll
    llvm/trunk/test/Transforms/Inline/alloca-dbgdeclare.ll
    llvm/trunk/test/Transforms/Inline/alloca_test.ll
    llvm/trunk/test/Transforms/Inline/array-alloca.ll
    llvm/trunk/test/Transforms/Inline/blockaddress.ll
    llvm/trunk/test/Transforms/Inline/byval-tail-call.ll
    llvm/trunk/test/Transforms/Inline/byval.ll
    llvm/trunk/test/Transforms/Inline/byval_lifetime.ll
    llvm/trunk/test/Transforms/Inline/casts.ll
    llvm/trunk/test/Transforms/Inline/comdat-ipo.ll
    llvm/trunk/test/Transforms/Inline/crash-lifetime-marker.ll
    llvm/trunk/test/Transforms/Inline/debug-info-duplicate-calls.ll
    llvm/trunk/test/Transforms/Inline/frameescape.ll
    llvm/trunk/test/Transforms/Inline/ignore-debug-info.ll
    llvm/trunk/test/Transforms/Inline/inline-assume.ll
    llvm/trunk/test/Transforms/Inline/inline-byval-bonus.ll
    llvm/trunk/test/Transforms/Inline/inline-cold-callee.ll
    llvm/trunk/test/Transforms/Inline/inline-constexpr-addrspacecast-argument.ll
    llvm/trunk/test/Transforms/Inline/inline-fast-math-flags.ll
    llvm/trunk/test/Transforms/Inline/inline-fp.ll
    llvm/trunk/test/Transforms/Inline/inline-funclets.ll
    llvm/trunk/test/Transforms/Inline/inline-hot-callee.ll
    llvm/trunk/test/Transforms/Inline/inline-hot-callsite.ll
    llvm/trunk/test/Transforms/Inline/inline-invoke-with-asm-call.ll
    llvm/trunk/test/Transforms/Inline/inline-musttail-varargs.ll
    llvm/trunk/test/Transforms/Inline/inline-tail.ll
    llvm/trunk/test/Transforms/Inline/inline-vla.ll
    llvm/trunk/test/Transforms/Inline/inline_cleanup.ll
    llvm/trunk/test/Transforms/Inline/inline_constprop.ll
    llvm/trunk/test/Transforms/Inline/inline_dbg_declare.ll
    llvm/trunk/test/Transforms/Inline/inline_prune.ll
    llvm/trunk/test/Transforms/Inline/inline_returns_twice.ll
    llvm/trunk/test/Transforms/Inline/inline_ssp.ll
    llvm/trunk/test/Transforms/Inline/inline_unreachable-2.ll
    llvm/trunk/test/Transforms/Inline/inline_unreachable.ll
    llvm/trunk/test/Transforms/Inline/invoke-cleanup.ll
    llvm/trunk/test/Transforms/Inline/invoke-combine-clauses.ll
    llvm/trunk/test/Transforms/Inline/invoke-cost.ll
    llvm/trunk/test/Transforms/Inline/invoke_test-1.ll
    llvm/trunk/test/Transforms/Inline/invoke_test-3.ll
    llvm/trunk/test/Transforms/Inline/lifetime-no-datalayout.ll
    llvm/trunk/test/Transforms/Inline/lifetime.ll
    llvm/trunk/test/Transforms/Inline/local-as-metadata-undominated-use.ll
    llvm/trunk/test/Transforms/Inline/nonnull.ll
    llvm/trunk/test/Transforms/Inline/parallel-loop-md.ll
    llvm/trunk/test/Transforms/Inline/pr21206.ll
    llvm/trunk/test/Transforms/Inline/pr22285.ll
    llvm/trunk/test/Transforms/Inline/pr26698.ll
    llvm/trunk/test/Transforms/Inline/pr28298.ll
    llvm/trunk/test/Transforms/Inline/profile-meta.ll
    llvm/trunk/test/Transforms/Inline/recursive.ll
    llvm/trunk/test/Transforms/Inline/switch.ll
    llvm/trunk/test/Transforms/Inline/vector-bonus.ll
    llvm/trunk/test/Transforms/Inline/zero-cost.ll

Modified: llvm/trunk/test/Transforms/Inline/2007-04-15-InlineEH.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/2007-04-15-InlineEH.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/2007-04-15-InlineEH.ll (original)
+++ llvm/trunk/test/Transforms/Inline/2007-04-15-InlineEH.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
 ; PR1335
 
 target triple = "i686-pc-linux-gnu"

Modified: llvm/trunk/test/Transforms/Inline/2007-06-25-WeakInline.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/2007-06-25-WeakInline.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/2007-06-25-WeakInline.ll (original)
+++ llvm/trunk/test/Transforms/Inline/2007-06-25-WeakInline.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
 
 ; 'bar' can be overridden at link-time, don't inline it.
 define weak void @bar() {

Modified: llvm/trunk/test/Transforms/Inline/2007-12-19-InlineNoUnwind.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/2007-12-19-InlineNoUnwind.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/2007-12-19-InlineNoUnwind.ll (original)
+++ llvm/trunk/test/Transforms/Inline/2007-12-19-InlineNoUnwind.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
 
 declare i1 @extern()
 

Modified: llvm/trunk/test/Transforms/Inline/2008-09-02-NoInline.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/2008-09-02-NoInline.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/2008-09-02-NoInline.ll (original)
+++ llvm/trunk/test/Transforms/Inline/2008-09-02-NoInline.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
 
 define i32 @fn2() noinline {
 ; CHECK-LABEL: define i32 @fn2()

Modified: llvm/trunk/test/Transforms/Inline/2009-01-08-NoInlineDynamicAlloca.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/2009-01-08-NoInlineDynamicAlloca.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/2009-01-08-NoInlineDynamicAlloca.ll (original)
+++ llvm/trunk/test/Transforms/Inline/2009-01-08-NoInlineDynamicAlloca.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
 ; Do not inline calls with variable-sized alloca.
 
 @q = common global i8* null

Modified: llvm/trunk/test/Transforms/Inline/X86/inline-target-attr.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/X86/inline-target-attr.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/X86/inline-target-attr.ll (original)
+++ llvm/trunk/test/Transforms/Inline/X86/inline-target-attr.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -S -inline | FileCheck %s
+; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -S -passes='cgscc(inline)' | FileCheck %s
 ; Check that we only inline when we have compatible target attributes.
 ; X86 has implemented a target attribute that will verify that the attribute
 ; sets are compatible.

Modified: llvm/trunk/test/Transforms/Inline/alloca-bonus.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/alloca-bonus.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/alloca-bonus.ll (original)
+++ llvm/trunk/test/Transforms/Inline/alloca-bonus.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt -inline < %s -S -o - -inline-threshold=8 | FileCheck %s
+; RUN: opt -passes='cgscc(inline)' < %s -S -o - -inline-threshold=8 | FileCheck %s
 
 target datalayout = "p:32:32"
 

Modified: llvm/trunk/test/Transforms/Inline/alloca-dbgdeclare.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/alloca-dbgdeclare.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/alloca-dbgdeclare.ll (original)
+++ llvm/trunk/test/Transforms/Inline/alloca-dbgdeclare.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt -inline -S < %s | FileCheck %s
+; RUN: opt -passes='cgscc(inline)' -S < %s | FileCheck %s
 ; struct A {
 ;   int arg0;
 ;   double arg1[2];

Modified: llvm/trunk/test/Transforms/Inline/alloca_test.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/alloca_test.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/alloca_test.ll (original)
+++ llvm/trunk/test/Transforms/Inline/alloca_test.ll Tue Dec 27 01:18:43 2016
@@ -3,6 +3,7 @@
 ; function are moved to the top of the function they are inlined into.
 ;
 ; RUN: opt -S -inline < %s | FileCheck %s
+; RUN: opt -S -passes='cgscc(inline)' < %s | FileCheck %s
 
 define i32 @func(i32 %i) {
   %X = alloca i32

Modified: llvm/trunk/test/Transforms/Inline/array-alloca.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/array-alloca.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/array-alloca.ll (original)
+++ llvm/trunk/test/Transforms/Inline/array-alloca.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt -inline -S < %s | FileCheck %s
+; RUN: opt -passes='cgscc(inline)' -S < %s | FileCheck %s
 %struct.A = type { i32 }
 
 define void @callee1(i32 %M) {

Modified: llvm/trunk/test/Transforms/Inline/blockaddress.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/blockaddress.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/blockaddress.ll (original)
+++ llvm/trunk/test/Transforms/Inline/blockaddress.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt -inline -S < %s | FileCheck %s
+; RUN: opt -passes='cgscc(inline)' -S < %s | FileCheck %s
 ; PR10162
 
 ; Make sure doit is not inlined since the blockaddress is taken

Modified: llvm/trunk/test/Transforms/Inline/byval-tail-call.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/byval-tail-call.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/byval-tail-call.ll (original)
+++ llvm/trunk/test/Transforms/Inline/byval-tail-call.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt < %s -basicaa -tailcallelim -inline -instcombine -dse -S | FileCheck %s
+; RUN: opt < %s -aa-pipeline=basic-aa -passes='function(tailcallelim),cgscc(inline,function(instcombine,dse))' -S | FileCheck %s
 ; PR7272
 
 ; Calls that capture byval parameters cannot be marked as tail calls. Other

Modified: llvm/trunk/test/Transforms/Inline/byval.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/byval.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/byval.ll (original)
+++ llvm/trunk/test/Transforms/Inline/byval.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
 
 ; Inlining a byval struct should cause an explicit copy into an alloca.
 

Modified: llvm/trunk/test/Transforms/Inline/byval_lifetime.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/byval_lifetime.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/byval_lifetime.ll (original)
+++ llvm/trunk/test/Transforms/Inline/byval_lifetime.ll Tue Dec 27 01:18:43 2016
@@ -1,5 +1,5 @@
 ; RUN: opt -S -inline < %s | FileCheck %s
-; END.
+; RUN: opt -passes='cgscc(inline)' -S < %s | FileCheck %s
 
 ; By inlining foo, an alloca is created in main to hold the byval argument, so
 ; a lifetime marker should be generated as well by default.

Modified: llvm/trunk/test/Transforms/Inline/casts.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/casts.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/casts.ll (original)
+++ llvm/trunk/test/Transforms/Inline/casts.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
 
 define i32 @testByte(i8 %X) {
 entry:

Modified: llvm/trunk/test/Transforms/Inline/comdat-ipo.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/comdat-ipo.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/comdat-ipo.ll (original)
+++ llvm/trunk/test/Transforms/Inline/comdat-ipo.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt -inline -S < %s | FileCheck %s
+; RUN: opt -passes='cgscc(inline)' -S < %s | FileCheck %s
 
 define i32 @caller() {
 ; CHECK-LABEL: @caller(

Modified: llvm/trunk/test/Transforms/Inline/crash-lifetime-marker.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/crash-lifetime-marker.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/crash-lifetime-marker.ll (original)
+++ llvm/trunk/test/Transforms/Inline/crash-lifetime-marker.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
 
 ; InlineFunction would assert inside the loop that leaves lifetime markers if
 ; there was an zero-sized AllocaInst. Check that it doesn't assert and doesn't

Modified: llvm/trunk/test/Transforms/Inline/debug-info-duplicate-calls.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/debug-info-duplicate-calls.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/debug-info-duplicate-calls.ll (original)
+++ llvm/trunk/test/Transforms/Inline/debug-info-duplicate-calls.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt < %s -always-inline -S | FileCheck %s
+; RUN: opt -passes='always-inline' -S < %s | FileCheck %s
 
 ; Original input generated from clang -emit-llvm -S -c -mllvm -disable-llvm-optzns
 ;

Modified: llvm/trunk/test/Transforms/Inline/frameescape.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/frameescape.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/frameescape.ll (original)
+++ llvm/trunk/test/Transforms/Inline/frameescape.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt -inline -S < %s | FileCheck %s
+; RUN: opt -passes='cgscc(inline)' -S < %s | FileCheck %s
 
 ; PR23216: We can't inline functions using llvm.localescape.
 

Modified: llvm/trunk/test/Transforms/Inline/ignore-debug-info.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/ignore-debug-info.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/ignore-debug-info.ll (original)
+++ llvm/trunk/test/Transforms/Inline/ignore-debug-info.ll Tue Dec 27 01:18:43 2016
@@ -1,5 +1,7 @@
 ; RUN: opt < %s -S -inline -inline-threshold=2 | FileCheck %s
 ; RUN: opt < %s -S -strip-debug -inline -inline-threshold=2 | FileCheck %s
+; RUN: opt < %s -S -passes='cgscc(inline)' -inline-threshold=2 | FileCheck %s
+; RUN: opt < %s -S -strip-debug -passes='cgscc(inline)' -inline-threshold=2 | FileCheck %s
 ;
 ; The purpose of this test is to check that debug info doesn't influence
 ; inlining decisions.

Modified: llvm/trunk/test/Transforms/Inline/inline-assume.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/inline-assume.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/inline-assume.ll (original)
+++ llvm/trunk/test/Transforms/Inline/inline-assume.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt -inline -S -o - < %s | FileCheck %s
+; RUN: opt -passes='cgscc(inline)' -S < %s | FileCheck %s
 
 %0 = type opaque
 %struct.Foo = type { i32, %0* }

Modified: llvm/trunk/test/Transforms/Inline/inline-byval-bonus.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/inline-byval-bonus.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/inline-byval-bonus.ll (original)
+++ llvm/trunk/test/Transforms/Inline/inline-byval-bonus.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt -S -inline -inline-threshold=275 < %s | FileCheck %s
+; RUN: opt -S -passes='cgscc(inline)' -inline-threshold=275 < %s | FileCheck %s
 ; PR13095
 
 ; The performance of the c-ray benchmark largely depends on the inlining of a

Modified: llvm/trunk/test/Transforms/Inline/inline-cold-callee.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/inline-cold-callee.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/inline-cold-callee.ll (original)
+++ llvm/trunk/test/Transforms/Inline/inline-cold-callee.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
-; RUN: opt < %s -inline  -inlinecold-threshold=0 -S | FileCheck %s
+; RUN: opt < %s -inline -inlinecold-threshold=0 -S | FileCheck %s
+; RUN: opt < %s -passes='require<profile-summary>,cgscc(inline)' -inlinecold-threshold=0 -S | FileCheck %s
 
 ; This tests that a cold callee gets the (lower) inlinecold-threshold even without
 ; Cold hint and does not get inlined because the cost exceeds the inlinecold-threshold.

Modified: llvm/trunk/test/Transforms/Inline/inline-constexpr-addrspacecast-argument.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/inline-constexpr-addrspacecast-argument.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/inline-constexpr-addrspacecast-argument.ll (original)
+++ llvm/trunk/test/Transforms/Inline/inline-constexpr-addrspacecast-argument.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt -S -inline < %s | FileCheck %s
+; RUN: opt -S -passes='cgscc(inline)' < %s | FileCheck %s
 
 target datalayout = "e-p3:32:32-p4:64:64-n32"
 

Modified: llvm/trunk/test/Transforms/Inline/inline-fast-math-flags.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/inline-fast-math-flags.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/inline-fast-math-flags.ll (original)
+++ llvm/trunk/test/Transforms/Inline/inline-fast-math-flags.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt < %s -S -inline -inline-threshold=20 | FileCheck %s
+; RUN: opt < %s -S -passes='cgscc(inline)' -inline-threshold=20 | FileCheck %s
 ; Check that we don't drop FastMathFlag when estimating inlining profitability.
 ;
 ; In this test we should inline 'foo'  to 'boo', because it'll fold to a

Modified: llvm/trunk/test/Transforms/Inline/inline-fp.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/inline-fp.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/inline-fp.ll (original)
+++ llvm/trunk/test/Transforms/Inline/inline-fp.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt -S -inline < %s | FileCheck %s
+; RUN: opt -S -passes='cgscc(inline)' < %s | FileCheck %s
 ; Make sure that soft float implementations are calculated as being more expensive
 ; to the inliner.
 

Modified: llvm/trunk/test/Transforms/Inline/inline-funclets.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/inline-funclets.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/inline-funclets.ll (original)
+++ llvm/trunk/test/Transforms/Inline/inline-funclets.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt -inline -S %s | FileCheck %s
+; RUN: opt -passes='cgscc(inline)' -S %s | FileCheck %s
 
 declare void @g()
 

Modified: llvm/trunk/test/Transforms/Inline/inline-hot-callee.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/inline-hot-callee.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/inline-hot-callee.ll (original)
+++ llvm/trunk/test/Transforms/Inline/inline-hot-callee.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt < %s -inline -inline-threshold=0 -inlinehint-threshold=100 -S | FileCheck %s
+; RUN: opt < %s -passes='require<profile-summary>,cgscc(inline)' -inline-threshold=0 -inlinehint-threshold=100 -S | FileCheck %s
 
 ; This tests that a hot callee gets the (higher) inlinehint-threshold even without
 ; inline hints and gets inlined because the cost is less than inlinehint-threshold.

Modified: llvm/trunk/test/Transforms/Inline/inline-hot-callsite.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/inline-hot-callsite.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/inline-hot-callsite.ll (original)
+++ llvm/trunk/test/Transforms/Inline/inline-hot-callsite.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt < %s -inline -inline-threshold=0 -hot-callsite-threshold=100 -S | FileCheck %s
+; RUN: opt < %s -passes='require<profile-summary>,cgscc(inline)' -inline-threshold=0 -hot-callsite-threshold=100 -S | FileCheck %s
 
 ; This tests that a hot callsite gets the (higher) inlinehint-threshold even without
 ; without inline hints and gets inlined because the cost is less than

Modified: llvm/trunk/test/Transforms/Inline/inline-invoke-with-asm-call.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/inline-invoke-with-asm-call.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/inline-invoke-with-asm-call.ll (original)
+++ llvm/trunk/test/Transforms/Inline/inline-invoke-with-asm-call.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
 target triple = "x86_64-apple-darwin"
 
 ; In inliner, we assume that inline asm does not throw. This testing case makes

Modified: llvm/trunk/test/Transforms/Inline/inline-musttail-varargs.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/inline-musttail-varargs.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/inline-musttail-varargs.ll (original)
+++ llvm/trunk/test/Transforms/Inline/inline-musttail-varargs.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt < %s -inline -instcombine -S | FileCheck %s
+; RUN: opt < %s -passes='cgscc(inline,function(instcombine))' -S | FileCheck %s
 
 ; We can't inline this thunk yet, but one day we will be able to.  And when we
 ; do, this test case will be ready.

Modified: llvm/trunk/test/Transforms/Inline/inline-tail.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/inline-tail.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/inline-tail.ll (original)
+++ llvm/trunk/test/Transforms/Inline/inline-tail.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
 
 ; We have to apply the less restrictive TailCallKind of the call site being
 ; inlined and any call sites cloned into the caller.

Modified: llvm/trunk/test/Transforms/Inline/inline-vla.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/inline-vla.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/inline-vla.ll (original)
+++ llvm/trunk/test/Transforms/Inline/inline-vla.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt -S -inline %s -o - | FileCheck %s
+; RUN: opt -S -passes='cgscc(inline)' %s -o - | FileCheck %s
 
 ; Check that memcpy2 is completely inlined away.
 ; CHECK-NOT: memcpy2

Modified: llvm/trunk/test/Transforms/Inline/inline_cleanup.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/inline_cleanup.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/inline_cleanup.ll (original)
+++ llvm/trunk/test/Transforms/Inline/inline_cleanup.ll Tue Dec 27 01:18:43 2016
@@ -2,6 +2,7 @@
 ; uncond branches away after it is done specializing.
 
 ; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
 
 @A = weak global i32 0		; <i32*> [#uses=1]
 @B = weak global i32 0		; <i32*> [#uses=1]

Modified: llvm/trunk/test/Transforms/Inline/inline_constprop.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/inline_constprop.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/inline_constprop.ll (original)
+++ llvm/trunk/test/Transforms/Inline/inline_constprop.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt < %s -inline -inline-threshold=20 -S | FileCheck %s
+; RUN: opt < %s -passes='cgscc(inline)' -inline-threshold=20 -S | FileCheck %s
 
 define internal i32 @callee1(i32 %A, i32 %B) {
   %C = sdiv i32 %A, %B

Modified: llvm/trunk/test/Transforms/Inline/inline_dbg_declare.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/inline_dbg_declare.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/inline_dbg_declare.ll (original)
+++ llvm/trunk/test/Transforms/Inline/inline_dbg_declare.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt < %s -S -inline | FileCheck %s
+; RUN: opt < %s -S -passes='cgscc(inline)' | FileCheck %s
 ;
 ; The purpose of this test is to check that inline pass preserves debug info
 ; for variable using the dbg.declare intrinsic.

Modified: llvm/trunk/test/Transforms/Inline/inline_prune.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/inline_prune.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/inline_prune.ll (original)
+++ llvm/trunk/test/Transforms/Inline/inline_prune.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
 
 define internal i32 @callee1(i32 %A, i32 %B) {
 ; CHECK-NOT: @callee1

Modified: llvm/trunk/test/Transforms/Inline/inline_returns_twice.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/inline_returns_twice.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/inline_returns_twice.ll (original)
+++ llvm/trunk/test/Transforms/Inline/inline_returns_twice.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
 
 ; Check that functions with "returns_twice" calls are only inlined,
 ; if they are themselves marked as such.

Modified: llvm/trunk/test/Transforms/Inline/inline_ssp.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/inline_ssp.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/inline_ssp.ll (original)
+++ llvm/trunk/test/Transforms/Inline/inline_ssp.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt -inline %s -S | FileCheck %s
+; RUN: opt -passes='cgscc(inline)' %s -S | FileCheck %s
 ; Ensure SSP attributes are propagated correctly when inlining.
 
 @.str = private unnamed_addr constant [11 x i8] c"fun_nossp\0A\00", align 1

Modified: llvm/trunk/test/Transforms/Inline/inline_unreachable-2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/inline_unreachable-2.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/inline_unreachable-2.ll (original)
+++ llvm/trunk/test/Transforms/Inline/inline_unreachable-2.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
 
 ; CHECK-LABEL: caller
 ; CHECK: call void @callee
@@ -19,4 +20,4 @@ bb2:
   ret void
 }
 
-declare void @extern()
\ No newline at end of file
+declare void @extern()

Modified: llvm/trunk/test/Transforms/Inline/inline_unreachable.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/inline_unreachable.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/inline_unreachable.ll (original)
+++ llvm/trunk/test/Transforms/Inline/inline_unreachable.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
 
 @a = global i32 4
 @_ZTIi = external global i8*

Modified: llvm/trunk/test/Transforms/Inline/invoke-cleanup.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/invoke-cleanup.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/invoke-cleanup.ll (original)
+++ llvm/trunk/test/Transforms/Inline/invoke-cleanup.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt %s -inline -S | FileCheck %s
+; RUN: opt %s -passes='cgscc(inline)' -S | FileCheck %s
 
 declare void @external_func()
 

Modified: llvm/trunk/test/Transforms/Inline/invoke-combine-clauses.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/invoke-combine-clauses.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/invoke-combine-clauses.ll (original)
+++ llvm/trunk/test/Transforms/Inline/invoke-combine-clauses.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,4 @@
-; RUN: opt %s -inline -S | FileCheck %s
+; RUN: opt %s -passes='cgscc(inline)' -S | FileCheck %s
 
 declare void @external_func()
 declare void @abort()

Modified: llvm/trunk/test/Transforms/Inline/invoke-cost.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/invoke-cost.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/invoke-cost.ll (original)
+++ llvm/trunk/test/Transforms/Inline/invoke-cost.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt -inline < %s -S -o - -inline-threshold=100 | FileCheck %s
+; RUN: opt -passes='cgscc(inline)' < %s -S -o - -inline-threshold=100 | FileCheck %s
 
 target datalayout = "p:32:32"
 

Modified: llvm/trunk/test/Transforms/Inline/invoke_test-1.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/invoke_test-1.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/invoke_test-1.ll (original)
+++ llvm/trunk/test/Transforms/Inline/invoke_test-1.ll Tue Dec 27 01:18:43 2016
@@ -2,6 +2,7 @@
 ; instructions
 
 ; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
 
 declare void @might_throw()
 

Modified: llvm/trunk/test/Transforms/Inline/invoke_test-3.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/invoke_test-3.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/invoke_test-3.ll (original)
+++ llvm/trunk/test/Transforms/Inline/invoke_test-3.ll Tue Dec 27 01:18:43 2016
@@ -2,6 +2,7 @@
 ; turned into branches to the invoke destination.
 
 ; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
 
 declare void @might_throw()
 

Modified: llvm/trunk/test/Transforms/Inline/lifetime-no-datalayout.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/lifetime-no-datalayout.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/lifetime-no-datalayout.ll (original)
+++ llvm/trunk/test/Transforms/Inline/lifetime-no-datalayout.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt -inline -S < %s | FileCheck %s
+; RUN: opt -passes='cgscc(inline)' -S < %s | FileCheck %s
 
 declare void @use(i8* %a)
 

Modified: llvm/trunk/test/Transforms/Inline/lifetime.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/lifetime.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/lifetime.ll (original)
+++ llvm/trunk/test/Transforms/Inline/lifetime.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt -inline -S < %s | FileCheck %s
+; RUN: opt -passes='cgscc(inline)' -S < %s | FileCheck %s
 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
 
 declare void @llvm.lifetime.start(i64, i8*)

Modified: llvm/trunk/test/Transforms/Inline/local-as-metadata-undominated-use.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/local-as-metadata-undominated-use.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/local-as-metadata-undominated-use.ll (original)
+++ llvm/trunk/test/Transforms/Inline/local-as-metadata-undominated-use.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt -inline -S < %s | FileCheck %s
+; RUN: opt -passes='cgscc(inline)' -S < %s | FileCheck %s
 
 ; Make sure the inliner doesn't crash when a metadata-bridged SSA operand is an
 ; undominated use.

Modified: llvm/trunk/test/Transforms/Inline/nonnull.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/nonnull.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/nonnull.ll (original)
+++ llvm/trunk/test/Transforms/Inline/nonnull.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt -S -inline %s | FileCheck %s
+; RUN: opt -S -passes='cgscc(inline)' %s | FileCheck %s
 
 declare void @foo()
 declare void @bar()

Modified: llvm/trunk/test/Transforms/Inline/parallel-loop-md.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/parallel-loop-md.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/parallel-loop-md.ll (original)
+++ llvm/trunk/test/Transforms/Inline/parallel-loop-md.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt -S -inline < %s | FileCheck %s
+; RUN: opt -S -passes='cgscc(inline)' < %s | FileCheck %s
 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
 target triple = "x86_64-unknown-linux-gnu"
 

Modified: llvm/trunk/test/Transforms/Inline/pr21206.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/pr21206.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/pr21206.ll (original)
+++ llvm/trunk/test/Transforms/Inline/pr21206.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
 
 $c = comdat any
 ; CHECK: $c = comdat any

Modified: llvm/trunk/test/Transforms/Inline/pr22285.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/pr22285.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/pr22285.ll (original)
+++ llvm/trunk/test/Transforms/Inline/pr22285.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes='cgscc(inline),globaldce' -S | FileCheck %s
 
 $f1 = comdat any
 ; CHECK-NOT: $f1 = comdat any

Modified: llvm/trunk/test/Transforms/Inline/pr26698.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/pr26698.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/pr26698.ll (original)
+++ llvm/trunk/test/Transforms/Inline/pr26698.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt -S -inline < %s | FileCheck %s
+; RUN: opt -S -passes='cgscc(inline)' < %s | FileCheck %s
 target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
 target triple = "i686-pc-windows-msvc18.0.0"
 

Modified: llvm/trunk/test/Transforms/Inline/pr28298.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/pr28298.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/pr28298.ll (original)
+++ llvm/trunk/test/Transforms/Inline/pr28298.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,4 @@
-; RUN: opt -S -inline < %s | FileCheck %s
+; RUN: opt -S -passes='cgscc(inline)' < %s | FileCheck %s
 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
 target triple = "x86_64-unknown-linux-gnu"
 

Modified: llvm/trunk/test/Transforms/Inline/profile-meta.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/profile-meta.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/profile-meta.ll (original)
+++ llvm/trunk/test/Transforms/Inline/profile-meta.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt < %s -S -inline | FileCheck %s
+; RUN: opt < %s -S -passes='cgscc(inline)' | FileCheck %s
 
 ; Make sure that profile and unpredictable  metadata is preserved when cloning a select.
 

Modified: llvm/trunk/test/Transforms/Inline/recursive.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/recursive.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/recursive.ll (original)
+++ llvm/trunk/test/Transforms/Inline/recursive.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt -inline -S < %s | FileCheck %s
+; RUN: opt -passes='cgscc(inline)' -S < %s | FileCheck %s
 
 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"

Modified: llvm/trunk/test/Transforms/Inline/switch.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/switch.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/switch.ll (original)
+++ llvm/trunk/test/Transforms/Inline/switch.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt < %s -inline -inline-threshold=20 -S | FileCheck %s
+; RUN: opt < %s -passes='cgscc(inline)' -inline-threshold=20 -S | FileCheck %s
 
 define i32 @callee(i32 %a) {
   switch i32 %a, label %sw.default [

Modified: llvm/trunk/test/Transforms/Inline/vector-bonus.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/vector-bonus.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/vector-bonus.ll (original)
+++ llvm/trunk/test/Transforms/Inline/vector-bonus.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt < %s -inline -inline-threshold=35  -S | FileCheck %s
+; RUN: opt < %s -passes='cgscc(inline)' -inline-threshold=35  -S | FileCheck %s
 
 define i32 @bar(<4 x i32> %v, i32 %i) #0 {
 entry:

Modified: llvm/trunk/test/Transforms/Inline/zero-cost.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/zero-cost.ll?rev=290592&r1=290591&r2=290592&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/zero-cost.ll (original)
+++ llvm/trunk/test/Transforms/Inline/zero-cost.ll Tue Dec 27 01:18:43 2016
@@ -1,4 +1,5 @@
 ; RUN: opt -inline -S %s | FileCheck %s
+; RUN: opt -passes='cgscc(inline)' -S %s | FileCheck %s
 
 define void @f() {
 entry:




More information about the llvm-commits mailing list