Skip to content

Commit

Permalink
Fix initial buffer order.
Browse files Browse the repository at this point in the history
  • Loading branch information
PapyChacal committed Jul 27, 2023
1 parent a67394e commit 6de1971
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions devito/ir/ietxdsl/lowering.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ def match_and_rewrite(self, op: iet_ssa.For, rewriter: PatternRewriter, /):
]
rewriter.insert_op_before_matched_op(subindice_vals)

subindice_vals = list(reversed(subindice_vals))
subindice_vals.append(subindice_vals.pop(0))

rewriter.replace_matched_op([
cst1 := arith.Constant.from_int_and_width(1, builtin.IndexType()),
new_ub := arith.Addi(op.ub, cst1),
Expand Down

0 comments on commit 6de1971

Please sign in to comment.