[all-commits] [llvm/llvm-project] 6050cf: [mlir][scf] Add reductions support to `scf.paralle...

Ivan Butygin via All-commits all-commits at lists.llvm.org
Thu Feb 1 07:37:32 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6050cf28846e5be2c162108f1a024d5ff25d5637
      https://github.com/llvm/llvm-project/commit/6050cf28846e5be2c162108f1a024d5ff25d5637
  Author: Ivan Butygin <ivan.butygin at gmail.com>
  Date:   2024-02-01 (Thu, 01 Feb 2024)

  Changed paths:
    M mlir/lib/Dialect/SCF/Transforms/ParallelLoopFusion.cpp
    M mlir/test/Dialect/SCF/parallel-loop-fusion.mlir

  Log Message:
  -----------
  [mlir][scf] Add reductions support to `scf.parallel` fusion (#75955)

Properly handle fusion of loops with reductions:
* Check there are no first loop results users between loops
* Create new loop op with merged reduction init values
* Update `scf.reduce` op to contain reductions from both loops
* Update loops users with new loop results




More information about the All-commits mailing list