[all-commits] [llvm/llvm-project] 65f20e: [mlir][Affine] Fix AffineLoopInvariantCodeMotion

Diego Caballero via All-commits all-commits at lists.llvm.org
Wed Sep 2 14:15:18 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 65f20ea1133b3111a982c76eea74a609fa083184
      https://github.com/llvm/llvm-project/commit/65f20ea1133b3111a982c76eea74a609fa083184
  Author: Diego Caballero <diego.caballero at intel.com>
  Date:   2020-09-03 (Thu, 03 Sep 2020)

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

  Log Message:
  -----------
  [mlir][Affine] Fix AffineLoopInvariantCodeMotion

Make sure that memory ops that are defined inside the loop are registered
as such in 'defineOp'. In the test provided, the 'mulf' op was hoisted
outside the loop nest even when its 'affine.load' operand was not.

Reviewed By: bondhugula

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




More information about the All-commits mailing list