Skip to content

Commit 4b63a66

Browse files
mmereckiigcbot
authored andcommitted
Skip unreachable partial joins
Skip processing unreachable partial joins in `update_cf_dep`.
1 parent 7de5e44 commit 4b63a66

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

IGC/Compiler/CISACodeGen/WIAnalysis.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,14 @@ void WIAnalysisRunner::update_cf_dep(const IGCLLVM::TerminatorInst* inst)
967967
if (NumPreds <= 1)
968968
continue;
969969
}
970-
auto PJDom = DT->getNode(PJ)->getIDom()->getBlock();
970+
auto *PJNode = DT->getNode(PJ);
971+
if (PJNode == nullptr)
972+
{
973+
IGC_ASSERT(!DT->isReachableFromEntry(PJ));
974+
continue;
975+
}
976+
auto PJDom = PJNode->getIDom()->getBlock();
977+
971978
// If both partial-join and it IDom are in partial-join region
972979
// there are cases in which phi-nodes in partial-joins are not
973980
// relevant to the cbr under the investigation

0 commit comments

Comments
 (0)