SUnit represent a MachineInstr in post-regalloc scheduling but SDNode in pre-regalloc scheduling. when pass -enable-hexagon-sdnode-sched to Hexagon backend with -O1 and above, this may cause an assertion failed.
Fixes PR45194.
Differential D76134
[Hexagon] Check isInstr() before getInstr() with SUnit. Xinglong on Mar 13 2020, 7:40 AM. Authored by
Details SUnit represent a MachineInstr in post-regalloc scheduling but SDNode in pre-regalloc scheduling. when pass -enable-hexagon-sdnode-sched to Hexagon backend with -O1 and above, this may cause an assertion failed. Fixes PR45194.
Diff Detail
|