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

Split warm and cold blocks #19272

Merged
merged 1 commit into from
May 23, 2024

Conversation

gita-omr
Copy link
Contributor

@gita-omr gita-omr commented Apr 4, 2024

  • identify last warm instruction during instruction selection
  • the code is only enabled if -Xjit:splitWarmAndColdBlocks option is on

@gita-omr
Copy link
Contributor Author

gita-omr commented Apr 29, 2024

Addressed comments in the OMR PR.

@0xdaryl
Copy link
Contributor

0xdaryl commented May 16, 2024

Jenkins test sanity all jdk17

@0xdaryl 0xdaryl self-assigned this May 17, 2024
@@ -2166,6 +2170,25 @@ J9::CodeGenerator::doInstructionSelection()
if (doEvaluation)
self()->evaluate(node);

if (opCode == TR::BBEnd)
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this code need to be guarded with self()->comp()->getOption(TR_SplitWarmAndColdBlocks) too? It seems only useful for that optimization.

Copy link
Contributor Author

@gita-omr gita-omr May 21, 2024

Choose a reason for hiding this comment

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

isLastWarmBlock() is only true if the option is on. But I added the check to make the code more clear.

Copy link
Contributor

@dsouzai dsouzai left a comment

Choose a reason for hiding this comment

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

Minor change requested.

runtime/compiler/codegen/J9CodeGenerator.cpp Show resolved Hide resolved
- identify last warm instruction during instruction selection
- the code is only enabled if -Xjit:splitWarmAndColdBlocks option is on
@gita-omr
Copy link
Contributor Author

Addressed comments above.

Copy link
Contributor

@dsouzai dsouzai left a comment

Choose a reason for hiding this comment

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

LGTM

@0xdaryl
Copy link
Contributor

0xdaryl commented May 22, 2024

Jenkins test sanity all jdk17

@0xdaryl
Copy link
Contributor

0xdaryl commented May 22, 2024

Jenkins test sanity xlinux jdk17

@gita-omr
Copy link
Contributor Author

AIX build timed out. Linux build is waiting on an xlinux compile machine which are all offline.

@0xdaryl 0xdaryl merged commit 808ba6d into eclipse-openj9:master May 23, 2024
13 of 16 checks passed
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

3 participants