[AArch64][SME] Fix inlining bug introduced in #78703 (#79994)
authorSander de Smalen <sander.desmalen@arm.com>
Wed, 31 Jan 2024 11:38:29 +0000 (11:38 +0000)
committerTom Stellard <tstellar@redhat.com>
Thu, 1 Feb 2024 06:29:42 +0000 (22:29 -0800)
commite502141a420a65a4ea534274e07a023a3801fa76
treee3d9e935e2a2c9471bbe6eb582f533faaee3a842
parent27139bceb27d0b551e6e9d18fb91c703cbc3d7b8
[AArch64][SME] Fix inlining bug introduced in #78703 (#79994)

Calling a `__arm_locally_streaming` function from a function that
is not a streaming-SVE function would lead to incorrect inlining.

The issue didn't surface because the tests were not testing what
they were supposed to test.

(cherry picked from commit 3abf55a68caefd45042c27b73a658c638afbbb8b)
llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
llvm/test/Transforms/Inline/AArch64/sme-pstatesm-attrs.ll