diff mbox

[3/6] combine: handle I2 a parallel of two SETs

Message ID 87mw71oncg.fsf@igel.home
State New
Headers show

Commit Message

Andreas Schwab Dec. 5, 2014, 8:25 p.m. UTC
Segher Boessenkool <segher@kernel.crashing.org> writes:

> gcc/
> 	* combine.c (is_parallel_of_n_reg_sets): New function.
> 	(can_split_parallel_of_n_reg_sets): New function.
> 	(try_combine): If I2 is a PARALLEL of two SETs, split it into
> 	two insns if possible.

This breaks bootstrap on m68k.

../../gcc/gcc/combine.c:2467:1: warning: ‘bool is_parallel_of_n_reg_sets(rtx_insn*, int)’ defined but not used [-Wunused-function]
 is_parallel_of_n_reg_sets (rtx_insn *insn, int n)
 ^
../../gcc/gcc/combine.c:2494:1: warning: ‘bool can_split_parallel_of_n_reg_sets(rtx_insn*, int)’ defined but not used [-Wunused-function]
 can_split_parallel_of_n_reg_sets (rtx_insn *insn, int n)
 ^

Tested on m68k-suse-linux and installed as obvious.

Andreas.

	* combine.c (is_parallel_of_n_reg_sets)
	(can_split_parallel_of_n_reg_sets): Only define if !HAVE_cc0.
diff mbox

Patch

diff --git a/gcc/combine.c b/gcc/combine.c
index e6deb41..39f9200 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -2461,6 +2461,7 @@  update_cfg_for_uncondjump (rtx_insn *insn)
     }
 }
 
+#ifndef HAVE_cc0
 /* Return whether INSN is a PARALLEL of exactly N register SETs followed
    by an arbitrary number of CLOBBERs.  */
 static bool
@@ -2513,6 +2514,7 @@  can_split_parallel_of_n_reg_sets (rtx_insn *insn, int n)
 
   return true;
 }
+#endif
 
 /* Try to combine the insns I0, I1 and I2 into I3.
    Here I0, I1 and I2 appear earlier than I3.