[SVE] Remove bad calls to VectorType::getNumElements() from PowerPC
authorChristopher Tetreault <ctetreau@quicinc.com>
Mon, 3 Aug 2020 20:35:49 +0000 (13:35 -0700)
committerChristopher Tetreault <ctetreau@quicinc.com>
Mon, 3 Aug 2020 22:15:20 +0000 (15:15 -0700)
Differential Revision: https://reviews.llvm.org/D85154

llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp

index 04b3dce..8434fde 100644 (file)
@@ -113,7 +113,7 @@ PPCTTIImpl::instCombineIntrinsic(InstCombiner &IC, IntrinsicInst &II) const {
     // 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.