2018-12-11 20:05:35 +01:00
|
|
|
; RUN: opt < %s 2>&1 -disable-output \
|
2021-07-19 19:32:12 +02:00
|
|
|
; RUN: -passes=inline -print-before-all -print-after-all | FileCheck %s
|
2018-12-11 20:05:35 +01:00
|
|
|
; RUN: opt < %s 2>&1 -disable-output \
|
2021-07-19 19:32:12 +02:00
|
|
|
; RUN: -passes=inline -print-before-all -print-after-all -print-module-scope | FileCheck %s
|
2018-12-11 20:05:35 +01:00
|
|
|
|
2021-07-19 19:32:12 +02:00
|
|
|
; CHECK: IR Dump Before InlinerPass on (tester, foo)
|
|
|
|
; CHECK: IR Dump After InlinerPass on (tester, foo) (invalidated)
|
|
|
|
; CHECK: IR Dump Before InlinerPass on (tester)
|
|
|
|
; CHECK: IR Dump After InlinerPass on (tester)
|
2018-12-11 20:05:35 +01:00
|
|
|
|
|
|
|
|
|
|
|
define void @tester() noinline {
|
|
|
|
call void @foo()
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define internal void @foo() alwaysinline {
|
|
|
|
call void @tester()
|
|
|
|
ret void
|
|
|
|
}
|