diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-05 15:34:39 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-05 15:34:39 +0000 |
commit | 5377f68787a6c1403834dc2b7514ba75d74585e1 (patch) | |
tree | d2b56b14315659a1bb2e03a1ca419f699c2cffb1 /gcc/reg-stack.c | |
parent | 544638f8e508c2aa255377067e5c65a6425feebd (diff) | |
download | ppe42-gcc-5377f68787a6c1403834dc2b7514ba75d74585e1.tar.gz ppe42-gcc-5377f68787a6c1403834dc2b7514ba75d74585e1.zip |
* simplify-rtx.c (cfc_args): add "unordered" field.
(check_fold_consts): Set unordered field.
(simplify_relational_operation): Simplify the unordered
comparisons.
* reg-stack.c (swap_rtx_condition): Ensure that the transformation
is valid.
* emit-rtl.c (try_split): Fix code to mark labels.
* jump.c (mark_jump_label): Make global.
* rtl.h (mark_jump_label): Declare.
* predict.c (estimate_probability): Handle unordred comparisons.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38711 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/reg-stack.c')
-rw-r--r-- | gcc/reg-stack.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/gcc/reg-stack.c b/gcc/reg-stack.c index 0063cbdbdaa..48dd3bd6966 100644 --- a/gcc/reg-stack.c +++ b/gcc/reg-stack.c @@ -1,6 +1,6 @@ /* Register to Stack convert for GNU compiler. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, - 1999, 2000 Free Software Foundation, Inc. + 1999, 2000, 2001 Free Software Foundation, Inc. This file is part of GNU CC. @@ -1261,7 +1261,17 @@ swap_rtx_condition (insn) pat = PATTERN (insn); } - return swap_rtx_condition_1 (pat); + if (swap_rtx_condition_1 (pat)) + { + INSN_CODE (insn) = -1; + if (recog_memoized (insn) == -1) + { + swap_rtx_condition_1 (pat); + return 0; + } + return 1; + } + return 0; } /* Handle a comparison. Special care needs to be taken to avoid |