We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7de5e44 commit 4b63a66Copy full SHA for 4b63a66
IGC/Compiler/CISACodeGen/WIAnalysis.cpp
@@ -967,7 +967,14 @@ void WIAnalysisRunner::update_cf_dep(const IGCLLVM::TerminatorInst* inst)
967
if (NumPreds <= 1)
968
continue;
969
}
970
- auto PJDom = DT->getNode(PJ)->getIDom()->getBlock();
+ 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
+
978
// If both partial-join and it IDom are in partial-join region
979
// there are cases in which phi-nodes in partial-joins are not
980
// relevant to the cbr under the investigation
0 commit comments