Commit 765379d
committed
[compiler-rt][AArch64] NFCI: Simplify __arm_get_current_vg.
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`.1 parent 669f704 commit 765379d
1 file changed
+10
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
188 | 190 | | |
189 | 191 | | |
190 | 192 | | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | 193 | | |
198 | 194 | | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
203 | 199 | | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
210 | 203 | | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | 204 | | |
217 | | - | |
| 205 | + | |
218 | 206 | | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | 207 | | |
225 | 208 | | |
226 | 209 | | |
| |||
0 commit comments