Hi Andy,

> On 3 Nov 2026, at 9:42 am, Andi Kleen <[email protected]> wrote:
> 
>> Make autoprofiledbootstrap follow PGO's profile, train, and feedback
>> flow.  Stageautoprofile builds a debuggable compiler, which builds
>> stageautotrain under perf.  Stageautofeedback then rebuilds GCC with
>> the generated AutoFDO profiles.
>> 
>> Build stageautotrain with LTO to train lto1.  Match profiles by build
>> ID and enable partial training because the build does not exercise all
>> compiler paths.
> 
> Thanks for working on this. What are the perf numbers of the compiler on large
> files vs instrumented PGO now? Did we recover?

Here is few compile-time test over normal bootstrap at -O2 (+ means improvement 
and - means regression). Built with PGO bootstrapped and AutoFDO bootstrapped 
compiler against baseline.
Some of the .ii files are from gcc itself and others are from femflow.


• insn-output.ii: PGO +5.12%, AutoFDO without series −3.66%, AutoFDO with 
series +0.37%
• fold-const.ii: PGO +0.57%, AutoFDO without series −1.65%, AutoFDO with series 
+1.53%
• tree.ii: PGO +1.56%, AutoFDO without series −1.90%, AutoFDO with series +1.50%
• insn-recog-1.ii: PGO −1.11%, AutoFDO without series −2.73%, AutoFDO with 
series +1.77%
• gimple-match-1.ii: PGO +0.63%, AutoFDO without series −1.15%, AutoFDO with 
series +1.56%
• cp-parser.ii: PGO +0.97%, AutoFDO without series −1.73%, AutoFDO with series 
+1.41%
• cp-pt.ii: PGO +1.52%, AutoFDO without series 0.00%, AutoFDO with series +2.53%
• grid_tools.ii: PGO +0.79%, AutoFDO without series −2.91%, AutoFDO with series 
−0.05%
• matrix_free.ii: PGO +0.66%, AutoFDO without series −2.75%, AutoFDO with 
series +0.41%
• evaluation_template_factory_inst6.ii: PGO +1.03%, AutoFDO without series 
−3.95%, AutoFDO with series +0.48%
• evaluation_template_factory_inst5.ii: PGO +1.15%, AutoFDO without series 
−4.02%, AutoFDO with series +0.51%
• evaluation_template_face_factory_inst6.ii: PGO +0.42%, AutoFDO without series 
−3.77%, AutoFDO with series +0.42%


Thanks,
Kugan

Reply via email to