brintos

brintos / llvm-project-archived public Read only

0
0
Text · 637 B · 043b73e Raw
23 lines · plain
1; RUN: opt -mtriple=amdgcn-amd-amdhsa -S -passes=inline -inline-threshold=0 -debug-only=inline-cost %s -o - 2>&1 | FileCheck %s2; REQUIRES: asserts3 4; CHECK: Analyzing call of callee_not_only_one_live_use... (caller:caller)5; CHECK: Cost: -306; CHECK: Analyzing call of callee_only_one_live_use... (caller:caller)7; CHECK: Cost: -1650308 9define internal void @callee_not_only_one_live_use() {10  ret void11}12 13define internal void @callee_only_one_live_use() {14  ret void15}16 17define void @caller() {18  call void @callee_not_only_one_live_use()19  call void @callee_not_only_one_live_use()20  call void @callee_only_one_live_use()21  ret void22}23