Files
clang-p2996/llvm/test/Transforms/SampleProfile/Inputs/indirect-call.prof
Dehao Chen 9bd60429e2 Directly return promoted direct call instead of rely on stripPointerCast.
Summary: stripPointerCast is not reliably returning the value that's being type-casted. Instead it may look further at function attributes to further propagate the value. Instead of relying on stripPOintercast, the more reliable solution is to directly use the pointer to the promoted direct call.

Reviewers: tejohnson, davidxl

Reviewed By: tejohnson

Subscribers: llvm-commits, sanjoy

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

llvm-svn: 315077
2017-10-06 17:04:55 +00:00

32 lines
626 B
Plaintext

test:63067:0
1: 3345 _Z3barv:1398 _Z3foov:2059
test_inline:3000:0
1: 1000 foo_inline3:1000
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
return_arg_caller:3000:0
1: foo_inline1:3000
11: 3000
2: return_arg:3000
1: 3000