[all-commits] [llvm/llvm-project] 0ac3d9: [mlir][Linalg] Fix pad hoisting.

Nicolas Vasilache via All-commits all-commits at lists.llvm.org
Wed Feb 10 08:54:42 PST 2021


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

  Changed paths:
    M mlir/include/mlir/IR/AffineExpr.h
    M mlir/lib/Dialect/Linalg/Transforms/Hoisting.cpp
    M mlir/test/Dialect/Linalg/hoist-padding.mlir

  Log Message:
  -----------
  [mlir][Linalg] Fix pad hoisting.

This revision fixes the indexing logic into the packed tensor that result from hoisting padding. Previously, the index was incorrectly set to the loop induction variable when in fact we need to compute the iteration count (i.e. `(iv - lb).ceilDiv(step)`).

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




More information about the All-commits mailing list