mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
5a4198704c
IR-printing AfterPass instrumentation might be called on a loop that has just been invalidated. We should skip printing it to avoid spurious asserts. Reviewed By: chandlerc, philip.pfaffe Differential Revision: https://reviews.llvm.org/D54740 llvm-svn: 348887
26 lines
862 B
LLVM
26 lines
862 B
LLVM
; RUN: opt < %s 2>&1 -disable-output \
|
|
; RUN: -passes=inline -print-before-all -print-after-all | FileCheck %s -check-prefix=INL
|
|
; 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
|
|
|
|
; INL: IR Dump Before {{InlinerPass .*scc: .tester, foo}}
|
|
; INL-NOT: IR Dump After {{InlinerPass}}
|
|
; INL: IR Dump Before {{InlinerPass .*scc: .tester}}
|
|
; INL: IR Dump After {{InlinerPass .*scc: .tester}}
|
|
|
|
; INL-MOD: IR Dump Before {{InlinerPass .*scc: .tester, foo}}
|
|
; INL-MOD-NOT: IR Dump After {{InlinerPass}}
|
|
; INL-MOD: IR Dump Before {{InlinerPass .*scc: .tester}}
|
|
; INL-MOD: IR Dump After {{InlinerPass .*scc: .tester}}
|
|
|
|
|
|
define void @tester() noinline {
|
|
call void @foo()
|
|
ret void
|
|
}
|
|
|
|
define internal void @foo() alwaysinline {
|
|
call void @tester()
|
|
ret void
|
|
}
|