Emit error message instead of asserting
authorVimal Patel <vimal@polymagelabs.com>
Thu, 6 Apr 2023 05:14:43 +0000 (10:44 +0530)
committerUday Bondhugula <uday@polymagelabs.com>
Thu, 6 Apr 2023 15:44:15 +0000 (21:14 +0530)
commitd98e60069975e003ab5216b7ac7f64be0fd4ea01
treed1203ec04a27c6d01d00ada7e66e5d2bc08855b1
parent9b907001ab8cf88b9092e0ec6bf95ee37ccb9a38
Emit error message instead of asserting

test-affine-parametric-tile pass was crashing on an incorrect input.
Instead it should emit an error message and exit.

Fixes: https://github.com/llvm/llvm-project/issues/61528

Reviewed By: mehdi_amini, bondhugula

Differential Revision: https://reviews.llvm.org/D147595
mlir/test/Dialect/Affine/loop-tiling-parametric.mlir
mlir/test/lib/Dialect/Affine/TestAffineLoopParametricTiling.cpp