[all-commits] [llvm/llvm-project] 12bae5: Remove duplicate fields in RAGreedy

Stella Stamenova via All-commits all-commits at lists.llvm.org
Mon May 23 13:09:01 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 12bae5f3e2d2f1a95f33cb22149d5d5642389eae
      https://github.com/llvm/llvm-project/commit/12bae5f3e2d2f1a95f33cb22149d5d5642389eae
  Author: Qunyan Mangus <qumangus at microsoft.com>
  Date:   2022-05-23 (Mon, 23 May 2022)

  Changed paths:
    M llvm/lib/CodeGen/RegAllocGreedy.cpp
    M llvm/lib/CodeGen/RegAllocGreedy.h

  Log Message:
  -----------
  Remove duplicate fields in RAGreedy

RAGreedy has two fields of RegisterClassInfo, one called RCI and another RegClassInfo from its base class.
RCI is initialized without freezeReservedRegs first, while RegClassInfo does. Therefore, if reserved registers
information is changed between last time freezeReservedRegs is called and RAGreedy, it's not picked up by RCI.
Instead of having both fields in RAGreedy, remove RCI and use RegClassInfo instead. Also removed is the TRI field
which is present in its base class.

Reviewed By: MatzeB

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




More information about the All-commits mailing list