aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorBill Wendling <morbo@google.com>2022-07-18 12:05:53 -0700
committerBill Wendling <morbo@google.com>2022-08-03 16:41:56 -0700
commit239c831de4d09530ebd4e254f9248764792afa5e (patch)
tree65dc1d20d57d21190960e0f9d370a035c714f046 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parentca8de2d242c4fa5c4fa83e77d014da3067d0a3b0 (diff)
downloadllvm-239c831de4d09530ebd4e254f9248764792afa5e.zip
llvm-239c831de4d09530ebd4e254f9248764792afa5e.tar.gz
llvm-239c831de4d09530ebd4e254f9248764792afa5e.tar.bz2
Add switch to use "source_filename" instead of a hash ID for globally promoted local
During LTO a local promoted to a global gets a unique suffix based on a hash of the module IR. This means that changes in the local's module can affect the contents in another module that imported it (because the name of the imported promoted local is changed, but that doesn't reflect a real change in the importing module). So any tool that's validating changes to the importing module will see a superficial change. Instead of using the module hash, we can use the "source_filename" if it exists to generate a unique identifier that doesn't change due to LTO shenanigans. Differential Revision: https://reviews.llvm.org/D128863
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions