diff options
author | Jeremy Morse <jeremy.morse@sony.com> | 2023-11-23 17:07:10 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-23 17:07:10 +0000 |
commit | e09758224b65bfa30f1d9e5082f03abeeb610964 (patch) | |
tree | 2926ba21846fe7e67a035e5e228e8da4b4aaaaee /clang/lib/Frontend/CreateInvocationFromCommandLine.cpp | |
parent | 906f59826344504dd516cce44e0ba13e25c933f7 (diff) | |
download | llvm-e09758224b65bfa30f1d9e5082f03abeeb610964.zip llvm-e09758224b65bfa30f1d9e5082f03abeeb610964.tar.gz llvm-e09758224b65bfa30f1d9e5082f03abeeb610964.tar.bz2 |
[DebugInfo][RemoveDIs] Instrument jump-threading to update DPValues (#73127)
This patch makes jump-threading handle non-instruction debug-info stored
in DPValues in the same way that it updates dbg.values nowadays. This
involves re-targetting their operands as with dbg.values getting moved
from one block to another, and manually cloning them when duplicating
blocks. The SSAUpdater class also grows some functions for SSA-updating
DPValues in the same way as dbg.values.
All of this is largely covered by existing debug-info tests, except for
the cloning of DPValues attached to elidable instructions and branches,
where I've added a test to thread-debug-info.ll. Where previously we
could rely on dbg.values being copied and cloned as normal instructions
are, as we need to explicitly perform that operation now I've added some
explicit testing for it.
Diffstat (limited to 'clang/lib/Frontend/CreateInvocationFromCommandLine.cpp')
0 files changed, 0 insertions, 0 deletions