Files
archived-llvm/test/Transforms/SampleProfile/Inputs/indirect-call.prof
Dehao Chen a84aa64e93 Handle profile mismatch correctly for SamplePGO.
Summary: Fix the bug when promoted call return type mismatches with the promoted function, we should not try to inline it. Otherwise it may lead to compiler crash.

Reviewers: davidxl, tejohnson, eraman

Reviewed By: tejohnson

Subscribers: llvm-commits, sanjoy

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313658 91177308-0d34-0410-b5e6-96231b3b80d8
2017-09-19 18:26:54 +00:00

26 lines
513 B
Plaintext

test:63067:0
1: 3345 _Z3barv:1398 _Z3foov:2059
test_inline:3000:0
1: foo_inline1:3000
11: 3000
1: foo_inline2:4000
19: 4000
test_noinline:3000:0
1: foo_noinline:3000
20: 3000
test_direct:3000:0
1: foo_direct:3000
21: 3000
test_inline_strip:3000:0
1: foo_inline_strip:3000
1: 3000
test_inline_strip_conflict:3000:0
1: foo_inline_strip_conflict:3000
1: 3000
test_norecursive_inline:3000:0
1: test_norecursive_inline:3000
20: 3000
test_noinline_bitcast:3000:0
1: foo_direct_i32:3000
1: 3000