Skip to content

Commit 6f0b7cb

Browse files
committed
Add pass to unroll, unsure why this works
1 parent 7674609 commit 6f0b7cb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bloqade/rewrite/passes/aggressive_unroll.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ def __post_init__(self):
7171
def unsafe_run(self, mt: Method) -> RewriteResult:
7272
result = RewriteResult()
7373
result = self.fold.unsafe_run(mt).join(result)
74+
result = Walk(ilist.rewrite.Unroll()).rewrite(mt.code).join(result) # BUG: cduck's use case fails without this line
7475
result = self.scf_unroll.unsafe_run(mt).join(result)
7576
self.typeinfer.unsafe_run(
7677
mt

0 commit comments

Comments
 (0)