[llvm] [AMDGPU] IGroupLP: Avoid DAG manipulation in greedyFind (PR #194827)
Frederik Harwath via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 29 03:59:38 PDT 2026
================
@@ -495,12 +649,11 @@ void PipelineSolver::removeEdges(
SUnit *Pred = PredSuccPair.first;
SUnit *Succ = PredSuccPair.second;
- auto *Match = llvm::find_if(
- Succ->Preds, [&Pred](SDep &P) { return P.getSUnit() == Pred; });
- if (Match != Succ->Preds.end()) {
- assert(Match->isArtificial());
+ auto *Match = llvm::find_if(Succ->Preds, [&Pred](SDep &P) {
+ return P.getSUnit() == Pred && P.isArtificial();
+ });
+ if (Match != Succ->Preds.end())
Succ->removePred(*Match);
- }
}
----------------
frederik-h wrote:
This is the preexisting issue that was mentioned in the PR description. Fixing this is out of scope for this PR.
https://github.com/llvm/llvm-project/pull/194827
More information about the llvm-commits
mailing list