This is an archive of the discontinued LLVM Phabricator instance.

[RegisterCoalescer] Use substPhysReg in reMaterializeTrivialDef
ClosedPublic

Authored by bjope on Aug 16 2018, 7:47 AM.

Details

Summary

When RegisterCoalescer::reMaterializeTrivialDef is substituting
a register use in a DBG_VALUE instruction, and the old register
is a subreg, and the new register is a physical register,
then we need to use substPhysReg in order to extract the correct
subreg.

Diff Detail

Event Timeline

bjope created this revision.Aug 16 2018, 7:47 AM
wmi accepted this revision.Aug 21 2018, 9:20 AM

LGTM.

This revision is now accepted and ready to land.Aug 21 2018, 9:20 AM
This revision was automatically updated to reflect the committed changes.