Skip to content

[Handshake] Fix argument index tracking with multiple ext memref args#9978

Open
TopiLeppanen wants to merge 1 commit intollvm:mainfrom
TopiLeppanen:main
Open

[Handshake] Fix argument index tracking with multiple ext memref args#9978
TopiLeppanen wants to merge 1 commit intollvm:mainfrom
TopiLeppanen:main

Conversation

@TopiLeppanen
Copy link
Copy Markdown

Hi, I bumped into the issue #9807, and managed to fix it.

When lowerExtmemToHW processes a function with more than one external memref argument, each iteration inserts addedInPorts new block arguments and erases the original memref argument. Subsequent iterations weren't taking this into account.

… args

When `lowerExtmemToHW` processes a function with more than one external
memref argument, each iteration inserts `addedInPorts` new block arguments
and erases the original memref argument. Subsequent iterations need to take
this into account.

Fixes llvm#9807
Copy link
Copy Markdown
Contributor

@Dinistro Dinistro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know this code to well, so I would prefer if @mortbopet could review this.
Overall, this seems reasonable, though.

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.

2 participants