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:
parent
048aa8f2c1
commit
c2ae55c000
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user