[all-commits] [llvm/llvm-project] 596a9f: [NFC][Regalloc] Pass VirtRegMap by reference.

Mircea Trofin via All-commits all-commits at lists.llvm.org
Mon Oct 12 08:42:11 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 596a9f6b89d0d3e3f2897132ef1283941bd3607b
      https://github.com/llvm/llvm-project/commit/596a9f6b89d0d3e3f2897132ef1283941bd3607b
  Author: Mircea Trofin <mtrofin at google.com>
  Date:   2020-10-12 (Mon, 12 Oct 2020)

  Changed paths:
    M llvm/include/llvm/CodeGen/CalcSpillWeights.h
    M llvm/lib/CodeGen/CalcSpillWeights.cpp
    M llvm/lib/CodeGen/LiveRangeEdit.cpp
    M llvm/lib/CodeGen/RegAllocBasic.cpp
    M llvm/lib/CodeGen/RegAllocGreedy.cpp
    M llvm/lib/CodeGen/RegAllocPBQP.cpp

  Log Message:
  -----------
  [NFC][Regalloc] Pass VirtRegMap by reference.

It's never null - the reason it's modeled as a pointer is because the
pass can't init it in its ctor. Passing by ref simplifies the code, too,
as the null checks were unnecessary complexity.

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




More information about the All-commits mailing list