[mlir][SCF] Fix crash in loop peeling
authorMatthias Springer <springerm@google.com>
Thu, 19 Jan 2023 18:01:22 +0000 (19:01 +0100)
committerMatthias Springer <springerm@google.com>
Thu, 19 Jan 2023 18:06:28 +0000 (19:06 +0100)
commit1d98861a7896236895d467f7e7ab4eadf7dffd82
treec9cec06653f4085d347f21dc3795ea5bc6c2c6f4
parentaf05e818fb0519f027120e160ca036a3ab678584
[mlir][SCF] Fix crash in loop peeling

Upper bound and step size should be symbols instead of dims.

Differential Revision: https://reviews.llvm.org/D142136
mlir/lib/Dialect/SCF/Utils/AffineCanonicalizationUtils.cpp
mlir/test/Dialect/SCF/for-loop-peeling.mlir