[llvm] 3b92db4 - [SVE] Remove bad call to VectorType::getNumElements() from AMDGPU
Christopher Tetreault via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 3 15:56:26 PDT 2020
Author: Christopher Tetreault
Date: 2020-08-03T15:56:10-07:00
New Revision: 3b92db4c846ef3c7295444fa0b554905de0774b2
URL: https://github.com/llvm/llvm-project/commit/3b92db4c846ef3c7295444fa0b554905de0774b2
DIFF: https://github.com/llvm/llvm-project/commit/3b92db4c846ef3c7295444fa0b554905de0774b2.diff
LOG: [SVE] Remove bad call to VectorType::getNumElements() from AMDGPU
Differential Revision: https://reviews.llvm.org/D85151
Added:
Modified:
llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp b/llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
index 372c5154acef..e186f66a8353 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
@@ -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;
More information about the llvm-commits
mailing list