[NFC][regalloc] Make VirtRegAuxInfo part of allocator state
authorMircea Trofin <mtrofin@google.com>
Tue, 29 Sep 2020 16:09:25 +0000 (09:09 -0700)
committerMircea Trofin <mtrofin@google.com>
Wed, 30 Sep 2020 15:13:05 +0000 (08:13 -0700)
commitd6de40f8865e2c016731f9b63d8a0a218ce1b74f
tree8497eac03259411fe2b738b5aa3d9de23aa98a5f
parentf425418fc4ebd989c6c3d59d20e7fe37cb29259c
[NFC][regalloc] Make VirtRegAuxInfo part of allocator state

All the state of VRAI is allocator-wide, so we can avoid creating it
every time we need it. In addition, the normalization function is
allocator-specific. In a next change, we can simplify that design in
favor of just having it as a virtual member.

Differential Revision: https://reviews.llvm.org/D88499
llvm/include/llvm/CodeGen/CalcSpillWeights.h
llvm/lib/CodeGen/CalcSpillWeights.cpp
llvm/lib/CodeGen/RegAllocBasic.cpp
llvm/lib/CodeGen/RegAllocGreedy.cpp
llvm/lib/CodeGen/RegAllocPBQP.cpp