Skip to content

Commit b5059b7

Browse files
[SVE] Remove bad call to VectorType::getNumElements() from ARM
Reviewed By: dmgreen Differential Revision: https://reviews.llvm.org/D85152
1 parent 1d77906 commit b5059b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ ARMTTIImpl::instCombineIntrinsic(InstCombiner &IC, IntrinsicInst &II) const {
166166
if (auto *CI = dyn_cast<ConstantInt>(XorMask)) {
167167
if (CI->getValue().trunc(16).isAllOnesValue()) {
168168
auto TrueVector = IC.Builder.CreateVectorSplat(
169-
cast<VectorType>(II.getType())->getNumElements(),
169+
cast<FixedVectorType>(II.getType())->getNumElements(),
170170
IC.Builder.getTrue());
171171
return BinaryOperator::Create(Instruction::Xor, ArgArg, TrueVector);
172172
}

0 commit comments

Comments
 (0)