Invalidate non-local summation candidates across calls - #8118
Merged
Conversation
Prevent summation reduction optimization when non-local symbols (static, shadow, or method metadata) may be used or killed by call nodes in the loop. This ensures intermediate values are not incorrectly optimized away when they may be observed by other calls. Fixes: eclipse-openj9/openj9#23277 Signed-off-by: Annabelle Huo <a7eh1ogh@gmail.com>
a7ehuo
force-pushed
the
fix-summation-reduction
branch
from
February 4, 2026 22:17
edc9a0e to
d8dcf47
Compare
Contributor
Author
|
@hzongaro May I ask you to review this change? Thank you! |
hzongaro
approved these changes
Feb 6, 2026
hzongaro
left a comment
Contributor
There was a problem hiding this comment.
I think this looks correct. Thanks!
Contributor
|
Jenkins build all |
Contributor
|
Jenkins build win |
Contributor
Author
|
The current three failures look to be either infrastructure related or happen in other PR build test too: linux_riscv64. It also fails in https://ci.eclipse.org/omr/job/PullRequest-linux_riscv64/570/ ppc-64_le. It also fails in https://ci.eclipse.org/omr/job/PullRequest-linux_ppc-64_le_gcc/5025/ |
Contributor
|
@a7ehuo, thank you for checking the test results. All failures are due to infrastructure issues or known problems. Merging. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prevent summation reduction optimization when non-local symbols (static, shadow, or method metadata) may be used or killed by call nodes in the loop. This ensures intermediate values are not incorrectly optimized away when they may be observed by other calls.
Fixes: eclipse-openj9/openj9#23277