[PATCH 2/3] Notify LiveRangeEdit of new virtual registers.

Jakob Stoklund Olesen stoklund at 2pi.dk
Wed Aug 14 16:05:43 PDT 2013


On Aug 14, 2013, at 3:43 PM, Mark Lacey <mark.lacey at apple.com> wrote:

> 
> Add a delegate class to MachineRegisterInfo with a single virtual
> function, MRI_NoteNewVirtualRegister(). Update LiveRangeEdit to inherit
> from this delegate class and override the definition of the callback
> with an implementation that tracks the newly created virtual registers.
> ---
> include/llvm/CodeGen/LiveRangeEdit.h       | 11 +++++++++--
> include/llvm/CodeGen/MachineRegisterInfo.h | 27 +++++++++++++++++++++++++++
> lib/CodeGen/LiveRangeEdit.cpp              | 13 +++++++++++--
> lib/CodeGen/MachineRegisterInfo.cpp        |  4 +++-

LGTM.

Thanks,
/jakob




More information about the llvm-commits mailing list