[PATCH] D77899: [SVE] Remove calls to getBitWidth from Hexagon

Christopher Tetreault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 14 11:18:18 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rGe68f1f2d4301: [SVE] Remove calls to getBitWidth from Hexagon (authored by ctetreau).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D77899

Files:
  llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.cpp


Index: llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.cpp
===================================================================
--- llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.cpp
+++ llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.cpp
@@ -165,7 +165,7 @@
 
   if (Src->isVectorTy()) {
     VectorType *VecTy = cast<VectorType>(Src);
-    unsigned VecWidth = VecTy->getBitWidth();
+    unsigned VecWidth = VecTy->getPrimitiveSizeInBits().getFixedSize();
     if (useHVX() && isTypeForHVX(VecTy)) {
       unsigned RegWidth = getRegisterBitWidth(true);
       assert(RegWidth && "Non-zero vector register width expected");


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77899.257416.patch
Type: text/x-patch
Size: 634 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200414/3be19098/attachment.bin>


More information about the llvm-commits mailing list