Changeset View
Changeset View
Standalone View
Standalone View
test/Other/scc-deleted-printer.ll
; RUN: opt < %s 2>&1 -disable-output \ | ; RUN: opt < %s 2>&1 -disable-output \ | ||||
; RUN: -passes=inline -print-before-all -print-after-all | FileCheck %s -check-prefix=INL | ; RUN: -passes=inline -print-before-all -print-after-all | FileCheck %s -check-prefix=INL | ||||
; RUN: opt < %s 2>&1 -disable-output \ | ; RUN: opt < %s 2>&1 -disable-output \ | ||||
; RUN: -passes=inline -print-before-all -print-after-all -print-module-scope | FileCheck %s -check-prefix=INL-MOD | ; RUN: -passes=inline -print-before-all -print-after-all -print-module-scope | FileCheck %s -check-prefix=INL-MOD | ||||
; INL: IR Dump Before {{InlinerPass .*scc: .tester, foo}} | ; INL: IR Dump Before {{InlinerPass .*scc: .tester, foo}} | ||||
; INL-NOT: IR Dump After {{InlinerPass}} | ; INL-NOT: IR Dump After {{InlinerPass}} | ||||
; INL: IR Dump Before {{InlinerPass .*scc: .tester}} | ; INL: IR Dump Before {{InlinerPass .*scc: .tester}} | ||||
; INL: IR Dump After {{InlinerPass .*scc: .tester}} | ; INL: IR Dump After {{InlinerPass .*scc: .tester}} | ||||
; INL-MOD: IR Dump Before {{InlinerPass .*scc: .tester, foo}} | ; INL-MOD: IR Dump Before {{InlinerPass .*scc: .tester, foo}} | ||||
; INL-MOD-NOT: IR Dump After {{InlinerPass}} | ; INL-MOD: IR Dump After {{InlinerPass .*invalidated: .*scc: .tester, foo}} | ||||
; INL-MOD: IR Dump Before {{InlinerPass .*scc: .tester}} | ; INL-MOD: IR Dump Before {{InlinerPass .*scc: .tester}} | ||||
; INL-MOD: IR Dump After {{InlinerPass .*scc: .tester}} | ; INL-MOD: IR Dump After {{InlinerPass .*scc: .tester}} | ||||
define void @tester() noinline { | define void @tester() noinline { | ||||
call void @foo() | call void @foo() | ||||
ret void | ret void | ||||
} | } | ||||
define internal void @foo() alwaysinline { | define internal void @foo() alwaysinline { | ||||
call void @tester() | call void @tester() | ||||
ret void | ret void | ||||
} | } |