]> granicus.if.org Git - llvm/commit
[RegisterCoalescer] Add wrapper for Erasing Instructions
authorSameer AbuAsal <sabuasal@codeaurora.org>
Thu, 3 Aug 2017 02:41:17 +0000 (02:41 +0000)
committerSameer AbuAsal <sabuasal@codeaurora.org>
Thu, 3 Aug 2017 02:41:17 +0000 (02:41 +0000)
commit37ca700397ae9155ded8b73eb4bde374abb040f9
tree15de3e5455d814a2179090be157e95348d78cae1
parent9aafb854cc7cb8df8338c50cb411a54ce1e09796
[RegisterCoalescer] Add wrapper for Erasing Instructions

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.

Reviewers: qcolombet, kparzysz

Reviewed By: qcolombet

Subscribers: MatzeB, llvm-commits, qcolombet

Differential Revision: https://reviews.llvm.org/D36204

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309915 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/RegisterCoalescer.cpp