[all-commits] [llvm/llvm-project] 12cc8e: [mlir] Fix infinite loop in collapse

Guray Ozen via All-commits all-commits at lists.llvm.org
Mon Dec 5 03:57:34 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 12cc8e7310474c2b3231e4ebba8e555e31cd3eaf
      https://github.com/llvm/llvm-project/commit/12cc8e7310474c2b3231e4ebba8e555e31cd3eaf
  Author: Guray Ozen <guray.ozen at gmail.com>
  Date:   2022-12-05 (Mon, 05 Dec 2022)

  Changed paths:
    M mlir/lib/Dialect/Linalg/Transforms/ElementwiseOpFusion.cpp

  Log Message:
  -----------
  [mlir] Fix infinite loop in collapse

Incrementing `counter` variable is inside the if statement. If the code does not enter there, the while loop will iterate infinitely. This revision moves the codes outside of if statement.

Reviewed By: mravishankar

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




More information about the All-commits mailing list