Skip to content

Open XL workaround: lower optimization level for codertinit.cpp - #19899

Merged
keithc-ca merged 1 commit into
eclipse-openj9:masterfrom
Deigue:openxl-optimize-wkrd
Feb 25, 2025
Merged

Open XL workaround: lower optimization level for codertinit.cpp#19899
keithc-ca merged 1 commit into
eclipse-openj9:masterfrom
Deigue:openxl-optimize-wkrd

Conversation

@Deigue

@Deigue Deigue commented Jul 22, 2024

Copy link
Copy Markdown
Contributor

Open XL compilation causes "expected relocatable expression" error when attempting to compile codertinit.cpp with the O3 optimization level. It was recommended to lower the optimization level for this particular file and an issue has been opened internally to track fixing this issue in context of Open XL.

Comment thread runtime/compiler/CMakeLists.txt Outdated
@Deigue
Deigue force-pushed the openxl-optimize-wkrd branch 2 times, most recently from 98bc3df to c87102c Compare October 7, 2024 15:07
@Deigue

Deigue commented Oct 8, 2024

Copy link
Copy Markdown
Contributor Author

Rebased, passing with java 21 and java 8, ready to review/merge @keithc-ca

@keithc-ca keithc-ca changed the title Open XL workaround: lower optimization lvl for codertinit.cpp Open XL workaround: lower optimization level for codertinit.cpp Oct 9, 2024
@Deigue
Deigue force-pushed the openxl-optimize-wkrd branch from c87102c to d8dd03a Compare January 20, 2025 18:36
@Deigue
Deigue force-pushed the openxl-optimize-wkrd branch 3 times, most recently from 9e53e33 to de045e4 Compare February 19, 2025 16:24
@Deigue
Deigue requested a review from keithc-ca February 19, 2025 17:35
Comment thread runtime/compiler/CMakeLists.txt Outdated
if(OMR_OS_ZOS)
# Workaround a compile problem on z/OS by appending "-O" (to override "-O3").
set_property(SOURCE "optimizer/VectorAPIExpansion.cpp" APPEND PROPERTY COMPILE_FLAGS "-O")
if(CMAKE_C_COMPILER_IS_OPENXL)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why doesn't this use OMR_TOOLCONFIG (like in #19880)?

	if(OMR_TOOLCONFIG STREQUAL "openxl")

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Should be using OMR_TOOLCONFIG, I had forgot the one I was using across PRs post holidays. I made the recommended changes.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I see line 287 was changed, but not this line.

@Deigue
Deigue force-pushed the openxl-optimize-wkrd branch from de045e4 to 682de69 Compare February 24, 2025 19:33
@Deigue
Deigue requested a review from keithc-ca February 24, 2025 19:35

@keithc-ca keithc-ca left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please also improve the commit message: lines in the body should be no more than 72 characters long; and spell "level" in full.

Comment thread runtime/compiler/CMakeLists.txt Outdated
if(OMR_OS_ZOS)
# Workaround a compile problem on z/OS by appending "-O" (to override "-O3").
set_property(SOURCE "optimizer/VectorAPIExpansion.cpp" APPEND PROPERTY COMPILE_FLAGS "-O")
if(CMAKE_C_COMPILER_IS_OPENXL)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I see line 287 was changed, but not this line.

@Deigue
Deigue force-pushed the openxl-optimize-wkrd branch from 682de69 to 8e0e531 Compare February 25, 2025 16:27
Open XL compilation causes "expected relocatable expression" error
when attempting to compile codertinit.cpp with the O3 optimization
level. It was recommended to lower the optimization level for this
particular file and an issue has been opened internally to track
fixing this issue in context of Open XL.

Signed-off-by: Gaurav Chaudhari <gaurav.chaudhari@ibm.com>
@Deigue
Deigue force-pushed the openxl-optimize-wkrd branch from 8e0e531 to 2628e36 Compare February 25, 2025 16:27
@Deigue

Deigue commented Feb 25, 2025

Copy link
Copy Markdown
Contributor Author

Thanks for the feedback, I have addressed the comments/missing changes.

@Deigue
Deigue requested a review from keithc-ca February 25, 2025 16:28
@keithc-ca

Copy link
Copy Markdown
Contributor

Jenkins compile aix jdk21

@keithc-ca
keithc-ca merged commit b17604c into eclipse-openj9:master Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants