aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectMemory.cpp
diff options
context:
space:
mode:
authorStephen Tozer <stephen.tozer@sony.com>2025-09-10 17:28:53 +0100
committerGitHub <noreply@github.com>2025-09-10 17:28:53 +0100
commit0a69cd4e34e3a1a8a84a2b9fe8764a4b535a9e37 (patch)
tree083fc541555829782f01d7da961d40a5715fe76f /lldb/source/Commands/CommandObjectMemory.cpp
parente2d9420272e2f479dc714706be5a4aa0a4b2c90d (diff)
downloadllvm-0a69cd4e34e3a1a8a84a2b9fe8764a4b535a9e37.zip
llvm-0a69cd4e34e3a1a8a84a2b9fe8764a4b535a9e37.tar.gz
llvm-0a69cd4e34e3a1a8a84a2b9fe8764a4b535a9e37.tar.bz2
[JumpThreading][DebugInfo] Propagate DebugLocs when simplifying loads (#157683)
In simplifyPartiallyRedundantLoad we may replace a load with a PHI of available values in predecessor blocks. As part of this process, we may need to cast those values, which we do by inserting a new cast at the end of the predecessor. These cast instructions should take their debug location from the load instruction, just as the PHI does; we make an exception if the predecessor does not unconditionally branch to the load's block, as in that case we are not guaranteed to reach the load and must therefore drop its debug location. Found using https://github.com/llvm/llvm-project/pull/107279.
Diffstat (limited to 'lldb/source/Commands/CommandObjectMemory.cpp')
0 files changed, 0 insertions, 0 deletions