SuccessChanges

Summary

  1. [yaml2obj][COFF] Add support for extended relocation tables (details)
  2. [DebugInfo] Allow spill slots in call site parameter descriptions (details)
Commit 4d02263af0d504593e6312b44dfa7749181a21e4 by serguei.n.dmitriev
[yaml2obj][COFF] Add support for extended relocation tables
Summary: The tool does not correctly handle COFF sections with extended
relocation tables (with IMAGE_SCN_LNK_NRELOC_OVFL bit set), this patch
fixes this problem.
But I have cheated a bit in the test (to make it smaller) because
extended relocation table is supposed to be used when the number of
relocations exceeds 65534. Otherwise the test size would be pretty big.
Reviewers: jhenderson, MaskRay, mstorsjo
Reviewed By: mstorsjo
Subscribers: hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D70251
The file was modifiedllvm/lib/ObjectYAML/COFFEmitter.cpp
The file was addedllvm/test/tools/yaml2obj/coff-xrelocs.yaml
Commit 1ee84e5ab2a4b7e79b39d4b5130c749c6a7c08aa by Vedant Kumar
[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 modifiedllvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp
The file was addedllvm/test/DebugInfo/MIR/X86/dbg-call-site-spilled-arg.mir
The file was modifiedllvm/lib/CodeGen/TargetInstrInfo.cpp