aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp
diff options
context:
space:
mode:
authorJeremy Morse <jeremy.morse@sony.com>2025-07-21 17:49:25 +0100
committerGitHub <noreply@github.com>2025-07-21 17:49:25 +0100
commitc9ceb9b75fd547c7d2e79837075370f4c8db8faa (patch)
tree8a82e4f1dce77a1b714633e7f7cd26b75127b743 /llvm/lib/Transforms/Utils/LoopRotationUtils.cpp
parent0823f4ff086e5352f7543b68ce6e7823498cf44b (diff)
downloadllvm-c9ceb9b75fd547c7d2e79837075370f4c8db8faa.zip
llvm-c9ceb9b75fd547c7d2e79837075370f4c8db8faa.tar.gz
llvm-c9ceb9b75fd547c7d2e79837075370f4c8db8faa.tar.bz2
[DebugInfo] Remove intrinsic-flavours of findDbgUsers (#149816)
This is one of the final remaining debug-intrinsic specific codepaths out there, and pieces of cross-LLVM infrastructure to do with debug intrinsics.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopRotationUtils.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/LoopRotationUtils.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp b/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp
index 06115e0..7cc9ff8 100644
--- a/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp
+++ b/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp
@@ -158,10 +158,8 @@ static void RewriteUsesOfClonedInstructions(BasicBlock *OrigHeader,
// Replace MetadataAsValue(ValueAsMetadata(OrigHeaderVal)) uses in debug
// intrinsics.
- SmallVector<DbgValueInst *, 1> DbgValues;
SmallVector<DbgVariableRecord *, 1> DbgVariableRecords;
- llvm::findDbgValues(DbgValues, OrigHeaderVal, &DbgVariableRecords);
- assert(DbgValues.empty());
+ llvm::findDbgValues(OrigHeaderVal, DbgVariableRecords);
for (DbgVariableRecord *DVR : DbgVariableRecords) {
// The original users in the OrigHeader are already using the original