Skip to content

Build with PGO needlesly generates JIT stencils twice (and prevents usage of prebuilt stencils) #141808

@hroncok

Description

@hroncok

Bug report

Bug description:

Based on https://discuss.python.org/t/building-the-jit-with-pre-built-stencils/91838/12 I open this issue to have an issue number to reference in an upcoming PR.

When a build with PGO optimizations is used, the JIT stencils are generated, then deleted, and then generated again. The generated JIT stencils are bit-by-bit identical to each other, so I believe there is no need to delete them mid-build. Not deleting them is also a prerequisite for Fedora to be able to use pre-built JIT stencils on platforms without the required LLVM version.

CPython versions tested on:

3.15, CPython main branch

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildThe build process and cross-buildtopic-JITtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions