[PATCH] D77900: [SVE] Remove calls to getBitWidth from PowerPC
Christopher Tetreault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 10 13:59:00 PDT 2020
ctetreau created this revision.
Herald added subscribers: llvm-commits, shchenz, psnobl, rkruppe, kbarton, hiraditya, tschuett, nemanjai.
Herald added a reviewer: efriedma.
Herald added a project: LLVM.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D77900
Files:
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
Index: llvm/lib/Target/PowerPC/PPCISelLowering.cpp
===================================================================
--- llvm/lib/Target/PowerPC/PPCISelLowering.cpp
+++ llvm/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -1316,9 +1316,11 @@
if (MaxAlign == MaxMaxAlign)
return;
if (VectorType *VTy = dyn_cast<VectorType>(Ty)) {
- if (MaxMaxAlign >= 32 && VTy->getBitWidth() >= 256)
+ if (MaxMaxAlign >= 32 &&
+ VTy->getPrimitiveSizeInBits().getFixedSize() >= 256)
MaxAlign = 32;
- else if (VTy->getBitWidth() >= 128 && MaxAlign < 16)
+ else if (VTy->getPrimitiveSizeInBits().getFixedSize() >= 128 &&
+ MaxAlign < 16)
MaxAlign = 16;
} else if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) {
unsigned EltAlign = 0;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77900.256650.patch
Type: text/x-patch
Size: 771 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200410/6ec1e629/attachment.bin>
More information about the llvm-commits
mailing list