Skip to content
Unverified Commit f6f1ab9d authored by Felix Schneider's avatar Felix Schneider Committed by GitHub
Browse files

[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
parent 2f2217a8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment