]> git.ipfire.org Git - thirdparty/gcc.git/commit
Avoid repeated forwarder_block_p calls in CFG cleanup
authorRichard Biener <rguenther@suse.de>
Wed, 19 Apr 2023 09:24:00 +0000 (11:24 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 24 Apr 2023 07:24:49 +0000 (09:24 +0200)
commit28c06d0ed134d7d325da101e7e4230067cebeab3
treea07e19e89281260cfec34545e48b4a5723b4d2ae
parentff8f95449350372b584cfcd28a7d9d71f52eea50
Avoid repeated forwarder_block_p calls in CFG cleanup

CFG cleanup maintains BB_FORWARDER_BLOCK and uses FORWARDER_BLOCK_P
to check that apart from two places which use forwarder_block_p
in outgoing_edges_match alongside many BB_FORWARDER_BLOCK uses.

The following adjusts those.

* cfgcleanup.cc (outgoing_edges_match): Use FORWARDER_BLOCK_P.
gcc/cfgcleanup.cc