combine: Don't generate IF_THEN_ELSE
authorSegher Boessenkool <segher@kernel.crashing.org>
Fri, 10 May 2019 00:08:41 +0000 (02:08 +0200)
committerSegher Boessenkool <segher@gcc.gnu.org>
Fri, 10 May 2019 00:08:41 +0000 (02:08 +0200)
On all targets I managed to test (21) this results in better code.  Only
alpha ends up with slightly bigger code.

* combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.

From-SVN: r271047

gcc/ChangeLog
gcc/combine.c

index ce9d3ceb9c5fa16633a83d3149bf92002725318a..4d2dc8cc117530ed798402efe92fa44c40130bd1 100644 (file)
@@ -1,3 +1,7 @@
+2019-05-09  Segher Boessenkool  <segher@kernel.crashing.org>
+
+       * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
+
 2019-05-09  Bill Schmidt  <wschmidt@linux.ibm.com>
 
        * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
index 4de759a8e6bf7cb5b13af592fbb3fcd1b9644929..ce7aeecb5c2394d69544dc4fb76dd94aa9fd71f9 100644 (file)
@@ -5909,14 +5909,6 @@ combine_simplify_rtx (rtx x, machine_mode op0_mode, int in_dest,
                                                                 mode, VOIDmode,
                                                                 cond, cop1),
                                        mode);
-             else
-               return gen_rtx_IF_THEN_ELSE (mode,
-                                            simplify_gen_relational (cond_code,
-                                                                     mode,
-                                                                     VOIDmode,
-                                                                     cond,
-                                                                     cop1),
-                                            true_rtx, false_rtx);
 
              code = GET_CODE (x);
              op0_mode = VOIDmode;