the phi instruction is at front of the basic block 。
and the loop will out of bound if the use instruction is a phi instruction
the crash log at 50617
(I don't have commit access)
Differential D104010
[AMDGPU] Fix a crash when access beyond the end of the basic block qishilu on Jun 9 2021, 11:25 PM. Authored by
Details
Diff Detail
Event TimelineComment Actions Needs a test case.
|
It's not OK to just remove this assert. After the first loop (line 7717) NumUses should be set to the number of uses of VReg in DefBB. The second loop should return false as soon as it has seen all the uses, so it should not fall off the end of the BB.