aboutsummaryrefslogtreecommitdiff
path: root/gcc/reg-stack.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2001-01-05 16:34:39 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2001-01-05 15:34:39 +0000
commit90a747032a88e99270a882e1d33a87fd55ef8520 (patch)
treed2b56b14315659a1bb2e03a1ca419f699c2cffb1 /gcc/reg-stack.c
parentbfa2cb330e3f3e8f72df900b60af4b9886553f47 (diff)
downloadgcc-90a747032a88e99270a882e1d33a87fd55ef8520.zip
gcc-90a747032a88e99270a882e1d33a87fd55ef8520.tar.gz
gcc-90a747032a88e99270a882e1d33a87fd55ef8520.tar.bz2
simplify-rtx.c (cfc_args): add "unordered" field.
* 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. From-SVN: r38711
Diffstat (limited to 'gcc/reg-stack.c')
-rw-r--r--gcc/reg-stack.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/gcc/reg-stack.c b/gcc/reg-stack.c
index 0063cbd..48dd3bd 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