mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
[SVE] Remove bad calls to VectorType::getNumElements() from PowerPC
Differential Revision: https://reviews.llvm.org/D85154
This commit is contained in:
parent
592b072474
commit
055ddf033e
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user