Skip to content

[AArch64][SVE] can fold constant operands for svlsl #122083

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

Closed
k-arrows opened this issue Jan 8, 2025 · 2 comments
Closed

[AArch64][SVE] can fold constant operands for svlsl #122083

k-arrows opened this issue Jan 8, 2025 · 2 comments
Assignees
Labels
backend:AArch64 missed-optimization SVE ARM Scalable Vector Extensions

Comments

@k-arrows
Copy link

k-arrows commented Jan 8, 2025

Test case:
https://godbolt.org/z/Pz68oo9P4

#include "arm_sve.h"

svint64_t s64_x (svbool_t pg) {
    return svlsl_n_s64_x (pg, svdup_s64 (5), 2);
}

Reference:
https://gcc.gnu.org/pipermail/gcc-patches/2024-October/666313.html

@llvmbot
Copy link
Member

llvmbot commented Jan 8, 2025

@llvm/issue-subscribers-backend-aarch64

Author: None (k-arrows)

Test case: https://godbolt.org/z/Pz68oo9P4 ```cpp #include "arm_sve.h"

svint64_t s64_x (svbool_t pg) {
return svlsl_n_s64_x (pg, svdup_s64 (5), 2);
}


Reference:
https://gcc.gnu.org/pipermail/gcc-patches/2024-October/666313.html

</details>

@EugeneZelenko EugeneZelenko added SVE ARM Scalable Vector Extensions missed-optimization labels Jan 8, 2025
@paulwalker-arm paulwalker-arm self-assigned this May 8, 2025
@paulwalker-arm
Copy link
Collaborator

#134116 introduced general simplification support for SVE intrinsics that have an IR instruction equivalent. The PR only covered mul but has since been extended to cover the majority of binops.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend:AArch64 missed-optimization SVE ARM Scalable Vector Extensions
Projects
None yet
Development

No branches or pull requests

4 participants