-
Notifications
You must be signed in to change notification settings - Fork 737
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
Adjust inliner use of profiled fanin data #21001
Conversation
621c1a8
to
6f4ef00
Compare
jenkins test sanity all jdk21 |
zlinux failed one test j9vmtest_4. 50x grinder here: https://openj9-jenkins.osuosl.org/job/Grinder/4076/ passed |
The inliner uses some heuristics that tries to avoid the inlining of large callees that have already been compiled. What constitutes a large method is determined in a routine called `isLargeCompileMethod()`. If the callee is in a large frequency block, then we always want to inline that callee. If the callee is in a medium or low frequency block, then we look at callee size and at the fanin info (how many methods call this callee). For low frequency blocks we are more conservative with inlining than with medium frequency blocks. The existing code contained a bug in that, if there was no fanin info for a callee in a low/medium frequency block, we would always inline the callee, regardless of its size. This commit fixes this problem and considers the size of the callee first and then the fanin info. If there is no fanin info, then the size of the callee is the only criterion. Signed-off-by: Marius Pirvu <[email protected]>
6f4ef00
to
c58b321
Compare
Rebased to incorporate the latest fanin change from #21004 |
jenkins test sanity all jdk21 |
All tests have passed, except on AIX. On AIX one of the 3 testlists has experienced an infra problem which I have seen before:
It's already tracked here: #19962 |
Attn @vijaysun-omr |
I agree with the logic behind this change. Test have also passed. Merging. |
The inliner uses some heuristics that tries to avoid the inlining of large callees that have already been compiled. What constitutes a large method is determined in a routine called
isLargeCompileMethod()
.If the callee is in a large frequency block, then we always want to inline that callee.
If the callee is in a medium or low frequency block, then we look at callee size and at the fanin info (how many methods call this callee). For low frequency blocks we are more conservative with inlining than with medium frequency blocks. The existing code contained a bug in that, if there was no fanin info for a callee in a low frequency block, we would always inline the callee, regardless of its size.
This commit fixes this problem and considers the size of the callee first and then the fanin info. If there is no fanin info, then the size of the callee is the only criterion.