Missing support for semi-affine modulo operations in Affine dialect #9279
Labels
bug 🐞
Something isn't working
codegen/llvm
LLVM code generation compiler backend
codegen
Shared code generation infrastructure and dialects
help wanted
Extra attention is needed
After fixing 9244, the peeling transformation leads to semi-affine modulo operations (non-constant RHS) that are not already supported in Affine and can't be lowered to the Arithmetic dialect.
Reproducer:
Same problematic affine map as in 9244. I guess we would need to add support for them but, based on the documentation (https://github.com/llvm/llvm-project/blob/main/mlir/lib/Dialect/Affine/Utils/Utils.cpp#L65), I'm not sure what should happen for potential non-constant negative RHSs.
I also wonder how is that peeling is hitting this limitation now. Shouldn't any dynamic shape scenario lead to semi-affine modulo ops?
@matthias-springer, @nicolasvasilache, @hanhanW, @MaheshRavishankar
The text was updated successfully, but these errors were encountered: