This is an archive of the discontinued LLVM Phabricator instance.

[RegisterCoalescer] Add wrapper for Erasing Instructions
ClosedPublic

Authored by sabuasal on Aug 1 2017, 6:45 PM.

Details

Summary
To delete an instruction the coalescer needs to call eraseFromParent()
on the MachineInstr, insert it in the ErasedInstrs list and update the
Live Ranges structure. This patch re-factors the code to do all that in
one function. This will also fix cases where previous code wasn't
inserting deleted instructions in the ErasedList.

Diff Detail

Repository
rL LLVM

Event Timeline

sabuasal created this revision.Aug 1 2017, 6:45 PM
This revision is now accepted and ready to land.Aug 2 2017, 6:51 PM
This revision was automatically updated to reflect the committed changes.