[all-commits] [llvm/llvm-project] f6f1ab: [mlir][scf] Fix `for-loop-peeling` crash (#77697)
Felix Schneider via All-commits
all-commits at lists.llvm.org
Fri Jan 12 10:08:28 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f6f1ab9d90252f9b943e77a64e30a3d26ef7cbbb
https://github.com/llvm/llvm-project/commit/f6f1ab9d90252f9b943e77a64e30a3d26ef7cbbb
Author: Felix Schneider <fx.schn at gmail.com>
Date: 2024-01-12 (Fri, 12 Jan 2024)
Changed paths:
M mlir/lib/Dialect/SCF/Transforms/LoopSpecialization.cpp
M mlir/test/Dialect/SCF/for-loop-peeling.mlir
Log Message:
-----------
[mlir][scf] Fix `for-loop-peeling` crash (#77697)
Before applying the peeling patterns, it can happen that the `ForOp`
gets a step of zero during folding. This leads to a division-by-zero
down the line.
This patch adds an additional check for a constant-zero step and a
test.
Fix https://github.com/llvm/llvm-project/issues/75758
More information about the All-commits
mailing list