Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[0.36.0] Avoid calling getEnclosingBlock #16465

Conversation

hzongaro
Copy link
Member

While performing analysis for flush elimination, LocalFlushElimination::examineNode called TR::TreeTop::getEnclosingBlock on the current TR::TreeTop. As that method walks through the linked list chaining together the TR::TreeTops to find the corresponding BBStart, calling it in nested loops becomes very expensive when large blocks are encountered.

Fixed this by passing the current block as an argument to LocalFlushElimination::examineNode.

Merges changes from pull request #16455 to v0.36.0-release branch.

While performing analysis for flush elimination,
LocalFlushElimination::examineNode called TR::TreeTop::getEnclosingBlock
on the current TR::TreeTop.  As that method walks through the linked
list chaining together the TR::TreeTops to find the corresponding
BBStart, calling it in nested loops becomes very expensive when large
blocks are encountered.

Fixed this by passing the current block as an argument to
LocalFlushElimination::examineNode

Signed-off-by:  Henry Zongaro <zongaro@ca.ibm.com>
@pshipton pshipton merged commit 815a89f into eclipse-openj9:v0.36.0-release Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants