diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-08-01 10:36:25 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-08-01 10:36:25 +0000 |
commit | 37103d5cf6544db006a0f841380fcea0ed9f878e (patch) | |
tree | 76ad9cf0e7dfa7672450ec2e004cf7e4092ae817 | |
parent | c0c9dc2f0ddffd4e18bcd59ed4827a303413579d (diff) | |
download | gcc-37103d5cf6544db006a0f841380fcea0ed9f878e.tar.gz |
* loop.c (canonicalize_condition): use destination, not source to
determine set's mode.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35409 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/loop.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d8212aff14c..10736c02ce0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Tue Aug 1 12:34:21 MET DST 2000 Jan Hubicka <jh@suse.cz> + + * loop.c (canonicalize_condition): Use destination, not source to + determine SET's mode. + 2000-07-31 Mark Mitchell <mark@codesourcery.com> * flow.c (clear_log_links): Fix typo. diff --git a/gcc/loop.c b/gcc/loop.c index 20211c67297..ea4a0271762 100644 --- a/gcc/loop.c +++ b/gcc/loop.c @@ -9017,7 +9017,7 @@ canonicalize_condition (insn, cond, reverse, earliest, want_reg) relevant. */ if (rtx_equal_p (SET_DEST (set), op0)) { - enum machine_mode inner_mode = GET_MODE (SET_SRC (set)); + enum machine_mode inner_mode = GET_MODE (SET_DEST (set)); /* ??? We may not combine comparisons done in a CCmode with comparisons not done in a CCmode. This is to aid targets |