[PATCH] D90462: [VE][TTI] don't advertise vregs/vops

Simon Moll via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 30 08:51:30 PDT 2020


simoll updated this revision to Diff 301920.
simoll added a comment.

Removed TTI info for masked loads, reductions


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D90462

Files:
  llvm/lib/Target/VE/VETargetTransformInfo.h


Index: llvm/lib/Target/VE/VETargetTransformInfo.h
===================================================================
--- llvm/lib/Target/VE/VETargetTransformInfo.h
+++ llvm/lib/Target/VE/VETargetTransformInfo.h
@@ -38,11 +38,28 @@
       : BaseT(TM, F.getParent()->getDataLayout()), ST(TM->getSubtargetImpl(F)),
         TLI(ST->getTargetLowering()) {}
 
-  unsigned getNumberOfRegisters(unsigned ClassID) const { return 64; }
+  unsigned getNumberOfRegisters(unsigned ClassID) const {
+    bool VectorRegs = (ClassID == 1);
+    if (VectorRegs) {
+      // TODO report vregs once vector isel is stable.
+      return 0;
+    }
 
-  unsigned getRegisterBitWidth(bool Vector) const { return 64; }
+    return 64;
+  }
 
-  unsigned getMinVectorRegisterBitWidth() const { return 64; }
+  unsigned getRegisterBitWidth(bool Vector) const {
+    if (Vector) {
+      // TODO report vregs once vector isel is stable.
+      return 0;
+    }
+    return 64;
+  }
+
+  unsigned getMinVectorRegisterBitWidth() const {
+    // TODO report vregs once vector isel is stable.
+    return 0;
+  }
 };
 
 } // namespace llvm


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90462.301920.patch
Type: text/x-patch
Size: 1111 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201030/8f249c71/attachment.bin>


More information about the llvm-commits mailing list