aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtlanal.c
diff options
context:
space:
mode:
authorAndreas Krebbel <krebbel@linux.ibm.com>2019-12-06 19:30:37 +0000
committerVladimir Makarov <vmakarov@gcc.gnu.org>2019-12-06 19:30:37 +0000
commit1a880ef2110aaa2c03b6eb88ef792d324b89f566 (patch)
tree3176b632a4cf2b3a4e28ab08d8c115f2ab50513b /gcc/rtlanal.c
parent3ad4a03ac6127ac5b7656977d3e41deac0605bf3 (diff)
downloadgcc-1a880ef2110aaa2c03b6eb88ef792d324b89f566.zip
gcc-1a880ef2110aaa2c03b6eb88ef792d324b89f566.tar.gz
gcc-1a880ef2110aaa2c03b6eb88ef792d324b89f566.tar.bz2
re PR rtl-optimization/92176 (LRA problem with reloads for subreg operands)
2019-12-06 Andreas Krebbel <krebbel@linux.ibm.com> Vladimir Makarov <vmakarov@redhat.com> PR rtl-optimization/92176 * lra.c (simplify_subreg_regno): Don't permit unconditional changing mode for LRA too. 2019-12-06 Andreas Krebbel <krebbel@linux.ibm.com> Vladimir Makarov <vmakarov@redhat.com> PR rtl-optimization/92176 * gcc.target/s390/pr92176.c: New test. Co-Authored-By: Vladimir Makarov <vmakarov@redhat.com> From-SVN: r279061
Diffstat (limited to 'gcc/rtlanal.c')
-rw-r--r--gcc/rtlanal.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c
index 241a35b..b0c8cd5 100644
--- a/gcc/rtlanal.c
+++ b/gcc/rtlanal.c
@@ -3951,9 +3951,7 @@ simplify_subreg_regno (unsigned int xregno, machine_mode xmode,
/* Give the backend a chance to disallow the mode change. */
if (GET_MODE_CLASS (xmode) != MODE_COMPLEX_INT
&& GET_MODE_CLASS (xmode) != MODE_COMPLEX_FLOAT
- && !REG_CAN_CHANGE_MODE_P (xregno, xmode, ymode)
- /* We can use mode change in LRA for some transformations. */
- && ! lra_in_progress)
+ && !REG_CAN_CHANGE_MODE_P (xregno, xmode, ymode))
return -1;
/* We shouldn't simplify stack-related registers. */