[all-commits] [llvm/llvm-project] 98daa4: [MLIR] Fix incorrect removal of source loop in loo...

Kunwar Shaanjeet Singh Grover via All-commits all-commits at lists.llvm.org
Mon Nov 22 13:25:56 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 98daa4e425b02a0c27d53992e80510bda65809c5
      https://github.com/llvm/llvm-project/commit/98daa4e425b02a0c27d53992e80510bda65809c5
  Author: Groverkss <groverkss at gmail.com>
  Date:   2021-11-23 (Tue, 23 Nov 2021)

  Changed paths:
    M mlir/lib/Analysis/Utils.cpp
    M mlir/test/Transforms/loop-fusion-4.mlir

  Log Message:
  -----------
  [MLIR] Fix incorrect removal of source loop in loop fusion

This patch fixes a bug in loop fusion pass where the source loop was removed
even when the fused loop did not cover all iterations of the source loop.

This was because the fast hueristic check for checking if source loop and
fused loop have same iterations did not take into account steps in loop.

Reviewed By: dcaballe, bondhugula

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




More information about the All-commits mailing list