diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2003-07-18 21:53:04 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2003-07-18 21:53:04 +0000 |
commit | e5686da761327b52e4dbad5b6d1fcb2debded878 (patch) | |
tree | 0ed26ab62a83259b282411f1e5740639338d213d | |
parent | 8d05ebaa244be5e801eefce13e3244046edbe4dd (diff) | |
download | gcc-e5686da761327b52e4dbad5b6d1fcb2debded878.zip gcc-e5686da761327b52e4dbad5b6d1fcb2debded878.tar.gz gcc-e5686da761327b52e4dbad5b6d1fcb2debded878.tar.bz2 |
combine.c (simplify_comparison): Don't share rtx when converting (ne (and (not X) 1) 0) to (eq (and X 1) 0).
* combine.c (simplify_comparison): Don't share rtx when converting
(ne (and (not X) 1) 0) to (eq (and X 1) 0).
From-SVN: r69571
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/combine.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 066668a..8ce7152 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-07-18 Kazu Hirata <kazu@cs.umass.edu> + + * combine.c (simplify_comparison): Don't share rtx when converting + (ne (and (not X) 1) 0) to (eq (and X 1) 0). + 2003-07-18 David Edelsohn <edelsohn@gnu.org> * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define. diff --git a/gcc/combine.c b/gcc/combine.c index 883f504..30dd97a 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -11072,7 +11072,7 @@ simplify_comparison (enum rtx_code code, rtx *pop0, rtx *pop1) && GET_CODE (XEXP (op0, 0)) == NOT) { op0 = simplify_and_const_int - (op0, mode, XEXP (XEXP (op0, 0), 0), (HOST_WIDE_INT) 1); + (NULL_RTX, mode, XEXP (XEXP (op0, 0), 0), (HOST_WIDE_INT) 1); code = (code == NE ? EQ : NE); continue; } |