[all-commits] [llvm/llvm-project] 984d1b: Remove empty AffineExpr stride canonicalization in...

Tres via All-commits all-commits at lists.llvm.org
Mon Aug 1 02:16:06 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 984d1bf8c0b9aec2ab7e2ddd1917641ed10f5428
      https://github.com/llvm/llvm-project/commit/984d1bf8c0b9aec2ab7e2ddd1917641ed10f5428
  Author: Tres Popp <tpopp at google.com>
  Date:   2022-08-01 (Mon, 01 Aug 2022)

  Changed paths:
    M mlir/lib/IR/BuiltinTypes.cpp
    M mlir/test/Conversion/MemRefToLLVM/memref-to-llvm.mlir

  Log Message:
  -----------
  Remove empty AffineExpr stride canonicalization in makeCanonicalStridedLayoutExpr

The "optimization" would replace the AffineMap for an empty shape with a 0 to represent its indexing (stride * dimension) logic. Meanwhile other pieces of core logic (such as getStridesAndOffset and makeStridedLinearLayoutMap) require strides for all dimensions to ensure no aliasing can occur which would occur if the shape was not empty. For now, this optimization is removed as different pieces of core types disagree on this, so the optimization should be caller supplied or should be consistent throughout the infrastructure.

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




More information about the All-commits mailing list