diff options
author | Orlando Cazalet-Hyams <orlando.hyams@sony.com> | 2025-08-13 10:56:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-13 10:56:19 +0100 |
commit | d13341db26fde0cb9764222f6d36db8b786d6119 (patch) | |
tree | 5d0e6b3fd991400aeef530af663abfb9bd62b7f8 /llvm/lib/Transforms/Utils/SimplifyCFG.cpp | |
parent | d35686b25cc040d79d526008d1ddedfc3e572429 (diff) | |
download | llvm-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.cpp | 6 |
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. |