Skip to content

Conversation

spaits
Copy link
Contributor

@spaits spaits commented Sep 28, 2025

Inspired by the conversation of @nikic and @dtcxzyw in PR #161020 .
TODO:

  • verify using Alive2
  • compare to the version that uses Splat's type instead of constan i64

ret i32 %4
}

define i64 @reduce_add_splat_to_mul_vscale_4xi64(i64 %0) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alive2 doesn't seem to like these tests: https://alive2.llvm.org/ce/z/W6Tueq .
Usually when I do a syntax or semantic error it gives error code 255 and writes the compile error. But in this case it just gives error code 1 and no output.

The function signatures match. If I remove the body of the src it gives output. It says that it doesn't know the semantics of @llvm.vscale.i64.

@spaits spaits changed the title Extend vector.reduce.add and splat transform to scalable vectors [InstCombine] Extend vector.reduce.add and splat transform to scalable vectors Sep 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants