diff options
author | uweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-04-10 13:50:43 +0000 |
---|---|---|
committer | uweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-04-10 13:50:43 +0000 |
commit | 03ad17bf88b0fb3cf7dccdc92bbb8a4cd3be3b7c (patch) | |
tree | 2fa3078af37112bd66556da138324a6688225dcd /gcc/fwprop.c | |
parent | 0b06d494a687f6d897a5ca7edaedf49d0e29bc48 (diff) | |
download | gcc-03ad17bf88b0fb3cf7dccdc92bbb8a4cd3be3b7c.tar.gz |
* fwprop.c (propagate_rtx): Also set PR_CAN_APPEAR for subregs.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186278 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fwprop.c')
-rw-r--r-- | gcc/fwprop.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/fwprop.c b/gcc/fwprop.c index 4fab5b06072..c3530372c12 100644 --- a/gcc/fwprop.c +++ b/gcc/fwprop.c @@ -664,7 +664,12 @@ propagate_rtx (rtx x, enum machine_mode mode, rtx old_rtx, rtx new_rtx, return NULL_RTX; flags = 0; - if (REG_P (new_rtx) || CONSTANT_P (new_rtx)) + if (REG_P (new_rtx) + || CONSTANT_P (new_rtx) + || (GET_CODE (new_rtx) == SUBREG + && REG_P (SUBREG_REG (new_rtx)) + && (GET_MODE_SIZE (mode) + <= GET_MODE_SIZE (GET_MODE (SUBREG_REG (new_rtx)))))) flags |= PR_CAN_APPEAR; if (!for_each_rtx (&new_rtx, varying_mem_p, NULL)) flags |= PR_HANDLE_MEM; |