[PATCH] D133514: [VP][VE] Default VP_SREM/UREM to Expand and add generic expansion using VP_SDIV/UDIV+VP_MUL+VP_SUB.
Fraser Cormack via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 15 01:58:48 PDT 2022
frasercrmck accepted this revision.
frasercrmck added a comment.
LGTM
================
Comment at: llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp:1339
+
+ // X % Y -> X-X/Y*Y
+ SDValue Div = DAG.getNode(DivOpc, DL, VT, Dividend, Divisor, Mask, EVL);
----------------
I'd prefer something like the comment in DivRemPairs as it's a little clearer: `// X % Y --> X - ((X / Y) * Y).`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133514/new/
https://reviews.llvm.org/D133514
More information about the llvm-commits
mailing list