[all-commits] [llvm/llvm-project] 600c12: [DebugInfo][RemoveDIs] Reverse order of DPValues f...
Jeremy Morse via All-commits
all-commits at lists.llvm.org
Tue Dec 5 03:59:41 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 600c12987e17d8be174bb4e4cd95244c598676e6
https://github.com/llvm/llvm-project/commit/600c12987e17d8be174bb4e4cd95244c598676e6
Author: Jeremy Morse <jeremy.morse at sony.com>
Date: 2023-12-05 (Tue, 05 Dec 2023)
Changed paths:
M llvm/lib/IR/Metadata.cpp
M llvm/lib/Transforms/Utils/Local.cpp
M llvm/unittests/IR/DebugInfoTest.cpp
Log Message:
-----------
[DebugInfo][RemoveDIs] Reverse order of DPValues from findDbgUsers (#74099)
The order of dbg.value intrinsics appearing in the output can affect the
order of tables in DWARF sections. This means that DPValues, our
dbg.value replacement, needs to obey the same ordering rules. For
dbg.values returned by findDbgUsers it's reverse order of creation (due
to how they're put on use-lists). Produce that order from findDbgUsers
for DPValues.
I've got a few IR files where the order of dbg.values flips, but it's a
fragile test -- ultimately it needs the number of times a DPValue is
handled by findDbgValues to be odd.
More information about the All-commits
mailing list