[PATCH] D146735: [CodeGen] Don't include aliases in RegisterClassInfo::IgnoreCSRForAllocOrder
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 5 04:48:42 PDT 2023
foad updated this revision to Diff 511053.
foad added a comment.
Update.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146735/new/
https://reviews.llvm.org/D146735
Files:
llvm/lib/CodeGen/RegisterClassInfo.cpp
Index: llvm/lib/CodeGen/RegisterClassInfo.cpp
===================================================================
--- llvm/lib/CodeGen/RegisterClassInfo.cpp
+++ llvm/lib/CodeGen/RegisterClassInfo.cpp
@@ -93,11 +93,9 @@
// Even if CSR list is same, we could have had a different allocation order
// if ignoreCSRForAllocationOrder is evaluated differently.
BitVector CSRHintsForAllocOrder(TRI->getNumRegs());
- for (const MCPhysReg *I = CSR; *I; ++I)
- for (MCRegAliasIterator AI(*I, TRI, true); AI.isValid(); ++AI)
- CSRHintsForAllocOrder[*AI] = STI.ignoreCSRForAllocationOrder(mf, *AI);
- if (IgnoreCSRForAllocOrder.size() != CSRHintsForAllocOrder.size() ||
- IgnoreCSRForAllocOrder != CSRHintsForAllocOrder) {
+ for (MCPhysReg I = 1, E = TRI->getNumRegs(); I != E; ++I)
+ CSRHintsForAllocOrder[I] = STI.ignoreCSRForAllocationOrder(mf, I);
+ if (IgnoreCSRForAllocOrder != CSRHintsForAllocOrder) {
Update = true;
IgnoreCSRForAllocOrder = CSRHintsForAllocOrder;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146735.511053.patch
Type: text/x-patch
Size: 1004 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230405/e212a6d4/attachment.bin>
More information about the llvm-commits
mailing list