From ddbb5da5199fb421dc398911c37fa7f896efc13f Mon Sep 17 00:00:00 2001 From: Segher Boessenkool Date: Fri, 10 May 2019 02:08:41 +0200 Subject: [PATCH] combine: Don't generate IF_THEN_ELSE 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 | 4 ++++ gcc/combine.c | 8 -------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ce9d3ceb9c5..4d2dc8cc117 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2019-05-09 Segher Boessenkool + + * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL. + 2019-05-09 Bill Schmidt * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK. diff --git a/gcc/combine.c b/gcc/combine.c index 4de759a8e6b..ce7aeecb5c2 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -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; -- 2.30.2