diff --git a/Misc/NEWS.d/next/Build/2025-01-14-17-32-43.gh-issue-128849.W4wCaJ.rst b/Misc/NEWS.d/next/Build/2025-01-14-17-32-43.gh-issue-128849.W4wCaJ.rst new file mode 100644 index 00000000000000..f5e97827eb4881 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2025-01-14-17-32-43.gh-issue-128849.W4wCaJ.rst @@ -0,0 +1,2 @@ +Enable loading hot code into 2MB pages (hugify) when BOLT optimizations are +enabled. diff --git a/configure b/configure index 70581e11b60682..76787a24ef4c26 100755 --- a/configure +++ b/configure @@ -9429,7 +9429,7 @@ printf "%s\n" "$BOLT_INSTRUMENT_FLAGS" >&6; } printf %s "checking BOLT_APPLY_FLAGS... " >&6; } if test -z "${BOLT_APPLY_FLAGS}" then - BOLT_APPLY_FLAGS=" ${BOLT_COMMON_FLAGS} -reorder-blocks=ext-tsp -reorder-functions=cdsort -split-functions -icf=1 -inline-all -split-eh -reorder-functions-use-hot-size -peepholes=none -jump-tables=aggressive -inline-ap -indirect-call-promotion=all -dyno-stats -use-gnu-stack -frame-opt=hot " + BOLT_APPLY_FLAGS=" ${BOLT_COMMON_FLAGS} -reorder-blocks=ext-tsp -reorder-functions=cdsort -split-functions -icf=1 -inline-all -split-eh -reorder-functions-use-hot-size -peepholes=none -jump-tables=aggressive -inline-ap -indirect-call-promotion=all -dyno-stats -use-gnu-stack -frame-opt=hot -hugify " fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BOLT_APPLY_FLAGS" >&5 diff --git a/configure.ac b/configure.ac index d7c3920d049d67..c9e4a6e364d124 100644 --- a/configure.ac +++ b/configure.ac @@ -2229,6 +2229,7 @@ then -dyno-stats -use-gnu-stack -frame-opt=hot + -hugify ")] ) fi