]> gcc.gnu.org Git - gcc.git/commit
[Ada] Improve optimization of "=" on bit-packed arrays
authorBob Duff <duff@adacore.com>
Thu, 7 Apr 2022 17:23:20 +0000 (13:23 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 19 May 2022 14:05:29 +0000 (14:05 +0000)
commit88f7b07de7579251f5134b65dad406fdfda3d057
treef1c8accae93142fd6cbcf5b10b07e29106b9dd06
parent5cc07f401a69f14638cfd37b27401e4e0fd8fc65
[Ada] Improve optimization of "=" on bit-packed arrays

This patch fixes a performance regression, introduced by a previous bug
fix.  That fix had the unintended side effect of removing the
optimization in cases where the two operands are of two different
compiler-generated modular types.

gcc/ada/

* exp_pakd.adb (Expand_Packed_Eq): Replace the check for *same*
modular type, with a check for any modular type, and assert that
the two types have the same modulus and so on.
* exp_pakd.ads: Minor comment improvements.
gcc/ada/exp_pakd.adb
gcc/ada/exp_pakd.ads
This page took 0.061285 seconds and 5 git commands to generate.