Skip to content

"Trip Count for Loop [...] Changed! Old: 6 New: 0 Delta: 6" with simple-loop-unswitch and -verify-scev #108545

@mikaelholmen

Description

@mikaelholmen

llvm commit: 6568062
Reproduce with opt -S -passes="function(print<scalar-evolution>,loop-mssa(simple-loop-unswitch))" -verify-scev bbi-99125_2.ll
Result:

Trip Count for Loop at depth 1 containing: %for.cond<header><exiting>,%for.body,%for.cond25.i<exiting>,%func_32.exit.i,%func_7.exit<latch>
    Loop at depth 2 containing: %for.cond25.i<header><exiting>,%func_32.exit.i<latch><exiting>
 Changed!
Old: 6
New: 0
Delta: 6

(Thanks to @nikic for reducing the testcase in
#106075 (comment) )

bbi-99125_2.ll.gz

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