diff --git a/llvm/test/Transforms/Inline/alloca-dbgdeclare-merge.ll b/llvm/test/Transforms/Inline/alloca-dbgdeclare-merge.ll --- a/llvm/test/Transforms/Inline/alloca-dbgdeclare-merge.ll +++ b/llvm/test/Transforms/Inline/alloca-dbgdeclare-merge.ll @@ -18,7 +18,7 @@ ; g(); ;} ; -; RUN: opt -always-inline -S < %s | FileCheck %s +; RUN: opt -always-inline -S -enable-new-pm=0 < %s | FileCheck %s ; FIXME: Why does the dbg.declare for "aaa" occur later in @h than the ; dbg.declare for "bbb"? I'd expect the opposite, given @f is inlined earlier. diff --git a/llvm/test/Transforms/Inline/alloca-merge-align.ll b/llvm/test/Transforms/Inline/alloca-merge-align.ll --- a/llvm/test/Transforms/Inline/alloca-merge-align.ll +++ b/llvm/test/Transforms/Inline/alloca-merge-align.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -inline -S | FileCheck %s +; RUN: opt < %s -inline -S -enable-new-pm=0 | 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-f128:128:128-v128:128:128-n32:64" target triple = "powerpc64-unknown-linux-gnu" diff --git a/llvm/test/Transforms/Inline/array_merge.ll b/llvm/test/Transforms/Inline/array_merge.ll --- a/llvm/test/Transforms/Inline/array_merge.ll +++ b/llvm/test/Transforms/Inline/array_merge.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -inline -S | FileCheck %s +; RUN: opt < %s -inline -S -enable-new-pm=0 | FileCheck %s ; rdar://7173846 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/llvm/test/Transforms/Inline/delete-call.ll b/llvm/test/Transforms/Inline/delete-call.ll --- a/llvm/test/Transforms/Inline/delete-call.ll +++ b/llvm/test/Transforms/Inline/delete-call.ll @@ -1,8 +1,8 @@ ; REQUIRES: asserts -; RUN: opt -S -inline -stats < %s 2>&1 | FileCheck %s +; RUN: opt -S -inline -stats -enable-new-pm=0 < %s 2>&1 | FileCheck %s ; CHECK: Number of functions inlined -; RUN: opt -S -inline -function-attrs -stats < %s 2>&1 | FileCheck -check-prefix=CHECK-FUNCTIONATTRS %s +; RUN: opt -S -inline -function-attrs -stats -enable-new-pm=0 < %s 2>&1 | FileCheck -check-prefix=CHECK-FUNCTIONATTRS %s ; CHECK-FUNCTIONATTRS: Number of call sites deleted, not inlined 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-n8:16:32" diff --git a/llvm/test/Transforms/Inline/devirtualize-2.ll b/llvm/test/Transforms/Inline/devirtualize-2.ll --- a/llvm/test/Transforms/Inline/devirtualize-2.ll +++ b/llvm/test/Transforms/Inline/devirtualize-2.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -inline -S | FileCheck %s +; RUN: opt < %s -inline -S -enable-new-pm=0 | FileCheck %s ; RUN: opt < %s -passes='cgscc(devirt<4>(inline))' -S | FileCheck %s ; PR4834 diff --git a/llvm/test/Transforms/Inline/devirtualize-3.ll b/llvm/test/Transforms/Inline/devirtualize-3.ll --- a/llvm/test/Transforms/Inline/devirtualize-3.ll +++ b/llvm/test/Transforms/Inline/devirtualize-3.ll @@ -1,4 +1,4 @@ -; RUN: opt -basic-aa -inline -S -sroa -gvn -instcombine < %s | FileCheck %s +; RUN: opt -basic-aa -S -O2 < %s | FileCheck %s ; PR5009 ; CHECK: define i32 @main() diff --git a/llvm/test/Transforms/Inline/externally_available.ll b/llvm/test/Transforms/Inline/externally_available.ll --- a/llvm/test/Transforms/Inline/externally_available.ll +++ b/llvm/test/Transforms/Inline/externally_available.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -inline -S | FileCheck %s +; RUN: opt < %s -inline -S -enable-new-pm=0 | FileCheck %s define available_externally i32 @test_function() { ; CHECK-NOT: @test_function diff --git a/llvm/test/Transforms/Inline/inline-cold-callee.ll b/llvm/test/Transforms/Inline/inline-cold-callee.ll --- a/llvm/test/Transforms/Inline/inline-cold-callee.ll +++ b/llvm/test/Transforms/Inline/inline-cold-callee.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -inline -inlinecold-threshold=0 -S | FileCheck %s +; RUN: opt < %s -inline -inlinecold-threshold=0 -S -enable-new-pm=0 | 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. diff --git a/llvm/test/Transforms/Inline/inline-cold.ll b/llvm/test/Transforms/Inline/inline-cold.ll --- a/llvm/test/Transforms/Inline/inline-cold.ll +++ b/llvm/test/Transforms/Inline/inline-cold.ll @@ -1,13 +1,16 @@ -; RUN: opt < %s -inline -S -inlinecold-threshold=25 | FileCheck %s +; RUN: opt < %s -inline -S -inlinecold-threshold=25 -enable-new-pm=0 | FileCheck %s +; RUN: opt < %s -passes='require,cgscc(inline)' -S -inlinecold-threshold=25 | FileCheck %s ; Test that functions with attribute Cold are not inlined while the ; same function without attribute Cold will be inlined. -; RUN: opt < %s -inline -S -inline-threshold=600 | FileCheck %s -check-prefix=OVERRIDE +; RUN: opt < %s -inline -S -inline-threshold=600 -enable-new-pm=0 | FileCheck %s -check-prefix=OVERRIDE +; RUN: opt < %s -passes='require,cgscc(inline)' -S -inline-threshold=600 -enable-new-pm=0 | FileCheck %s -check-prefix=OVERRIDE ; The command line argument for inline-threshold should override ; the default cold threshold, so a cold function with size bigger ; than the default cold threshold (225) will be inlined. -; RUN: opt < %s -inline -S | FileCheck %s -check-prefix=DEFAULT +; RUN: opt < %s -inline -S -enable-new-pm=0 | FileCheck %s -check-prefix=DEFAULT +; RUN: opt < %s -passes='require,cgscc(inline)' -S | FileCheck %s -check-prefix=DEFAULT ; The same cold function will not be inlined with the default behavior. @a = global i32 4 diff --git a/llvm/test/Transforms/Inline/inline-hot-callee.ll b/llvm/test/Transforms/Inline/inline-hot-callee.ll --- a/llvm/test/Transforms/Inline/inline-hot-callee.ll +++ b/llvm/test/Transforms/Inline/inline-hot-callee.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -inline -inline-threshold=0 -inlinehint-threshold=100 -S | FileCheck %s +; RUN: opt < %s -inline -inline-threshold=0 -inlinehint-threshold=100 -S -enable-new-pm=0 | 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 diff --git a/llvm/test/Transforms/Inline/inline-hot-callsite.ll b/llvm/test/Transforms/Inline/inline-hot-callsite.ll --- a/llvm/test/Transforms/Inline/inline-hot-callsite.ll +++ b/llvm/test/Transforms/Inline/inline-hot-callsite.ll @@ -3,7 +3,7 @@ ; inlinehint-threshold. A cold callee with identical body does not get inlined because ; cost exceeds the inline-threshold -; RUN: opt < %s -inline -inline-threshold=0 -hot-callsite-threshold=100 -S | FileCheck %s +; RUN: opt < %s -inline -inline-threshold=0 -hot-callsite-threshold=100 -S -enable-new-pm=0 | FileCheck %s ; RUN: opt < %s -passes='require,cgscc(inline)' -inline-threshold=0 -hot-callsite-threshold=100 -S | FileCheck %s ; Run this with the default O2 pipeline to test that profile summary analysis diff --git a/llvm/test/Transforms/Inline/monster_scc.ll b/llvm/test/Transforms/Inline/monster_scc.ll --- a/llvm/test/Transforms/Inline/monster_scc.ll +++ b/llvm/test/Transforms/Inline/monster_scc.ll @@ -39,7 +39,7 @@ ; ; void test(bool *B, bool *E) { f(B, E); } ; -; RUN: opt -S < %s -inline -inline-threshold=150 | FileCheck %s --check-prefixes=CHECK,OLD +; RUN: opt -S < %s -inline -inline-threshold=150 -enable-new-pm=0 | FileCheck %s --check-prefixes=CHECK,OLD ; RUN: opt -S < %s -passes=inline -inline-threshold=150 | FileCheck %s --check-prefixes=CHECK,NEW ; RUN: opt -S < %s -passes=inliner-wrapper -inline-threshold=150 | FileCheck %s --check-prefixes=CHECK,NEW diff --git a/llvm/test/Transforms/Inline/pr22285.ll b/llvm/test/Transforms/Inline/pr22285.ll --- a/llvm/test/Transforms/Inline/pr22285.ll +++ b/llvm/test/Transforms/Inline/pr22285.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -inline -S | FileCheck %s +; RUN: opt < %s -inline -S -enable-new-pm=0 | FileCheck %s ; RUN: opt < %s -passes='cgscc(inline),globaldce' -S | FileCheck %s $f1 = comdat any diff --git a/llvm/test/Transforms/Inline/prof-update-sample.ll b/llvm/test/Transforms/Inline/prof-update-sample.ll --- a/llvm/test/Transforms/Inline/prof-update-sample.ll +++ b/llvm/test/Transforms/Inline/prof-update-sample.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -inline -S | FileCheck %s +; RUN: opt < %s -inline -S -enable-new-pm=0 | FileCheck %s +; RUN: opt < %s -passes='require,cgscc(inline)' -S | FileCheck %s ; Checks if inliner updates branch_weights annotation for call instructions. declare void @ext();