The post dominator tree does not have a root node in this case.
My original patch was still needed to fix this case
Paths
| Differential D19732
DivergenceAnalysis: Fix crash with no return blocks ClosedPublic Authored by arsenm on Apr 29 2016, 11:21 AM.
Details
Summary The post dominator tree does not have a root node in this case. My original patch was still needed to fix this case
Diff Detail Event Timelinearsenm updated this object. This revision is now accepted and ready to land.Apr 29 2016, 5:50 PM
Revision Contents
Diff 55633 lib/Analysis/DivergenceAnalysis.cpp
test/Analysis/DivergenceAnalysis/AMDGPU/no-return-blocks.ll
|
The comment seems inaccurate. PDT.getNode(ThisBB) == nullptr means the function doesn't have an exit block or ThisBB doesn't reach any exit block of the function.