[all-commits] [llvm/llvm-project] 2ef71c: [mlir] Add additional Canonicalization of shape.cs...
Tres via All-commits
all-commits at lists.llvm.org
Thu Jul 9 02:24:03 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 2ef71cb7fdb76acd2dc69584d05dacd041a7a522
https://github.com/llvm/llvm-project/commit/2ef71cb7fdb76acd2dc69584d05dacd041a7a522
Author: Tres Popp <tpopp at google.com>
Date: 2020-07-09 (Thu, 09 Jul 2020)
Changed paths:
M mlir/include/mlir/Dialect/Traits.h
M mlir/lib/Dialect/Shape/IR/Shape.cpp
M mlir/lib/Dialect/Traits.cpp
M mlir/test/Dialect/Shape/canonicalize.mlir
Log Message:
-----------
[mlir] Add additional Canonicalization of shape.cstr_broadcastable.
Summary:
Added canonicalization and folding was:
- Folding when either input is an attribute indicating a scalar input
which can always be broadcasted.
- Canonicalization where it can be determined that either input shape is
a scalar.
- Canonicalization where the partially specified input shapes can be
proven to be broadcastable always.
Differential Revision: https://reviews.llvm.org/D83194
More information about the All-commits
mailing list