[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 15:15:41 PDT 2020
This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rGb43791e7016d: [SVE] Remove bad calls to VectorType::getNumElements() from PowerPC (authored by ctetreau).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85154/new/
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.282741.patch
Type: text/x-patch
Size: 690 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200803/3b610dd8/attachment.bin>
More information about the llvm-commits
mailing list