[all-commits] [llvm/llvm-project] 5bc4f8: s[mlir] Tighten computation of inferred SubView re...

Nicolas Vasilache via All-commits all-commits at lists.llvm.org
Thu Feb 11 14:44:44 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5bc4f8846c07bc3b355c8f303416784a10d1a298
      https://github.com/llvm/llvm-project/commit/5bc4f8846c07bc3b355c8f303416784a10d1a298
  Author: Nicolas Vasilache <nicolas.vasilache at gmail.com>
  Date:   2021-02-11 (Thu, 11 Feb 2021)

  Changed paths:
    M mlir/include/mlir/Dialect/StandardOps/IR/Ops.h
    M mlir/include/mlir/IR/AffineExpr.h
    M mlir/include/mlir/IR/AffineMap.h
    M mlir/include/mlir/IR/BuiltinTypes.h
    M mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp
    M mlir/lib/Dialect/Linalg/Transforms/Fusion.cpp
    M mlir/lib/Dialect/StandardOps/IR/Ops.cpp
    M mlir/lib/IR/AffineExpr.cpp
    M mlir/lib/IR/AffineMap.cpp
    M mlir/lib/IR/BuiltinTypes.cpp
    M mlir/test/IR/core-ops.mlir
    M mlir/test/IR/invalid-ops.mlir

  Log Message:
  -----------
  s[mlir] Tighten computation of inferred SubView result type.

The AffineMap in the MemRef inferred by SubViewOp may have uncompressed symbols which result in type mismatch on otherwise unused symbols. Make the computation of the AffineMap compress those unused symbols which results in better canonical types.
Additionally, improve the error message to report which inferred type was expected.

Differential Revision: https://reviews.llvm.org/D96551




More information about the All-commits mailing list