[NFC][Regalloc] Pass VirtRegMap by reference.
authorMircea Trofin <mtrofin@google.com>
Fri, 9 Oct 2020 23:38:42 +0000 (16:38 -0700)
committerMircea Trofin <mtrofin@google.com>
Mon, 12 Oct 2020 15:32:30 +0000 (08:32 -0700)
commit596a9f6b89d0d3e3f2897132ef1283941bd3607b
treed80beb8c25c4975bbb6299d3d12c46c95d908d00
parentc2216d796aab7659771c05303f9d78bad4aeca07
[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
llvm/include/llvm/CodeGen/CalcSpillWeights.h
llvm/lib/CodeGen/CalcSpillWeights.cpp
llvm/lib/CodeGen/LiveRangeEdit.cpp
llvm/lib/CodeGen/RegAllocBasic.cpp
llvm/lib/CodeGen/RegAllocGreedy.cpp
llvm/lib/CodeGen/RegAllocPBQP.cpp