[PATCH] D85154: [SVE] Remove bad calls to VectorType::getNumElements() from PowerPC

Christopher Tetreault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 3 13:25:59 PDT 2020


ctetreau created this revision.
Herald added subscribers: llvm-commits, shchenz, psnobl, kbarton, hiraditya, tschuett, nemanjai.
Herald added a reviewer: efriedma.
Herald added a project: LLVM.
ctetreau requested review of this revision.
Herald added a subscriber: wuzish.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D85154

Files:
  llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp


Index: llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
===================================================================
--- llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
+++ llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
@@ -113,7 +113,7 @@
     // the permutation mask with respect to 31 and reverse the order of
     // V1 and V2.
     if (Constant *Mask = dyn_cast<Constant>(II.getArgOperand(2))) {
-      assert(cast<VectorType>(Mask->getType())->getNumElements() == 16 &&
+      assert(cast<FixedVectorType>(Mask->getType())->getNumElements() == 16 &&
              "Bad type for intrinsic!");
 
       // Check that all of the elements are integer constants or undefs.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85154.282711.patch
Type: text/x-patch
Size: 690 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200803/3db3bcd9/attachment.bin>


More information about the llvm-commits mailing list