Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jiahanxie353
Copy link
Contributor

This patch addresses the issue with IRMapping when unrolling the parallel loop during the SCFToCalyx pass. If there are region-based operations, such as scf.for inside scf.parallel, the block arguments weren't cloned correctly because if we keep reusing the old IRMapping, the IRMapping will already have the entries from previous iterations that overshadows new ones. To fix it, we need to re-initialize the IRMapping every iteration.

@jiahanxie353
Copy link
Contributor Author

Going to merge it since the CI has passed and this patch does not introduce significant change. cc @cgyurgyik @rachitnigam @andrewb1999

@jiahanxie353 jiahanxie353 merged commit 504f331 into llvm:main Jan 13, 2025
4 checks passed
@jiahanxie353 jiahanxie353 deleted the scf-par-for branch January 13, 2025 11:26
TaoBi22 pushed a commit to TaoBi22/circt that referenced this pull request Jul 17, 2025
…ion to map block arguments in region-based operations (llvm#8075)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant