aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2023-04-19 11:24:00 +0200
committerRichard Biener <rguenther@suse.de>2023-04-24 09:24:49 +0200
commit28c06d0ed134d7d325da101e7e4230067cebeab3 (patch)
treea07e19e89281260cfec34545e48b4a5723b4d2ae /gcc
parentff8f95449350372b584cfcd28a7d9d71f52eea50 (diff)
downloadgcc-28c06d0ed134d7d325da101e7e4230067cebeab3.zip
gcc-28c06d0ed134d7d325da101e7e4230067cebeab3.tar.gz
gcc-28c06d0ed134d7d325da101e7e4230067cebeab3.tar.bz2
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cfgcleanup.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cfgcleanup.cc b/gcc/cfgcleanup.cc
index 78f59e9..5f1aa29 100644
--- a/gcc/cfgcleanup.cc
+++ b/gcc/cfgcleanup.cc
@@ -1861,9 +1861,9 @@ outgoing_edges_match (int mode, basic_block bb1, basic_block bb2)
/* fallthru edges must be forwarded to the same destination. */
if (fallthru1)
{
- basic_block d1 = (forwarder_block_p (fallthru1->dest)
+ basic_block d1 = (FORWARDER_BLOCK_P (fallthru1->dest)
? single_succ (fallthru1->dest): fallthru1->dest);
- basic_block d2 = (forwarder_block_p (fallthru2->dest)
+ basic_block d2 = (FORWARDER_BLOCK_P (fallthru2->dest)
? single_succ (fallthru2->dest): fallthru2->dest);
if (d1 != d2)