[PATCH] D89171: [NFC][Regalloc] Pass VirtRegMap by reference.
Mircea Trofin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 9 16:46:56 PDT 2020
mtrofin created this revision.
mtrofin added reviewers: qcolombet, dsanders, MaskRay, gjain.
Herald added subscribers: llvm-commits, hiraditya, MatzeB.
Herald added a project: LLVM.
mtrofin requested review of this revision.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D89171
Files:
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89171.297363.patch
Type: text/x-patch
Size: 6872 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201009/695347e9/attachment.bin>
More information about the llvm-commits
mailing list