diff options
author | Richard Henderson <rth@cygnus.com> | 1999-09-30 18:06:14 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 1999-09-30 18:06:14 -0700 |
commit | 6d97e0b42ed9661ed26c122062b724ce64f84f36 (patch) | |
tree | 83785f214573a3a0eac28b424744b124ffab865f /gcc/jump.c | |
parent | 6ce41093ccf6e93a284850b1397ee908c7726ee7 (diff) | |
download | gcc-6d97e0b42ed9661ed26c122062b724ce64f84f36.zip gcc-6d97e0b42ed9661ed26c122062b724ce64f84f36.tar.gz gcc-6d97e0b42ed9661ed26c122062b724ce64f84f36.tar.bz2 |
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
Diffstat (limited to 'gcc/jump.c')
-rw-r--r-- | gcc/jump.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |