Skip to content

Dramatic Compilation slow-down on higher Optimizaitons #14023

@llvmbot

Description

@llvmbot
Bugzilla Link 13651
Version unspecified
OS All
Attachments File that exhibits problem, Smaller Example File
Reporter LLVM Bugzilla Contributor
CC @d0k,@nico,@stoklund

Extended Description

The attached file contains a few function definitions followed by a main method with a single line of code duplicated 2500 times.

At optimization levels O0 and O1, the code compiles relatively quickly (~5s). However, at optimization levels O2 and O3, the compilation time jumps to over a minute.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclangClang issues not falling into any other category

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions