[all-commits] [llvm/llvm-project] 41206b: [DebugInfo] Re-instate LiveDebugVariables scope tr...
Jeremy Morse via All-commits
all-commits at lists.llvm.org
Tue Feb 4 06:51:35 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 41206b61e30c3d84188cb17b91c2c0c800982dd1
https://github.com/llvm/llvm-project/commit/41206b61e30c3d84188cb17b91c2c0c800982dd1
Author: Jeremy Morse <jeremy.morse at sony.com>
Date: 2020-02-04 (Tue, 04 Feb 2020)
Changed paths:
M llvm/lib/CodeGen/LiveDebugVariables.cpp
M llvm/test/DebugInfo/X86/dbg-addr-dse.ll
M llvm/test/DebugInfo/X86/live-debug-variables.ll
Log Message:
-----------
[DebugInfo] Re-instate LiveDebugVariables scope trimming
This patch reverts part of r362750 / D62650, which stopped
LiveDebugVariables from trimming leading variable location ranges down
to only covering those instructions that are in scope. I've observed some
circumstances where the number of DBG_VALUEs in a function can be
amplified in an un-necessary way, to cover more instructions that are
out of scope, leading to very slow compile times. Trimming the range
of instructions that the variables cover solves the slow compile times.
The specific problem that r362750 tries to fix is addressed by the
assignment to RStart that I've added. Any variable location that begins
at the first instruction of a block will now be considered to begin at the
start of the block. While these sound the same, the have different
SlotIndexes, and the register allocator may shoehorn additional
instructions in between the two. The test added in the past
(wrong_debug_loc_after_regalloc.ll) still works with this modification.
live-debug-variables.ll has a range trimmed to not cover the prologue of
the function, while dbg-addr-dse.ll has a DBG_VALUE sink past one
instruction with no DebugLoc, which is expected behaviour.
Differential Revision: https://reviews.llvm.org/D73691
More information about the All-commits
mailing list