[all-commits] [llvm/llvm-project] 359860: [mlir][std] Fold dim(dynamic_tensor_from_elements, ...
Stephan Herhut via All-commits
all-commits at lists.llvm.org
Tue Nov 17 05:40:25 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 3598605c0b3658dbb6cac634cb92a0a131f2fe0b
https://github.com/llvm/llvm-project/commit/3598605c0b3658dbb6cac634cb92a0a131f2fe0b
Author: Stephan Herhut <herhut at google.com>
Date: 2020-11-17 (Tue, 17 Nov 2020)
Changed paths:
M mlir/lib/Dialect/StandardOps/IR/Ops.cpp
M mlir/test/Dialect/Standard/canonicalize.mlir
Log Message:
-----------
[mlir][std] Fold dim(dynamic_tensor_from_elements, %cst)
The shape of the result of a dynamic_tensor_from_elements is defined via its
result type and operands. We already fold dim operations when they reference
one of the statically sized dimensions. Now, also fold dim on the dynamically
sized dimensions by picking the corresponding operand.
Differential Revision: https://reviews.llvm.org/D91616
More information about the All-commits
mailing list