This is an archive of the discontinued LLVM Phabricator instance.

RegPressure: Fix crash on blocks with only dbg_value
ClosedPublic

Authored by arsenm on Mar 8 2019, 10:55 AM.

Details

Summary

If there were only dbg_values in the block, recede would hit the
beginning of the block and try to use thet dbg_value as a real
instruction.

This may be incomplete, since I am still able to reproduce another assert
I hit while reducing the original testcase, and at another point working on this patch.
The second assert is however resisting attempts to come up with a reduced testcase.

Diff Detail