[all-commits] [llvm/llvm-project] 22dfa1: [mlir] Fold ceil/floordiv with negative RHS. (#97031)

Johannes Reifferscheid via All-commits all-commits at lists.llvm.org
Sun Jun 30 02:53:25 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 22dfa1aa2c6b4026b4a5d1f594197ee22af3136d
      https://github.com/llvm/llvm-project/commit/22dfa1aa2c6b4026b4a5d1f594197ee22af3136d
  Author: Johannes Reifferscheid <jreiffers at google.com>
  Date:   2024-06-30 (Sun, 30 Jun 2024)

  Changed paths:
    M mlir/lib/IR/AffineExpr.cpp
    M mlir/unittests/IR/AffineExprTest.cpp

  Log Message:
  -----------
  [mlir] Fold ceil/floordiv with negative RHS. (#97031)

Currently, we only fold if the RHS is a positive constant. There doesn't
seem to be a good reason to do that. The comment claims that division by
negative values is undefined, but I suspect that was just copied over
from the `mod` simplifier.



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