aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorJeremy Morse <jeremy.morse@sony.com>2023-12-05 11:22:07 +0000
committerGitHub <noreply@github.com>2023-12-05 11:22:07 +0000
commitb21175258b9a9a930acddef8ebc911e39095a436 (patch)
tree2c3662572386d12fafdd122a7ca80b5fbe915bc3 /llvm/lib/Transforms/Utils/Local.cpp
parent40381d12640932a4e8185d18e5a0da84b4e449c0 (diff)
downloadllvm-b21175258b9a9a930acddef8ebc911e39095a436.zip
llvm-b21175258b9a9a930acddef8ebc911e39095a436.tar.gz
llvm-b21175258b9a9a930acddef8ebc911e39095a436.tar.bz2
[DebugInfo][RemoveDIs] Avoid crash and output-difference in loop-rotate (#74093)
Avoid editing a range of DPValues and then remapping them. This occurs when we try to de-duplicate dbg.values, but then re-use the same iterator range. We can instead remap them, and then erase any duplicates. At the same time refactor the computation of seen-intrinsic hashes, and account for a peculiarity of loop-rotates existing behaviour: it will only deduplicate dbg.values that are immediately before the preheaders branch instruction, not just any dbg.value in the preheader.
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
0 files changed, 0 insertions, 0 deletions