forked from OSchip/llvm-project
[SVE] Remove calls to getBitWidth from x86
Reviewers: efriedma, RKSimon, sdesmalen Reviewed By: RKSimon Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D77901
This commit is contained in:
parent
240725666a
commit
85247c1e89
|
@ -2202,7 +2202,7 @@ static void getMaxByValAlign(Type *Ty, unsigned &MaxAlign) {
|
|||
if (MaxAlign == 16)
|
||||
return;
|
||||
if (VectorType *VTy = dyn_cast<VectorType>(Ty)) {
|
||||
if (VTy->getBitWidth() == 128)
|
||||
if (VTy->getPrimitiveSizeInBits().getFixedSize() == 128)
|
||||
MaxAlign = 16;
|
||||
} else if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) {
|
||||
unsigned EltAlign = 0;
|
||||
|
|
Loading…
Reference in New Issue