Skip to content

Commit

Permalink
dialects: (dmp) (minor) Fix codegen for memcpy, now uses correct indi…
Browse files Browse the repository at this point in the history
…ces (#1131)
  • Loading branch information
AntonLydike committed Jun 14, 2023
1 parent 3da2ef7 commit c41f786
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions xdsl/transforms/experimental/dmp/stencil_global_to_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,8 @@ def loop_body(args: tuple[BlockArgument, ...]):

# x = i + x0
# y = i + y0
# TODO: proper fix this (probs in HaloDimsHelper)
x_ = arith.Addi(i, x0)
x = arith.Addi(x_, cst1)
y_ = arith.Addi(j, y0)
y = arith.Addi(y_, cst1)
x = arith.Addi(i, x0)
y = arith.Addi(j, y0)

x.result.name_hint = "x"
y.result.name_hint = "y"
Expand Down

0 comments on commit c41f786

Please sign in to comment.