Split LiveRangeCalc in LiveRangeCalc/LiveIntervalCalc. NFC
authorMarcello Maggioni <hayarms@gmail.com>
Mon, 23 Mar 2020 02:08:29 +0000 (19:08 -0700)
committerMarcello Maggioni <hayarms@gmail.com>
Fri, 10 Apr 2020 18:26:21 +0000 (11:26 -0700)
commitea11f4726f2fb30ec319ca579234c620532d088b
tree48e758beabd4c6e4afeba35fc36e202057f39966
parent882ba484743763b8560b08f483ae21d26ab336f9
Split LiveRangeCalc in LiveRangeCalc/LiveIntervalCalc. NFC

Summary:
Refactor LiveRangeCalc such that it is now split into two classes

The objective is to split all the "register specific" logic away
from LiveRangeCalc.
The two new classes created are:

- LiveRangeCalc - is meant as a generic class to compute and modify
  live ranges in a generic way. This class should deal only with
  SlotIndices and VNInfo objects.

- LiveIntervalCals - is meant to be equivalent to the old LiveRangeCalc.
  It computes the liveness virtual registers tracked by a LiveInterval
  object.

With this refactoring LiveRangeCalc can be used to implement tracking of
liveness of LiveRanges that represent other things than just registers.

Subscribers: MatzeB, qcolombet, mgorny, hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D76584
llvm/include/llvm/CodeGen/LiveIntervalCalc.h [new file with mode: 0644]
llvm/include/llvm/CodeGen/LiveIntervals.h
llvm/include/llvm/CodeGen/LiveRangeCalc.h
llvm/lib/CodeGen/CMakeLists.txt
llvm/lib/CodeGen/InlineSpiller.cpp
llvm/lib/CodeGen/LiveIntervalCalc.cpp [new file with mode: 0644]
llvm/lib/CodeGen/LiveIntervals.cpp
llvm/lib/CodeGen/LiveRangeCalc.cpp
llvm/lib/CodeGen/MachineVerifier.cpp
llvm/lib/CodeGen/SplitKit.cpp
llvm/lib/CodeGen/SplitKit.h