summaryrefslogtreecommitdiff
path: root/llvm/test/Other/scc-deleted-printer.ll
blob: c7455ff8ebd43c4654dc3d86d8673445f3353d6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
; RUN: opt < %s 2>&1 -disable-output \
; RUN: 	   -passes=inline -print-before-all -print-after-all | FileCheck %s
; RUN: opt < %s 2>&1 -disable-output \
; RUN: 	   -passes=inline -print-before-all -print-after-all -print-module-scope | FileCheck %s

; CHECK: IR Dump Before InlinerPass on (tester, foo)
; CHECK: IR Dump After InlinerPass on (tester, foo)
; CHECK: IR Dump Before InlinerPass on (tester)
; CHECK: IR Dump After InlinerPass on (tester)


define void @tester() noinline {
  call void @foo()
  ret void
}

define internal void @foo() alwaysinline {
  call void @tester()
  ret void
}