Skip to content

UnrechableBlocksOptimizer has bad performance #90717

Description

@Youssef1313

Description

image

image

It looks like there are repeated called to FoldedInstructions.IndexOf where CPU spends most of its time in?

idx = FoldedInstructions.IndexOf (instruction);

It might be more efficient to build a dictionary that maps instruction to index and use that instead of IndexOf?

Reproduction Steps

Expected behavior

Actual behavior

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-Tools-ILLink.NET linker development as well as trimming analyzers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions