summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineScheduler.cpp
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2020-01-14 06:28:37 -0800
committerTeresa Johnson <tejohnson@google.com>2020-01-14 10:54:03 -0800
commit7dc4bbf8ab311606388faacca58b6c3e3e508b77 (patch)
tree2b6390ce6d789ab5e454581a762e2c13eb1e5e22 /llvm/lib/CodeGen/MachineScheduler.cpp
parent98c54fb1feba081c509f7e389877550df130a80d (diff)
downloadbcm5719-llvm-7dc4bbf8ab311606388faacca58b6c3e3e508b77.tar.gz
bcm5719-llvm-7dc4bbf8ab311606388faacca58b6c3e3e508b77.zip
[ThinLTO] Handle variable with twice promoted name (Rust)
Summary: Ensure that we can internalize values produced from two rounds of promotion. Note that this cannot happen currently via clang, but in other use cases such as the Rust compiler which does a first round of ThinLTO on library code, producing bitcode, and a second round on the final binary. In particular this can happen if a function is exported and promoted, ending up with a ".llvm.${hash}" suffix, and then goes through a round of optimization creating an internal switch table expansion variable that is internal and contains the promoted name of the enclosing function. This variable will be promoted in the second round of ThinLTO if @foo is imported again, and therefore ends up with two ".llvm.${hash}" suffixes. Only the final one should be stripped when consulting the index to locate the summary. Reviewers: wmi Subscribers: mehdi_amini, inglorion, hiraditya, JDevlieghere, steven_wu, dexonsmith, arphaman, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D72711
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud