[PATCH] D80824: [CodeGen][SVE] Replace deprecated call to getVectorNumElements() with getVectorElemetCount() in replaceZeroVectorStore()
Henry Kao via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 29 11:27:15 PDT 2020
hkao13 created this revision.
hkao13 added reviewers: sdesmalen, kmclaughlin, dancgr, efriedma, each, andwar, rengolin.
Herald added subscribers: llvm-commits, psnobl, rkruppe, hiraditya, kristof.beyls, tschuett.
Herald added a project: LLVM.
Fixes several warnings in AArch64 SVE unit tests.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D80824
Files:
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
Index: llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
===================================================================
--- llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -11940,7 +11940,7 @@
// It is beneficial to scalarize a zero splat store for 2 or 3 i64 elements or
// 2, 3 or 4 i32 elements.
- int NumVecElts = VT.getVectorNumElements();
+ int NumVecElts = VT.getVectorElementCount().Min;
if (!(((NumVecElts == 2 || NumVecElts == 3) &&
VT.getVectorElementType().getSizeInBits() == 64) ||
((NumVecElts == 2 || NumVecElts == 3 || NumVecElts == 4) &&
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80824.267307.patch
Type: text/x-patch
Size: 645 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200529/157abbd4/attachment.bin>
More information about the llvm-commits
mailing list