[all-commits] [llvm/llvm-project] f79f43: Fold Tensor.extract_slice into a constant splat.

Okwan Kwon via All-commits all-commits at lists.llvm.org
Tue Feb 22 13:40:18 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f79f430d4b268429f96be95622facd2775b25624
      https://github.com/llvm/llvm-project/commit/f79f430d4b268429f96be95622facd2775b25624
  Author: Okwan Kwon <okkwon at gmail.com>
  Date:   2022-02-22 (Tue, 22 Feb 2022)

  Changed paths:
    M mlir/include/mlir/IR/BuiltinAttributes.h
    M mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
    M mlir/lib/IR/BuiltinAttributes.cpp
    M mlir/test/Dialect/Tensor/canonicalize.mlir

  Log Message:
  -----------
  Fold Tensor.extract_slice into a constant splat.

Fold arith.extract_slice into arith.constant when the source is a constant
splat and the result type is statically shaped.




More information about the All-commits mailing list