[llvm] [RemoveDIs] Add DPLabels support [3a/3] (PR #82633)
Stephen Tozer via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 22 10:07:06 PST 2024
================
@@ -293,6 +293,8 @@ bool SpeculativeExecutionPass::considerHoistingFromTo(
for (const auto &I : FromBlock) {
// Make note of any DPValues that need hoisting.
for (DbgRecord &DR : I.getDbgValueRange()) {
+ if (isa<DPLabel>(DR))
+ continue;
----------------
SLTozer wrote:
```suggestion
for (DPValue &DPV : DPValue::filter(I.getDbgValueRange())) {
```
https://github.com/llvm/llvm-project/pull/82633
More information about the llvm-commits
mailing list