[PATCH] D108973: [SLP][RISCV] Implement unsigned getMinVectorRegisterBitWidth() for RISCV

Luke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 31 23:25:39 PDT 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rGa78dd726f46d: [SLP][RISCV] Implement unsigned getMinVectorRegisterBitWidth() for RISCV (authored by luke957).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D108973/new/

https://reviews.llvm.org/D108973

Files:
  llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h


Index: llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h
===================================================================
--- llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h
+++ llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h
@@ -73,6 +73,10 @@
     llvm_unreachable("Unsupported register kind");
   }
 
+  unsigned getMinVectorRegisterBitWidth() const {
+    return ST->hasStdExtV() ? ST->getMinRVVVectorSizeInBits() : 0;
+  }
+
   InstructionCost getGatherScatterOpCost(unsigned Opcode, Type *DataTy,
                                          const Value *Ptr, bool VariableMask,
                                          Align Alignment,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108973.369859.patch
Type: text/x-patch
Size: 645 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210901/01a5f018/attachment.bin>


More information about the llvm-commits mailing list