1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

[SVE] Remove bad call to VectorType::getNumElements() from AMDGPU

Differential Revision: https://reviews.llvm.org/D85151
This commit is contained in:
Christopher Tetreault 2020-08-03 15:42:13 -07:00
parent 048aa8f2c1
commit c2ae55c000

View File

@ -728,7 +728,7 @@ static Value *simplifyAMDGCNMemoryIntrinsicDemanded(InstCombiner &IC,
APInt DemandedElts,
int DMaskIdx = -1) {
auto *IIVTy = cast<VectorType>(II.getType());
auto *IIVTy = cast<FixedVectorType>(II.getType());
unsigned VWidth = IIVTy->getNumElements();
if (VWidth == 1)
return nullptr;