[PATCH] D76007: [TableGen][GlobalISel] Account for HwMode in RegisterBank register sizes
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 1 18:21:24 PDT 2023
craig.topper added inline comments.
================
Comment at: llvm/include/llvm/CodeGen/RegisterBankInfo.h:589
+ for (size_t Index = 0; Index < NumRegBanks; ++Index)
+ if (RegBanks[Index]->getID() == RegBankID)
+ return Sizes[Index + HwMode * NumRegBanks];
----------------
Do we need a loop at al
Can it just be `return Sizes[RegBankID + HwMode * NumRegBanks];`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D76007/new/
https://reviews.llvm.org/D76007
More information about the llvm-commits
mailing list