llvm-project/llvm/lib/CodeGen/LiveDebugValues
Jeremy Morse 708cbda577 [DebugInfo][InstrRef] Honour too-much-debug-info cutouts
This reapplies 54a61c94f9, its follow up in 547b712500, which were
reverted 95fe61e639. Original commit message:

VarLoc based LiveDebugValues will abandon variable location propagation if
there are too many blocks and variable assignments in the function. If it
didn't, and we had (say) 1000 blocks and 1000 variables in scope, we'd end
up with 1 million DBG_VALUEs just at the start of blocks.

Instruction-referencing LiveDebugValues should honour this limitation too
(because the same limitation applies to it). Hoist the relevant command
line options into LiveDebugValues.cpp and pass it down into the
implementation classes as an argument to ExtendRanges. I've duplicated all
the run-lines in live-debug-values-cutoffs.mir to have an
instruction-referencing flavour.

Differential Revision: https://reviews.llvm.org/D107823
2021-08-17 11:34:49 +01:00
..
InstrRefBasedImpl.cpp [DebugInfo][InstrRef] Honour too-much-debug-info cutouts 2021-08-17 11:34:49 +01:00
LiveDebugValues.cpp [DebugInfo][InstrRef] Honour too-much-debug-info cutouts 2021-08-17 11:34:49 +01:00
LiveDebugValues.h [DebugInfo][InstrRef] Honour too-much-debug-info cutouts 2021-08-17 11:34:49 +01:00
VarLocBasedImpl.cpp [DebugInfo][InstrRef] Honour too-much-debug-info cutouts 2021-08-17 11:34:49 +01:00