diff options
author | Jiong Wang <jiong.wang@arm.com> | 2016-05-18 14:37:28 +0000 |
---|---|---|
committer | Jiong Wang <jiwang@gcc.gnu.org> | 2016-05-18 14:37:28 +0000 |
commit | 3c11e1af834f7768e14eac0473a346297f1c2a7d (patch) | |
tree | f284a47e024ef81ddcc94c9cfe3ef5dd66c8fa7b /gcc/lra-constraints.c | |
parent | 20309c6e2f8a3dcd1edb66f8f95669e174183403 (diff) | |
download | gcc-3c11e1af834f7768e14eac0473a346297f1c2a7d.zip gcc-3c11e1af834f7768e14eac0473a346297f1c2a7d.tar.gz gcc-3c11e1af834f7768e14eac0473a346297f1c2a7d.tar.bz2 |
[Patch, lra] Guard in_class_p with REG_P check
gcc/
PR rtl-optimization/71150
* lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
check.
From-SVN: r236396
Diffstat (limited to 'gcc/lra-constraints.c')
-rw-r--r-- | gcc/lra-constraints.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/lra-constraints.c b/gcc/lra-constraints.c index 56ab5b4..e4e6c8c 100644 --- a/gcc/lra-constraints.c +++ b/gcc/lra-constraints.c @@ -1317,7 +1317,8 @@ process_addr_reg (rtx *loc, bool check_only_p, rtx_insn **before, rtx_insn **aft register, and this normally will be a subreg which should be reloaded as a whole. This is particularly likely to be triggered when -fno-split-wide-types specified. */ - if (in_class_p (reg, cl, &new_class) + if (!REG_P (reg) + || in_class_p (reg, cl, &new_class) || GET_MODE_SIZE (mode) <= GET_MODE_SIZE (ptr_mode)) loc = &SUBREG_REG (*loc); } |