[PATCH] D109481: [WebAssembly] Custom optimization for truncate
Thomas Lively via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 29 17:03:06 PDT 2021
tlively added a comment.
Nice, these tests give me a good sense of what this optimization is doing. The transformation looks good.
================
Comment at: llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp:2439
+static SDValue extractSubVector(SDValue Vec, unsigned IdxVal, SelectionDAG &DAG,
+ const SDLoc &DL, unsigned VectorWidth) {
----------------
For both this and `truncateVectorWithNARROW`, it would be good to add comments about what the parameters are for and what will be returned.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109481/new/
https://reviews.llvm.org/D109481
More information about the llvm-commits
mailing list