Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LoopVectorizer Fails to Vectorize Loops with slt but Works with sgt Despite Logical Equivalence #122100

Open
RonDahan101 opened this issue Jan 8, 2025 · 0 comments

Comments

@RonDahan101
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants