[PATCH] D116664: [AArch64] Improve codegen for get.active.lane.mask when SVE is available
Sander de Smalen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 12 09:26:46 PST 2022
sdesmalen accepted this revision.
sdesmalen added a comment.
This revision is now accepted and ready to land.
Nice improvement!
================
Comment at: llvm/lib/Target/AArch64/AArch64ISelLowering.cpp:15095
+ EVT VT = N->getValueType(0);
+ if (VT.isFixedLengthVector()) {
+ // We can use the SVE whilelo instruction to lower this intrinsic by
----------------
nit: avoid indentation by doing `if (!VT.isFixedLengthVector()) return SDValue();` ?
================
Comment at: llvm/lib/Target/AArch64/AArch64ISelLowering.cpp:15121
+ DAG.getConstant(0, DL, MVT::i64));
+ Res = DAG.getNode(ISD::TRUNCATE, DL, VT, Res);
+ }
----------------
nit: add comment 'truncate v4i32 -> v4i1`
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D116664/new/
https://reviews.llvm.org/D116664
More information about the llvm-commits
mailing list