This is an archive of the discontinued LLVM Phabricator instance.

Avoid removing physreg uses in MachineDCE with LIS present
AbandonedPublic

Authored by rampitec on Apr 8 2019, 12:17 PM.

Details

Reviewers
bjope
Summary

One of OOT targets hits "Live segment doesn't end at a valid instruction"
error if physreg use is removed. I do not have a reproducer for that or
access to the target, but that seems to be reasonable to avoid removing
dead phys reg uses for the same reason as dead defs.

Diff Detail