SuccessChanges

Summary

  1. [DebugInfo] Allow spill slots in call site parameter descriptions (details)
  2. [ThinLTO] Fix -Wunused-function in NDEBUG builds after (details)
  3. [llvm-objcopy][MachO] Implement --redefine-sym and --redefine-syms (details)
Commit 67c416dc9a5aeda034d46bdcb3b63fffa462d28e by maskray
[DebugInfo] Allow spill slots in call site parameter descriptions
Allow call site paramter descriptions to reference spill slots. Spill
slots are not visible to high-level LLVM IR, so they can safely be
referenced during entry value evaluation (as they cannot be clobbered by
some other function).
This gives a 5% increase in the number of call site parameter DIEs in an
LTO x86_64 build of the xnu kernel.
This reverts commit eb4c98ca3d2590bad9f6542afbf3a7824d2b53fa (
[DebugInfo] Exclude memory location values as parameter entry values),
effectively reintroducing the portion of D60716 which dealt with memory
locations (authored by Djordje, Nikola, Ananth, and Ivan).
This partially addresses llvm.org/PR43343. However, not all memory
operands forwarded to callees live in spill slots. In the xnu build, it
may be possible to use an escape analysis to increase the number of call
site parameter by another 15% (more details in PR43343).
Differential Revision: https://reviews.llvm.org/D70254
The file was addedllvm/test/tools/yaml2obj/COFF/xrelocs.yaml
The file was removedllvm/test/tools/yaml2obj/coff-xrelocs.yaml
Commit 8bcd01f48ac8417a07ff941bdbfc422a55a4bc8d by maskray
[ThinLTO] Fix -Wunused-function in NDEBUG builds after
llvmorg-10-init-9933-g3d708bf5c26
The file was modifiedllvm/lib/Transforms/IPO/FunctionImport.cpp
Commit 28a5dc7fc587a2737cc6cc0bfa13129925cda133 by maskray
[llvm-objcopy][MachO] Implement --redefine-sym and --redefine-syms
Similar to D46029 (ELF) and D70036 (COFF), but for MachO. Note, when
--strip-symbol (not implemented for MachO) is also specified,
--redefine-sym executes before --strip-symbol.
Reviewed By: jhenderson, seiya
Differential Revision: https://reviews.llvm.org/D70212
The file was addedllvm/test/tools/llvm-objcopy/MachO/redefine-symbol.s
The file was modifiedllvm/tools/llvm-objcopy/MachO/Object.h
The file was modifiedllvm/tools/llvm-objcopy/MachO/MachOObjcopy.cpp