]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Improve efficiency of copying bit-packed slices
authorpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 18 Sep 2019 08:32:51 +0000 (08:32 +0000)
committerpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 18 Sep 2019 08:32:51 +0000 (08:32 +0000)
commit61aec20f449e64a1bae071cdaa2343189a6154b1
tree6ac47113e2f600748107d7998842aa37d6447279
parent0a8c228c91a8eec579d662ecf3fbd22189681d03
[Ada] Improve efficiency of copying bit-packed slices

This patch substantially improves the efficiency of copying large slices
of bit-packed arrays, by copying 32 bits at a time instead of 1 at a
time.

2019-09-18  Bob Duff  <duff@adacore.com>

gcc/ada/

* exp_ch5.adb (Expand_Assign_Array_Loop_Or_Bitfield): The call
to Copy_Bitfield is now enabled.
(Expand_Assign_Array_Bitfield): Multiply 'Length times
'Component_Size "by hand" instead of using 'Size.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@275855 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/ChangeLog
gcc/ada/exp_ch5.adb