diff options
author | Felix Schneider <fx.schn@gmail.com> | 2024-01-12 19:08:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-12 19:08:16 +0100 |
commit | f6f1ab9d90252f9b943e77a64e30a3d26ef7cbbb (patch) | |
tree | 6f6340fadeebb6c9b0d9cc5a414c2250c5427012 /clang/lib/Format/WhitespaceManager.cpp | |
parent | 2f2217a8f7ad68b2d9374e0515f02e6752acd126 (diff) | |
download | llvm-f6f1ab9d90252f9b943e77a64e30a3d26ef7cbbb.zip llvm-f6f1ab9d90252f9b943e77a64e30a3d26ef7cbbb.tar.gz llvm-f6f1ab9d90252f9b943e77a64e30a3d26ef7cbbb.tar.bz2 |
[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
Diffstat (limited to 'clang/lib/Format/WhitespaceManager.cpp')
0 files changed, 0 insertions, 0 deletions