Commit 1e74ae3
committed
LoongArch: Cleanup __builtin_constant_p() checking for cpu_has_*
In the current configuration, cpu_has_lsx and cpu_has_lasx cannot be
constants. So cleanup the __builtin_constant_p() checking to reduce the
complexity.
Reviewed-by: WANG Xuerui <git@xen0n.name>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>1 parent 4eece7e commit 1e74ae3
1 file changed
Lines changed: 4 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
| 221 | + | |
| 222 | + | |
230 | 223 | | |
231 | 224 | | |
232 | 225 | | |
| |||
294 | 287 | | |
295 | 288 | | |
296 | 289 | | |
297 | | - | |
| 290 | + | |
298 | 291 | | |
299 | 292 | | |
300 | 293 | | |
301 | 294 | | |
302 | 295 | | |
303 | 296 | | |
304 | 297 | | |
305 | | - | |
| 298 | + | |
306 | 299 | | |
307 | 300 | | |
308 | 301 | | |
| |||
0 commit comments