mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-03 19:15:30 +00:00
cf538716fb
Summary: Fix a couple issues limiting the application of indirect call promotion in ThinLTO mode: - Invoke indirect call promotion before globalopt, since it may eliminate imported functions which appear unreferenced. - Invoke indirect call promotion with InLTO=true so that the PGOFuncName metadata is used to get the name for locals which would have been renamed during promotion. Reviewers: davidxl, mehdi_amini Subscribers: Prazek, llvm-commits, mehdi_amini Differential Revision: https://reviews.llvm.org/D24004 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@280024 91177308-0d34-0410-b5e6-96231b3b80d8
17 lines
311 B
LLVM
17 lines
311 B
LLVM
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
source_filename = "thinlto_indirect_call_promotion.c"
|
|
|
|
define void @a() {
|
|
entry:
|
|
ret void
|
|
}
|
|
|
|
define internal void @c() !PGOFuncName !1 {
|
|
entry:
|
|
ret void
|
|
}
|
|
|
|
!1 = !{!"thinlto_indirect_call_promotion.c:c"}
|