[PATCH] D81511: [AArch64][SVE] Add legalization support for i32/i64 vector srem/urem

Sander de Smalen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 16 14:19:08 PDT 2020


sdesmalen accepted this revision.
sdesmalen added a comment.
This revision is now accepted and ready to land.

Nice improvement, LGTM!



================
Comment at: llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp:1360
 }
+void VectorLegalizer::ExpandREM(SDNode *Node,
+                                SmallVectorImpl<SDValue> &Results) {
----------------
nit: missing whitespace above this line.


================
Comment at: llvm/lib/Target/ARM/ARMISelLowering.cpp:213
   setOperationAction(ISD::FREM, VT, Expand);
+  setOperationAction(ISD::SDIVREM, VT, Expand);
+  setOperationAction(ISD::UDIVREM, VT, Expand);
----------------
If you're adding these for ARM Neon and MVE, they should probably have tests similar to the one for SVE?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D81511/new/

https://reviews.llvm.org/D81511





More information about the llvm-commits mailing list