[AArch64][SME] Remove get.pstatesm intrinsic.
authorSander de Smalen <sander.desmalen@arm.com>
Thu, 20 Oct 2022 11:17:34 +0000 (12:17 +0100)
committerSander de Smalen <sander.desmalen@arm.com>
Thu, 20 Oct 2022 12:25:32 +0000 (12:25 +0000)
commit5e5baf917b95697dbfe0afe1a5c8298c547bc5ad
treeb95e5e694f8121511d794dec21d7c9d8011640d5
parent5fbf067552d781552fca069ae052e4058978d9eb
[AArch64][SME] Remove get.pstatesm intrinsic.

This intrinsic can be removed in favour of using a call to
__arm_sme_state() directly and testing the LSB of X0.

In IR that would look like:

   %pstate = call aarch64_sme_preservemost_from_x2 {i64, i64} @__arm_sme_state()
   %pstate.x0 = extractvalue {i64, i64} %pstate, 0
   %pstate.sm = and i64 %pstate.x0, 1
llvm/include/llvm/IR/IntrinsicsAArch64.td
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/test/CodeGen/AArch64/sme-get-pstatesm.ll [deleted file]