Skip to content

LoopUnroll introduces infinite loop with nested loops #37207

@arsenm

Description

@arsenm
Bugzilla Link 37859
Version trunk
OS All
Attachments Testcase, More reduced testcase
CC @hfinkel

Extended Description

In the attached testcase, there are two nested loops with constant trip counts. The exit isn't fully eliminated.

opt -loop-unroll -gvn shows a strange infinite loop is introduced instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions