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 <kenner@vlsi1.ultra.nyu.edu>

From-SVN: r69199
This commit is contained in:
Denis Chertykov 2003-07-10 20:28:09 +00:00 committed by Denis Chertykov
parent 3b14e3af06
commit 9db367b45c
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2003-06-30 Denis Chertykov <denisc@overta.ru>
Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* combine.c (gen_binary): Handle the CLOBBER rtx and
don't build a binary operation with it.
2003-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
* gcse.c (load_kills_store, find_loads, store_killed_in_insn,

View File

@ -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;