[all-commits] [llvm/llvm-project] 5f9cd0: [MLIR] Fix affine LICM pass for unknown region hol...

Uday Bondhugula via All-commits all-commits at lists.llvm.org
Sat Dec 31 07:02:06 PST 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5f9cd099d62a9639ccf52f6ff609579e2be78a3c
  Author: Uday Bondhugula <uday at polymagelabs.com>
  Date:   2022-12-31 (Sat, 31 Dec 2022)

  Changed paths:
    M mlir/lib/Dialect/Affine/Transforms/AffineLoopInvariantCodeMotion.cpp
    M mlir/test/Dialect/Affine/affine-loop-invariant-code-motion.mlir

  Log Message:
  [MLIR] Fix affine LICM pass for unknown region holding ops

Fix affine LICM pass for unknown region-holding ops. The logic was
completely ignoring regions of unknown ops leading to generation of
invalid IR on hoisting. Handle affine.parallel op among those with
regions that are supported.

Reviewed By: ftynse

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

More information about the All-commits mailing list