Skip to content

Conversation

@weinbe58
Copy link
Member

@weinbe58 weinbe58 commented Jan 8, 2026

In this PR I extend the current unroll rule in scf to unroll the for loop when the container is not fully constant.

The implementation is very simple by just extending the logic to insert a GetItem for every iteration of the loop instead of inserting the constant value.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 8, 2026

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
11758 10487 89% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
src/kirin/dialects/scf/unroll.py 85% 🟢
TOTAL 85% 🟢

updated for commit: 70ea1b4 by action🐍

@github-actions
Copy link
Contributor

github-actions bot commented Jan 8, 2026

PR Preview Action v1.8.0

🚀 View preview at
https://QuEraComputing.github.io/kirin/pr-preview/pr-596/

Built to branch gh-pages at 2026-01-08 14:53 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@codecov
Copy link

codecov bot commented Jan 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@weinbe58 weinbe58 requested a review from Roger-luo January 8, 2026 15:21
@weinbe58 weinbe58 added C-enhancement Category: This is an enhancement of an existing feature P-Low Priority: low priority issues and tasks. labels Jan 8, 2026
@weinbe58 weinbe58 mentioned this pull request Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-enhancement Category: This is an enhancement of an existing feature P-Low Priority: low priority issues and tasks.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants