This is an archive of the discontinued LLVM Phabricator instance.

[RegisterCoalescer] Move debug value after rematerialize trivial def
ClosedPublic

Authored by Ka-Ka on Sep 18 2017, 11:56 PM.

Details

Summary

The associated debug value is updated when the virtual source register of a copy is completely eliminated and replaced with a rematerialize value in the defed register of the copy. As the debug value now is associated with another register it also need to be moved, otherwise the debug value isn't valid.

Diff Detail

Event Timeline

Ka-Ka created this revision.Sep 18 2017, 11:56 PM
Ka-Ka added inline comments.Nov 9 2017, 5:35 AM
lib/CodeGen/RegisterCoalescer.cpp
1322–1324

The alternative to moving the debug value is to remove it.

aprantl accepted this revision.Nov 9 2017, 11:33 AM

seems plausible, thanks!

This revision is now accepted and ready to land.Nov 9 2017, 11:33 AM
This revision was automatically updated to reflect the committed changes.