Skip to content

Commit be4ced6

Browse files
committed
[MLIR] NFC. Make affine analysis utils method const correct
Make isSliceValid const correct. NFC.
1 parent 057e14d commit be4ced6

File tree

2 files changed

+2
-2
lines changed
  • mlir

2 files changed

+2
-2
lines changed

mlir/include/mlir/Dialect/Affine/Analysis/Utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ struct ComputationSliceState {
312312
/// return false as it implies that the effective fusion results in at least
313313
/// one iteration of the slice that was not originally in the source's domain.
314314
/// If the validity cannot be determined, returns std::nullopt.
315-
std::optional<bool> isSliceValid();
315+
std::optional<bool> isSliceValid() const;
316316

317317
void dump() const;
318318

mlir/lib/Dialect/Affine/Analysis/Utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ std::optional<bool> ComputationSliceState::isSliceMaximalFastCheck() const {
687687
/// Returns true if it is deterministically verified that the original iteration
688688
/// space of the slice is contained within the new iteration space that is
689689
/// created after fusing 'this' slice into its destination.
690-
std::optional<bool> ComputationSliceState::isSliceValid() {
690+
std::optional<bool> ComputationSliceState::isSliceValid() const {
691691
// Fast check to determine if the slice is valid. If the following conditions
692692
// are verified to be true, slice is declared valid by the fast check:
693693
// 1. Each slice loop is a single iteration loop bound in terms of a single

0 commit comments

Comments
 (0)