]> git.ipfire.org Git - thirdparty/gcc.git/commit
aarch64: Tidy aarch64_split_compare_and_swap
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 19 Sep 2019 14:36:33 +0000 (14:36 +0000)
committerRichard Henderson <rth@gcc.gnu.org>
Thu, 19 Sep 2019 14:36:33 +0000 (07:36 -0700)
commitb7e560deb37e38fb224a0cf108e15df4a717167a
tree7f44a7e5a50a5b2a1d2d39a01338dd1aa2ba645f
parent4a2095ebace8534038ce2adf4ae94bfc854066c4
aarch64: Tidy aarch64_split_compare_and_swap

With aarch64_track_speculation, we had extra code to do exactly what the
!strong_zero_p path already did.  The rest is reducing code duplication.

* config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
strong_zero_p for aarch64_track_speculation; unify some code paths;
use aarch64_gen_compare_reg instead of open-coding.

From-SVN: r275966
gcc/ChangeLog
gcc/config/aarch64/aarch64.c