Skip to content

Commit

Permalink
default val on function
Browse files Browse the repository at this point in the history
  • Loading branch information
n-io committed Dec 20, 2024
1 parent 1ffe566 commit 0e461a8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions xdsl/transforms/memref_to_dsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,7 @@ def match_and_rewrite(self, op: memref.SubviewOp, rewriter: PatternRewriter, /):
# 1d subview onto a nd memref
sizes = op.static_sizes.get_values()
counter_sizes = collections.Counter(sizes)
if 1 in counter_sizes:
counter_sizes.pop(1)
counter_sizes.pop(1, None)
assert (
len(counter_sizes) == 1
), "1d access into nd memref must specify one size > 1"
Expand Down

0 comments on commit 0e461a8

Please sign in to comment.