diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-29 22:51:45 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-29 22:51:45 +0000 |
commit | 23946132f34e27c0a71553306921c09b69c9707c (patch) | |
tree | a93b7369bbf92d4b295f53fee4e3df3c3e1fcffa /gcc/regmove.c | |
parent | fc4eef903f2d68f0af43d23605046fcac2eac2a5 (diff) | |
download | gcc-23946132f34e27c0a71553306921c09b69c9707c.tar.gz |
* regmove.c (regmove_optimize): Don't try to make src and dst match
when they are in different modes.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68682 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/regmove.c')
-rw-r--r-- | gcc/regmove.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/regmove.c b/gcc/regmove.c index 2639ebd54f4..bafbe4c558c 100644 --- a/gcc/regmove.c +++ b/gcc/regmove.c @@ -1289,7 +1289,8 @@ regmove_optimize (f, nregs, regmove_dump_file) if (GET_CODE (dst) != REG || REGNO (dst) < FIRST_PSEUDO_REGISTER || REG_LIVE_LENGTH (REGNO (dst)) < 0 - || RTX_UNCHANGING_P (dst)) + || RTX_UNCHANGING_P (dst) + || GET_MODE (src) != GET_MODE (dst)) continue; /* If the operands already match, then there is nothing to do. */ |