[CodeGen] Use cloneVirtualRegister in LiveIntervals and LiveRangeEdit
authorChristudasan Devadasan <Christudasan.Devadasan@amd.com>
Tue, 22 Nov 2022 19:15:57 +0000 (00:45 +0530)
committerChristudasan Devadasan <Christudasan.Devadasan@amd.com>
Sat, 17 Dec 2022 06:24:33 +0000 (11:54 +0530)
commitce02d5a5395632519f067409c42943bfd9aa2294
tree0551c067d9a21d44afab2ea474859370e15f6491
parent2f23f5c0d53c619101541a348cd817174ac27783
[CodeGen] Use cloneVirtualRegister in LiveIntervals and LiveRangeEdit

It is needed to invoke the delegate methods effectively whenever a
virtual register is cloned from an existing register of the same class.

Reviewed By: qcolombet

Differential Revision: https://reviews.llvm.org/D138517
llvm/lib/CodeGen/LiveIntervals.cpp
llvm/lib/CodeGen/LiveRangeEdit.cpp