From 9db367b45cc60c446821eb9c8aa7e96402376afb Mon Sep 17 00:00:00 2001 From: Denis Chertykov Date: Thu, 10 Jul 2003 20:28:09 +0000 Subject: [PATCH] combine.c (gen_binary): Handle the CLOBBER rtx and don't build a binary operation with it. * combine.c (gen_binary): Handle the CLOBBER rtx and don't build a binary operation with it. Co-Authored-By: Richard Kenner From-SVN: r69199 --- gcc/ChangeLog | 6 ++++++ gcc/combine.c | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fa80ec781b3b..36267f95fba7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2003-06-30 Denis Chertykov + Richard Kenner + + * combine.c (gen_binary): Handle the CLOBBER rtx and + don't build a binary operation with it. + 2003-07-10 Zdenek Dvorak * gcse.c (load_kills_store, find_loads, store_killed_in_insn, diff --git a/gcc/combine.c b/gcc/combine.c index 037f583d827d..499e7b992cc8 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -10171,6 +10171,11 @@ gen_binary (enum rtx_code code, enum machine_mode mode, rtx op0, rtx op1) rtx result; rtx tem; + if (GET_CODE (op0) == CLOBBER) + return op0; + else if (GET_CODE (op1) == CLOBBER) + return op1; + if (GET_RTX_CLASS (code) == 'c' && swap_commutative_operands_p (op0, op1)) tem = op0, op0 = op1, op1 = tem; -- 2.47.3