public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] bb-reorder: Remove a misfiring micro-optimization (PR96475)
@ 2020-08-07  2:17 Segher Boessenkool
  0 siblings, 0 replies; 9+ messages in thread
From: Segher Boessenkool @ 2020-08-07  2:17 UTC (permalink / raw)
  To: gcc-patches; +Cc: Segher Boessenkool

When the compgotos pass copies the tail of blocks ending in an indirect
jump, there is a micro-optimization to not copy the last one, since the
original block will then just be deleted.  This does not work properly
if cleanup_cfg does not merge all pairs of blocks we expect it to.

2020-08-07  Segher Boessenkool  <segher@kernel.crashing.org>

	PR rtl-optimization/96475
	* bb-reorder.c (maybe_duplicate_computed_goto): Remove single_pred_p
	micro-optimization.
---
 gcc/bb-reorder.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/gcc/bb-reorder.c b/gcc/bb-reorder.c
index c635010..f7a7de8 100644
--- a/gcc/bb-reorder.c
+++ b/gcc/bb-reorder.c
@@ -2680,9 +2680,6 @@ make_pass_reorder_blocks (gcc::context *ctxt)
 static bool
 maybe_duplicate_computed_goto (basic_block bb, int max_size)
 {
-  if (single_pred_p (bb))
-    return false;
-
   /* Make sure that the block is small enough.  */
   rtx_insn *insn;
   FOR_BB_INSNS (bb, insn)
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-09-08 17:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <d78cbb4e672ef835e6432822c210a54eb0d2cea2.1596766524.git.segher@kern <ed130964e46e1941122dd75e381cca907ec28bd5.1596833936.git.segher@kernel.crashing.org>
2020-08-07 21:51 ` [PATCH] bb-reorder: Remove a misfiring micro-optimization (PR96475) Segher Boessenkool
2020-08-17 23:27   ` Segher Boessenkool
2020-08-19 12:10   ` Richard Sandiford
2020-08-19 17:40     ` Segher Boessenkool
2020-08-19 18:18       ` Richard Sandiford
2020-08-19 23:11         ` Segher Boessenkool
2020-08-25 20:39   ` Jeff Law
2020-09-08 17:41     ` Segher Boessenkool
2020-08-07  2:17 Segher Boessenkool

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).