[PATCH] D143229: [FunctionImporter] Don't upgrade debug info for ThinLTO compiles

Arthur Eubanks via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 2 16:15:03 PST 2023


aeubanks created this revision.
Herald added subscribers: ormris, steven_wu, hiraditya, inglorion.
Herald added a project: All.
aeubanks requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Calling UpgradeDebugInfo() is expensive since it runs the verifier. With
ThinLTO, we only support cases where the input bitcode is built with the
same LLVM revision as the tool processing it, so the debug info should
be compatible.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D143229

Files:
  llvm/include/llvm/Transforms/IPO/FunctionImport.h
  llvm/lib/LTO/LTOBackend.cpp
  llvm/lib/LTO/ThinLTOCodeGenerator.cpp
  llvm/lib/Transforms/IPO/FunctionImport.cpp
  llvm/test/LTO/X86/strip-debug-info.ll
  llvm/tools/llvm-link/llvm-link.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143229.494464.patch
Type: text/x-patch
Size: 5636 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230203/cd10f7ad/attachment.bin>


More information about the llvm-commits mailing list