[PATCH] D146734: [CodeGen] Use RegUnits in RegisterClassInfo::getLastCalleeSavedAlias
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 5 03:41:05 PDT 2023
foad added inline comments.
================
Comment at: llvm/include/llvm/CodeGen/RegisterClassInfo.h:60
+ // Map regunit to the callee saved Register.
SmallVector<MCPhysReg, 4> CalleeSavedAliases;
----------------
arsenm wrote:
> SmallVector<4> seems like a weird way to map this. I'd expect all sets of registers to be BitVectors?
Not sure what you mean. We just want an array here, so we can lookup the CSR corresponding to a particular regunit as quickly as possible. (I agree the "4" is weird.)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146734/new/
https://reviews.llvm.org/D146734
More information about the llvm-commits
mailing list