From: Richard Henderson Date: Fri, 1 Oct 1999 01:06:14 +0000 (-0700) Subject: jump.c (jump_optimize_1): Use general_operand not register_operand to determine when... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6d97e0b42ed9661ed26c122062b724ce64f84f36;p=gcc.git jump.c (jump_optimize_1): Use general_operand not register_operand to determine when B may need preloading. * jump.c (jump_optimize_1) [conditional_move]: Use general_operand not register_operand to determine when B may need preloading. From-SVN: r29740 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 52e741deeca..605e26cb816 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Thu Sep 30 18:04:13 1999 Richard Henderson + + * jump.c (jump_optimize_1) [conditional_move]: Use general_operand + not register_operand to determine when B may need preloading. + Thu Sep 30 17:39:16 1999 Richard Henderson * alpha.md (*): Use nonimmediate not general_operand for SET_DEST. diff --git a/gcc/jump.c b/gcc/jump.c index 3d7a4b787f3..377cfc96690 100644 --- a/gcc/jump.c +++ b/gcc/jump.c @@ -1169,10 +1169,10 @@ jump_optimize_1 (f, cross_jump, noop_moves, after_regscan, mark_labels_only) start_sequence (); - /* If we're not dealing with a register or the insn is more - complex than a simple SET, duplicate the computation and - replace the destination with a new temporary. */ - if (register_operand (temp2, GET_MODE (var)) + /* If we're not dealing with a simple operand or the insn is + more complex than a simple SET, duplicate the computation + and replace the destination with a new temporary. */ + if (general_operand (temp2, GET_MODE (var)) && GET_CODE (PATTERN (temp)) == SET) bval = temp2; else