]> git.ipfire.org Git - thirdparty/gcc.git/commit
AArch64: Remove redundant check in aarch64_simd_mov
authorWilco Dijkstra <wilco.dijkstra@arm.com>
Thu, 17 Oct 2024 14:33:44 +0000 (14:33 +0000)
committerWilco Dijkstra <wilco.dijkstra@arm.com>
Wed, 23 Oct 2024 13:20:01 +0000 (13:20 +0000)
commit2ac01a4efceacb9f2f9433db636545885296da0a
treef54acc153542052c61de6952a85a348256beab3f
parent7c7c895c2f34d2a5c0cd2139c5e76c13c6c030c9
AArch64: Remove redundant check in aarch64_simd_mov

The split condition in aarch64_simd_mov uses aarch64_simd_special_constant_p.
While doing the split, it checks the mode before calling
aarch64_maybe_generate_simd_constant.  This risky since it may result in
unexpectedly calling aarch64_split_simd_move instead of
aarch64_maybe_generate_simd_constant.  Since the mode is already checked,
remove the spurious explicit mode check.

gcc/ChangeLog:

* config/aarch64/aarch64-simd.md (aarch64_simd_mov<VQMOV:mode>):
Remove redundant mode check.
gcc/config/aarch64/aarch64-simd.md