Skip to content

Commit

Permalink
Merge pull request #20908 from midronij/openxl-jump-table
Browse files Browse the repository at this point in the history
Set min jump table entries when compiling interpreter
  • Loading branch information
pshipton authored Jan 10, 2025
2 parents 8b647bc + deb6cea commit 610e81e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion runtime/vm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ set(interp_new_flags) # flags to be added when compiling the interpreter
# Note: the uma makefiles also specify this for pLinux, however it appears we no longer
# support building the interpreter with xlc on linux
if(OMR_ARCH_POWER AND OMR_OS_AIX)
if(OMR_TOOLCONFIG STREQUAL "xlc")
if(CMAKE_C_COMPILER_IS_OPENXL)
# Fixes a performance defect related to PPC's handling of branch tables/indirect branch prediction
list(APPEND interp_new_flags "-mllvm" "-ppc-min-jump-table-entries=512")
elseif(OMR_TOOLCONFIG STREQUAL "xlc")
list(APPEND interp_flags_to_remove "-O3" "-g")
list(APPEND interp_new_flags "-O2" "-qdebug=lincomm:ptranl:tfbagg")
# Note: the following code is specified in the UMA builds, however,
Expand Down

0 comments on commit 610e81e

Please sign in to comment.