This is an archive of the discontinued LLVM Phabricator instance.

[Hexagon] Check isInstr() before getInstr() with SUnit.
ClosedPublic

Authored by Xinglong on Mar 13 2020, 7:40 AM.

Details

Summary

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