[PATCH] D125956: [NOT YET FOR REVIEW][AArch64][LV] Implement AArch64TTIImpl::getRegisterClassForType
Dave Green via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 19 04:31:18 PDT 2022
dmgreen added a comment.
It might be worth teaching AArch64TTIImpl::getRegisterClassForType that fp regs and vector regs are the same thing. That would require some testing to make sure it actually produces better results though.
================
Comment at: llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp:229
+ return Vector ? 1 : 0;
+ return getRegMVTForType(Ty).isVector() ? 1 : 0;
+}
----------------
Can this just use the existing TLI->getTypeLegalizationCost call to get the MVT?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125956/new/
https://reviews.llvm.org/D125956
More information about the llvm-commits
mailing list