diff options
author | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-08-03 16:31:44 +0000 |
---|---|---|
committer | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-08-03 16:31:44 +0000 |
commit | 97e1cc1083f8ded5d32782aff11997676af4655d (patch) | |
tree | 8754d44c0812699e679e5232d8a56a17db7162b2 | |
parent | d07db794a90b271e288fa304ba107945cd2a9e32 (diff) | |
download | gcc-97e1cc1083f8ded5d32782aff11997676af4655d.tar.gz |
* ifcvt.c (noce_get_alt_condition): Don't make an auxiliary
set from a constant part of the condition.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44602 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ifcvt.c | 10 |
2 files changed, 7 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ddaca0d7fdc..3ffebfdf333 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-08-03 DJ Delorie <dj@redhat.com> + + * ifcvt.c (noce_get_alt_condition): Don't make an auxiliary + set from a constant part of the condition. + 2001-08-01 Andrew Cagney <ac131313@redhat.com> * mkdeps.c (deps_add_default_target): Make local variable diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c index 4de879d7d82..6d7e085bbec 100644 --- a/gcc/ifcvt.c +++ b/gcc/ifcvt.c @@ -1183,15 +1183,9 @@ noce_get_alt_condition (if_info, target, earliest) if (GET_CODE (src) == CONST_INT) { if (rtx_equal_p (op_a, SET_DEST (PATTERN (prev_insn)))) - { - op_a = src; - if_info->cond_earliest = prev_insn; - } + op_a = src; else if (rtx_equal_p (op_b, SET_DEST (PATTERN (prev_insn)))) - { - op_b = src; - if_info->cond_earliest = prev_insn; - } + op_b = src; if (GET_CODE (op_a) == CONST_INT) { |