[PATCH] D73295: [mlir] [VectorOps] Rewriting of vector.extract/insert_slices to other vector ops
Aart Bik via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 24 16:54:14 PST 2020
aartbik marked an inline comment as done.
aartbik added inline comments.
================
Comment at: mlir/include/mlir/Dialect/VectorOps/VectorOps.h:51
+/// "produced" tuple values are "consumed" (the most common
+/// use for "slices" ops), this lowering removes all tuple related
+/// operations as well (through DCE and folding). If tuple values
----------------
rriddle wrote:
> I don't understand this comment. I don't see how this lowering removes tuples. The pattern driver performs some DCE, but I don't see how that is related to these patterns.
Yes, this assumes the patterns are run through the greedy driver (or a similar driver that calls DCE and folds as part of the rewriting). I was trying to convey that rewriting of a typical extract_slices or insert_slices where the individual parts are always consumed somehow leaves no tuple behind. I can send out a follow-up CL with some rephrased comments to continue the discussion there.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D73295/new/
https://reviews.llvm.org/D73295
More information about the llvm-commits
mailing list