[all-commits] [llvm/llvm-project] 398694: [MLIR][Affine] Simplify affine.for bounds by pruni...

lonely eagle via All-commits all-commits at lists.llvm.org
Wed Jun 10 07:00:37 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 398694988742d26a5eaca038c337c193d25c0268
      https://github.com/llvm/llvm-project/commit/398694988742d26a5eaca038c337c193d25c0268
  Author: lonely eagle <2020382038 at qq.com>
  Date:   2026-06-10 (Wed, 10 Jun 2026)

  Changed paths:
    M mlir/include/mlir/Dialect/Affine/Transforms/Passes.td
    M mlir/lib/Dialect/Affine/Transforms/SimplifyAffineWithBounds.cpp
    M mlir/test/Dialect/Affine/simplify-with-bounds.mlir

  Log Message:
  -----------
  [MLIR][Affine] Simplify affine.for bounds by pruning redundant expressions via ValueBoundsConstraintSet (#199032)

This PR introduces a new pattern `SimplifyAffineForBoundMap` to simplify
multi-result lower and upper bounds of `affine.for` loops by pruning
redundant expressions leveraging `ValueBoundsConstraintSet`. This PR
addresses the limitation where the built-in folder of `affine.for` can
only handle constant bounds.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list