This is an archive of the discontinued LLVM Phabricator instance.

StackColoring: better handling of statically unreachable code
ClosedPublic

Authored by thanm on May 25 2018, 6:40 AM.

Details

Summary

Avoid assert/crash during liveness calculation in situations
where the incoming machine function has statically unreachable BBs.
Second attempt at submitting; tis version of the change includes
a revised testcase.

Fixes PR37130.

Diff Detail

Repository
rL LLVM

Event Timeline

thanm created this revision.May 25 2018, 6:40 AM
thanm added subscribers: thakis, hfinkel, junbuml, dberlin.
sdardis accepted this revision.May 29 2018, 5:58 AM

LGTM.

test/CodeGen/X86/PR37310.mir
64–68 ↗(On Diff #148600)

This can be removed.

This revision is now accepted and ready to land.May 29 2018, 5:58 AM
thanm marked an inline comment as done.May 29 2018, 6:17 AM

Thanks for reviewing. I'll remove the cruft from the testcase and check it in.

thanm updated this revision to Diff 148898.May 29 2018, 6:55 AM

Clean up unused meta data in testcase. Fix typo in commit msg.

This revision was automatically updated to reflect the committed changes.

@thanm: can you please confirm that D53698 is the behavior you were testing?