Skip to content

Commit

Permalink
reviewer comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jorendumoulin committed Jan 29, 2025
1 parent b26d720 commit d08edb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compiler/ir/dart/access_pattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def matches(self, sp: SchedulePattern):
"""
if sp.num_dims > self.num_dims:
sp = sp.inner_dims(self.num_dims)
if sp.num_dims != self.num_dims:
elif sp.num_dims < self.num_dims:
return False
if sp.pattern != self.pattern:
return False
Expand Down
2 changes: 1 addition & 1 deletion tests/ir/dart/test_access_pattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def test_template_pattern_matches():
)
assert tp.matches(sp_non_matching_pattern) is False

# check pattern with wrong bounds (should be irellevant for template check)
# check pattern with wrong bounds (should be irrelevant for template check)
sp_non_matching_bounds = SchedulePattern((5, 15), pattern)
assert tp.matches(sp_non_matching_bounds)

Expand Down

0 comments on commit d08edb2

Please sign in to comment.