This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] Fix a bug in affine-loop-normalize
ClosedPublic

Authored by vimal-polymagelabs on Jul 18 2023, 4:26 AM.

Details

Summary

The existing logic was not sufficient for the case of loops with lower
and upper bounds with different operand lists.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald Transcript
vimal-polymagelabs requested review of this revision.Jul 18 2023, 4:26 AM
bondhugula accepted this revision.Jul 20 2023, 7:24 AM

Thanks for fixing this. LGTM.

Update commit summary's last part: "sharing some operands" -> "with different operand lists"?

mlir/test/Dialect/Affine/affine-loop-normalize.mlir
319

Drop the %{{.*}} = part. No need to match this.

320

Nit: Drop %3 = .

This revision is now accepted and ready to land.Jul 20 2023, 7:24 AM
vimal-polymagelabs updated this revision to Diff 543848.EditedJul 25 2023, 12:02 AM

Handled some of the review comments.

vimal-polymagelabs marked an inline comment as done.Jul 25 2023, 12:03 AM
vimal-polymagelabs edited the summary of this revision. (Show Details)

Handled all suggested changes.

vimal-polymagelabs marked an inline comment as done.Jul 25 2023, 12:14 AM
bondhugula accepted this revision.Jul 27 2023, 5:01 AM
This revision was landed with ongoing or failed builds.Jul 27 2023, 5:14 AM
This revision was automatically updated to reflect the committed changes.