[all-commits] [llvm/llvm-project] 6f28fd: [mlir][vector] Fold 1-element reduction into extra...
Lei Zhang via All-commits
all-commits at lists.llvm.org
Fri Apr 22 11:26:04 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6f28fd0bf7f8a568775ef256d94b92122aa524f8
https://github.com/llvm/llvm-project/commit/6f28fd0bf7f8a568775ef256d94b92122aa524f8
Author: Lei Zhang <antiagainst at google.com>
Date: 2022-04-22 (Fri, 22 Apr 2022)
Changed paths:
M mlir/include/mlir/Dialect/Vector/IR/VectorOps.td
M mlir/lib/Dialect/Vector/IR/VectorOps.cpp
M mlir/test/Dialect/Vector/canonicalize.mlir
Log Message:
-----------
[mlir][vector] Fold 1-element reduction into extract or arith ops
If there is only one single element in the vector, then we can
just extract the element to compute the final result.
Reviewed By: mravishankar
Differential Revision: https://reviews.llvm.org/D124129
More information about the All-commits
mailing list