[all-commits] [llvm/llvm-project] ea11f4: Split LiveRangeCalc in LiveRangeCalc/LiveIntervalC...

Kariddi via All-commits all-commits at lists.llvm.org
Fri Apr 10 11:26:28 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ea11f4726f2fb30ec319ca579234c620532d088b
      https://github.com/llvm/llvm-project/commit/ea11f4726f2fb30ec319ca579234c620532d088b
  Author: Marcello Maggioni <hayarms at gmail.com>
  Date:   2020-04-10 (Fri, 10 Apr 2020)

  Changed paths:
    A llvm/include/llvm/CodeGen/LiveIntervalCalc.h
    M llvm/include/llvm/CodeGen/LiveIntervals.h
    M llvm/include/llvm/CodeGen/LiveRangeCalc.h
    M llvm/lib/CodeGen/CMakeLists.txt
    M llvm/lib/CodeGen/InlineSpiller.cpp
    A llvm/lib/CodeGen/LiveIntervalCalc.cpp
    M llvm/lib/CodeGen/LiveIntervals.cpp
    M llvm/lib/CodeGen/LiveRangeCalc.cpp
    M llvm/lib/CodeGen/MachineVerifier.cpp
    M llvm/lib/CodeGen/SplitKit.cpp
    M llvm/lib/CodeGen/SplitKit.h

  Log Message:
  -----------
  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




More information about the All-commits mailing list