]> git.ipfire.org Git - thirdparty/gcc.git/commit
LoongArch: Slightly simplify loongarch_block_move_straight
authorXi Ruoyao <xry111@xry111.site>
Thu, 7 Sep 2023 16:29:57 +0000 (00:29 +0800)
committerXi Ruoyao <xry111@xry111.site>
Sat, 9 Sep 2023 06:32:56 +0000 (14:32 +0800)
commitc0bb7a6f39e58717d34c9459586c0b1d5db16d89
treeeba381eda395a84f083c6d6080a7442e110e06d7
parent35adc54b55aa199f17e2c84e382792e424b6171e
LoongArch: Slightly simplify loongarch_block_move_straight

gcc/ChangeLog:

* config/loongarch/loongarch.cc (loongarch_block_move_straight):
Check precondition (delta must be a power of 2) and use
popcount_hwi instead of a homebrew loop.
gcc/config/loongarch/loongarch.cc