This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][Affine] Fix crash in normalizeMemRefType
ClosedPublic

Authored by bondhugula on Oct 6 2022, 10:35 PM.

Details

Summary

Fix crash in normalizeMemRefType. Correctly handle scenario and replace
assertion with a failure.

Diff Detail

Event Timeline

bondhugula created this revision.Oct 6 2022, 10:35 PM
bondhugula requested review of this revision.Oct 6 2022, 10:35 PM
dcaballe accepted this revision.Oct 6 2022, 11:02 PM

Thanks! LGTM

mlir/test/Transforms/normalize-memrefs.mlir
336

do we have a test for the negative case? Could you please add one?

This revision is now accepted and ready to land.Oct 6 2022, 11:02 PM
bondhugula updated this revision to Diff 466000.Oct 7 2022, 1:31 AM
bondhugula marked an inline comment as done.

Add test for the negative case. Rebase.

mlir/test/Transforms/normalize-memrefs.mlir
336

Good catch. Sure, added it now.

This revision was automatically updated to reflect the committed changes.