[llvm] [DebugInfo][RemoveDIs] Support cloning and remapping DPValues (PR #72546)
Orlando Cazalet-Hyams via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 23 07:50:34 PST 2023
================
@@ -913,9 +913,14 @@ bool llvm::UnrollRuntimeLoopRemainder(
// Rewrite the cloned instruction operands to use the values created when the
// clone is created.
for (BasicBlock *BB : NewBlocks) {
+ Module *M = BB->getModule();
for (Instruction &I : *BB) {
RemapInstruction(&I, VMap,
RF_NoModuleLevelChanges | RF_IgnoreMissingLocals);
+ for (DPValue &DPV : I.getDbgValueRange()) {
+ RemapDPValue(M, &DPV, VMap,
+ RF_NoModuleLevelChanges | RF_IgnoreMissingLocals);
+ }
----------------
OCHyams wrote:
`RemapDPValueRange` instead?
https://github.com/llvm/llvm-project/pull/72546
More information about the llvm-commits
mailing list