[aarch64] Use force_reg instead of copy_to_mode_reg.
commite306501ff556647dc31915a63ce95a5496f08f97
authorPrathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
Fri, 21 Apr 2023 15:47:33 +0000 (21 21:17 +0530)
committerPrathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
Fri, 21 Apr 2023 15:47:33 +0000 (21 21:17 +0530)
tree9ed965bfa220e4ee79dce97419e94fe5b6e0da20
parent18c9427b66fc0df663ae30ba721ef4e590902e30
[aarch64] Use force_reg instead of copy_to_mode_reg.

Use force_reg instead of copy_to_mode_reg in aarch64_simd_dup_constant
and aarch64_expand_vector_init to avoid creating pseudo if original value
is already in a register.

gcc/ChangeLog:
* config/aarch64/aarch64.cc (aarch64_simd_dup_constant): Use
force_reg instead of copy_to_mode_reg.
(aarch64_expand_vector_init): Likewise.
gcc/config/aarch64/aarch64.cc