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

Avoid calling getEnclosingBlock #16455

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.

Fixes #16353

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 <[email protected]>
@hzongaro
Copy link
Member Author

Vijay @vijaysun-omr, may I ask you to review this change?

@vijaysun-omr
Copy link
Contributor

Jenkins test sanity all jdk8,jdk11,jdk19

@vijaysun-omr
Copy link
Contributor

Checks have passed. Merging.

@vijaysun-omr vijaysun-omr merged commit 108f918 into eclipse-openj9:master Dec 12, 2022
@knn-k
Copy link
Contributor

knn-k commented Dec 13, 2022

I think we need this fix in the v0.36 branch, too.

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.

SC_Softmx_JitAot_Linux hang
3 participants