From 15ed5155813852d3c344c0c23a05639c8ad5c186 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Tue, 14 Jan 2025 17:28:43 -0600 Subject: [PATCH 1/2] Enable `-hugify` for BOLT --- configure | 2 +- configure.ac | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 From 8be101a975d76d7547e1f409b3f0de079bd710da Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Tue, 14 Jan 2025 17:32:51 -0600 Subject: [PATCH 2/2] NEWS --- .../next/Build/2025-01-14-17-32-43.gh-issue-128849.W4wCaJ.rst | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 Misc/NEWS.d/next/Build/2025-01-14-17-32-43.gh-issue-128849.W4wCaJ.rst 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.