[PATCH] D85151: [SVE] Remove bad call to VectorType::getNumElements() from AMDGPU
Christopher Tetreault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 3 15:56:27 PDT 2020
This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rG3b92db4c846e: [SVE] Remove bad call to VectorType::getNumElements() from AMDGPU (authored by ctetreau).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85151/new/
https://reviews.llvm.org/D85151
Files:
llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
Index: llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
===================================================================
--- llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
+++ llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
@@ -728,7 +728,7 @@
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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85151.282752.patch
Type: text/x-patch
Size: 604 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200803/a9e7f145/attachment.bin>
More information about the llvm-commits
mailing list