aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface
diff options
context:
space:
mode:
authorBob Duff <duff@adacore.com>2022-04-07 13:23:20 -0400
committerPierre-Marie de Rodat <derodat@adacore.com>2022-05-19 14:05:29 +0000
commit88f7b07de7579251f5134b65dad406fdfda3d057 (patch)
treef1c8accae93142fd6cbcf5b10b07e29106b9dd06 /gcc/ada/gcc-interface
parent5cc07f401a69f14638cfd37b27401e4e0fd8fc65 (diff)
downloadgcc-88f7b07de7579251f5134b65dad406fdfda3d057.zip
gcc-88f7b07de7579251f5134b65dad406fdfda3d057.tar.gz
gcc-88f7b07de7579251f5134b65dad406fdfda3d057.tar.bz2
[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.
Diffstat (limited to 'gcc/ada/gcc-interface')
0 files changed, 0 insertions, 0 deletions