Skip to content

SCEV unable to determine BTC: slt/sge equivalence #122100

@RonDahan101

Description

@RonDahan101

As the title states. I have a loop that vectorize with the condition

icmp slt i32 %inc, %dec

but doesn't with

icmp sgt i32 %dec, %inc

although they are logically the same.

Reproducer vectorization succeed:

https://compiler-explorer.com/z/MzaGzWeWa

Reproducer vectorization fails:

https://compiler-explorer.com/z/hPofjKK3G

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