diff options
author | Harald van Dijk <harald.vandijk@codeplay.com> | 2024-05-08 17:02:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-08 17:02:25 +0100 |
commit | a6171900a446c85c3b53a4a9deba16b746f9f77f (patch) | |
tree | a4c708cfd36f3439d840b6d23d7bb8b4a1fad7d8 /llvm/lib/Transforms/Utils/LoopRotationUtils.cpp | |
parent | 2ceb1291ef3ddb87cb58030cd61d965f4030338f (diff) | |
download | llvm-a6171900a446c85c3b53a4a9deba16b746f9f77f.zip llvm-a6171900a446c85c3b53a4a9deba16b746f9f77f.tar.gz llvm-a6171900a446c85c3b53a4a9deba16b746f9f77f.tar.bz2 |
[RemoveDIs] Change remapDbgVariableRecord to remapDbgRecord (#91456)
We need to remap any DbgRecord, not just DbgVariableRecords.
This is the followup to #91447.
Co-authored-by: PietroGhg <pietro.ghiglio@codeplay.com>
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopRotationUtils.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopRotationUtils.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp b/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp index 5cd9641..08ba65d 100644 --- a/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp +++ b/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp @@ -639,9 +639,8 @@ bool LoopRotate::rotateLoop(Loop *L, bool SimplifiedLatch) { !NextDbgInsts.empty()) { auto DbgValueRange = LoopEntryBranch->cloneDebugInfoFrom(Inst, NextDbgInsts.begin()); - RemapDbgVariableRecordRange(M, DbgValueRange, ValueMap, - RF_NoModuleLevelChanges | - RF_IgnoreMissingLocals); + RemapDbgRecordRange(M, DbgValueRange, ValueMap, + RF_NoModuleLevelChanges | RF_IgnoreMissingLocals); // Erase anything we've seen before. for (DbgVariableRecord &DVR : make_early_inc_range(filterDbgVars(DbgValueRange))) @@ -666,9 +665,8 @@ bool LoopRotate::rotateLoop(Loop *L, bool SimplifiedLatch) { if (LoopEntryBranch->getParent()->IsNewDbgInfoFormat && !NextDbgInsts.empty()) { auto Range = C->cloneDebugInfoFrom(Inst, NextDbgInsts.begin()); - RemapDbgVariableRecordRange(M, Range, ValueMap, - RF_NoModuleLevelChanges | - RF_IgnoreMissingLocals); + RemapDbgRecordRange(M, Range, ValueMap, + RF_NoModuleLevelChanges | RF_IgnoreMissingLocals); NextDbgInsts = DbgMarker::getEmptyDbgRecordRange(); // Erase anything we've seen before. for (DbgVariableRecord &DVR : |