diff options
author | bonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-02-23 07:45:34 +0000 |
---|---|---|
committer | bonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-02-23 07:45:34 +0000 |
commit | deb3d5133bfe5927d1cc69e6504b38c223547553 (patch) | |
tree | 96a13a92271719c54cd547ea3040ec3575bc0da2 /gcc/fwprop.c | |
parent | 83a65a0d829401359e5b0c1c0167c1f215865a7f (diff) | |
download | ppe42-gcc-deb3d5133bfe5927d1cc69e6504b38c223547553.tar.gz ppe42-gcc-deb3d5133bfe5927d1cc69e6504b38c223547553.zip |
2007-02-22 Paolo Bonzini <bonzini@gnu.org>
PR rtl-optimization/30841
* fwprop.c (propagate_rtx_1): Accept a VOIDmode replacement address.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122253 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fwprop.c')
-rw-r--r-- | gcc/fwprop.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/fwprop.c b/gcc/fwprop.c index 1ab3e525138..6ce91836d45 100644 --- a/gcc/fwprop.c +++ b/gcc/fwprop.c @@ -324,7 +324,8 @@ propagate_rtx_1 (rtx *px, rtx old, rtx new, bool can_appear) /* Dismiss transformation that we do not want to carry on. */ if (!valid_ops || new_op0 == op0 - || GET_MODE (new_op0) != GET_MODE (op0)) + || !(GET_MODE (new_op0) == GET_MODE (op0) + || GET_MODE (new_op0) == VOIDmode)) return true; canonicalize_address (new_op0); |