mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
a62270de2c
The reversion apparently deleted the test/Transforms directory. Will be re-reverting again. llvm-svn: 358552
20 lines
413 B
LLVM
20 lines
413 B
LLVM
; RUN: opt -passes=synthetic-counts-propagation -S < %s | FileCheck %s
|
|
|
|
; CHECK-LABEL: define void @foo()
|
|
; CHECK: !prof ![[COUNT1:[0-9]+]]
|
|
define void @foo() {
|
|
call void @bar()
|
|
ret void
|
|
}
|
|
|
|
; CHECK-LABEL: define void @bar() #0
|
|
; CHECK: !prof ![[COUNT1]]
|
|
define void @bar() #0 {
|
|
call void @foo()
|
|
ret void
|
|
}
|
|
|
|
attributes #0 = {inlinehint}
|
|
|
|
; CHECK: ![[COUNT1]] = !{!"synthetic_function_entry_count", i64 25}
|