Skip to content

Use profile information to find best codegen strategy for switch statements. #98519

Open
@hiraditya

Description

@hiraditya

The codegen of switch statements have different strategies that can affect performance and code size e.g., jump-table, split jump-table, binary-tree etc. Currently there are hard coded thresholds which may not be suitable for all the cases in a large codebase.

Based on the discussion in #98391 using profile-information to make such decisions can help with better codegen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    PGOProfile Guided Optimizations

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions