Files
clang-p2996/llvm/test/Transforms/SampleProfile/Inputs/indirect-call.prof
Dehao Chen 4a9dd70213 Fix the samplepgo indirect call promotion bug: we should not promote a direct call.
Summary: Checking CS.getCalledFunction() == nullptr does not necessary indicate indirect call. We also need to check if CS.getCalledValue() is not a constant.

Reviewers: davidxl

Reviewed By: davidxl

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D29570

llvm-svn: 294260
2017-02-06 23:33:15 +00:00

12 lines
199 B
Plaintext

test:63067:0
4: 3345 _Z3barv:1398 _Z3foov:2059
test_inline:3000:0
5: foo_inline:3000
1: 3000
test_noinline:3000:0
5: foo_noinline:3000
1: 3000
test_direct:3000:0
5: foo_direct:3000
1: 3000