[PATCH] D77900: [SVE] Remove calls to getBitWidth from PowerPC
Christopher Tetreault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 20 14:39:50 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rGa9b137f9ffba: [SVE] Remove calls to getBitWidth from PowerPC (authored by ctetreau).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D77900/new/
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
@@ -1333,9 +1333,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.258846.patch
Type: text/x-patch
Size: 771 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200420/b466b5b3/attachment.bin>
More information about the llvm-commits
mailing list