[llvm] [RISCV] Implement RISCVTTIImpl::getPreferredAddressingMode for HasVendorXCVmem (PR #120533)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 19 09:59:38 PST 2024


================
@@ -2329,6 +2329,15 @@ unsigned RISCVTTIImpl::getMaximumVF(unsigned ElemWidth, unsigned Opcode) const {
   return std::max<unsigned>(1U, RegWidth.getFixedValue() / ElemWidth);
 }
 
+TTI::AddressingModeKind
+RISCVTTIImpl::getPreferredAddressingMode(const Loop *L,
+                                         ScalarEvolution *SE) const {
+  if (ST->hasVendorXCVmem())
----------------
topperc wrote:

`&& !Subtarget.is64Bit()` to be consistent with every other check for hasVendorXCVmem

https://github.com/llvm/llvm-project/pull/120533


More information about the llvm-commits mailing list