1 ; RUN: opt < %s 2>&1 -disable-output \
2 ; RUN: -passes=inline -print-before-all -print-after-all | FileCheck %s -check-prefix=INL
3 ; RUN: opt < %s 2>&1 -disable-output \
4 ; RUN: -passes=inline -print-before-all -print-after-all -print-module-scope | FileCheck %s -check-prefix=INL-MOD
6 ; INL: IR Dump Before {{InlinerPass .*scc: .tester, foo}}
7 ; INL-NOT: IR Dump After {{InlinerPass}}
8 ; INL: IR Dump Before {{InlinerPass .*scc: .tester}}
9 ; INL: IR Dump After {{InlinerPass .*scc: .tester}}
11 ; INL-MOD: IR Dump Before {{InlinerPass .*scc: .tester, foo}}
12 ; INL-MOD: IR Dump After {{InlinerPass .*invalidated: .*scc: .tester, foo}}
13 ; INL-MOD: IR Dump Before {{InlinerPass .*scc: .tester}}
14 ; INL-MOD: IR Dump After {{InlinerPass .*scc: .tester}}
17 define void @tester() noinline {
22 define internal void @foo() alwaysinline {