aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
diff options
context:
space:
mode:
authorOrlando Cazalet-Hyams <orlando.hyams@sony.com>2025-08-13 10:56:19 +0100
committerGitHub <noreply@github.com>2025-08-13 10:56:19 +0100
commitd13341db26fde0cb9764222f6d36db8b786d6119 (patch)
tree5d0e6b3fd991400aeef530af663abfb9bd62b7f8 /llvm/lib/Transforms/Utils/SimplifyCFG.cpp
parentd35686b25cc040d79d526008d1ddedfc3e572429 (diff)
downloadllvm-d13341db26fde0cb9764222f6d36db8b786d6119.zip
llvm-d13341db26fde0cb9764222f6d36db8b786d6119.tar.gz
llvm-d13341db26fde0cb9764222f6d36db8b786d6119.tar.bz2
[RemoveDIs][NFC] Remove getAssignmentMarkers (#153214)
getAssignmentMarkers was for debug intrinsics. getDVRAssignmentMarkers is used for DbgRecords.
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyCFG.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyCFG.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index deabacc..1436e47 100644
--- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -3321,12 +3321,10 @@ bool SimplifyCFGOpt::speculativelyExecuteBB(BranchInst *BI,
// %merge = select %cond, %two, %one
// store %merge, %x.dest, !DIAssignID !2
// dbg.assign %merge, "x", ..., !2
- auto replaceVariable = [OrigV, S](auto *DbgAssign) {
+ for (DbgVariableRecord *DbgAssign :
+ at::getDVRAssignmentMarkers(SpeculatedStore))
if (llvm::is_contained(DbgAssign->location_ops(), OrigV))
DbgAssign->replaceVariableLocationOp(OrigV, S);
- };
- for_each(at::getAssignmentMarkers(SpeculatedStore), replaceVariable);
- for_each(at::getDVRAssignmentMarkers(SpeculatedStore), replaceVariable);
}
// Metadata can be dependent on the condition we are hoisting above.