This is an archive of the discontinued LLVM Phabricator instance.

[mlir][affine][analysis] Fix `getClosedUB` handling in `getSliceBounds`
ClosedPublic

Authored by springerm on Mar 10 2023, 7:41 AM.

Details

Summary

There were cases in which ubAdjustment was not applied to the resulting UB.

Depends On: D145696

Diff Detail

Event Timeline

springerm created this revision.Mar 10 2023, 7:41 AM
springerm requested review of this revision.Mar 10 2023, 7:41 AM
bondhugula accepted this revision.Mar 10 2023, 4:21 PM
bondhugula added inline comments.
mlir/include/mlir/Dialect/Affine/Analysis/AffineStructures.h
228

The option can be simply named closedUb.

248

If closedUb is true, the upper bound is closed.

mlir/lib/Dialect/Affine/Analysis/AffineStructures.cpp
1145

get suffix can be dropped; it's implied and should be omitted to be consistent with such options throughout the codebase.

This revision is now accepted and ready to land.Mar 10 2023, 4:21 PM
This revision was automatically updated to reflect the committed changes.
springerm marked 3 inline comments as done.