Skip to content

[compiler-rt][AArch64] NFCI: Simplify __arm_get_current_vg. #119210

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

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

sdesmalen-arm
Copy link
Collaborator

This patch simplifies the code in two different ways:

  • When SVE is available, return cntd directly to avoid the need for bitfield insert.
  • When SME is available, check the PSTATE.SM bit of SVCR directly rather than calling __arm_sme_state.

This patch simplifies the code in two different ways:
* When SVE is available, return `cntd` directly to avoid the need
  for bitfield insert.
* When SME is available, check the PSTATE.SM bit of `SVCR` directly
  rather than calling `__arm_sme_state`.
@sdesmalen-arm sdesmalen-arm merged commit 5a0d73b into llvm:main Dec 10, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants