]> git.ipfire.org Git - thirdparty/gcc.git/commit
mode-switching: Simplify recording of transparency
authorRichard Sandiford <richard.sandiford@arm.com>
Sat, 11 Nov 2023 17:28:56 +0000 (17:28 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Sat, 11 Nov 2023 17:28:56 +0000 (17:28 +0000)
commit335b55f4146c5ef9e3bf4bcb7e58e887c3150b02
tree0c60f2088c61c68cd89d52d97af62cf16b52cb88
parent5afd208beaef50bcc43b556d4c41d41656b06436
mode-switching: Simplify recording of transparency

For a given block, an entity is either transparent for
all modes or for none.  Each update to the transparency set
therefore used a loop like:

for (i = 0; i < no_mode; i++)
  clear_mode_bit (transp[bb->index], j, i);

This patch instead starts out with a bit-per-block bitmap
and updates the main bitmap at the end.

This isn't much of a simplification on its own.  The main
purpose is to simplify later patches.

gcc/
* mode-switching.cc (optimize_mode_switching): Initially
compute transparency in a bit-per-block bitmap.
gcc/mode-switching.cc