diff options
author | Vladimir Makarov <vmakarov@redhat.com> | 2015-06-22 18:45:58 +0000 |
---|---|---|
committer | Vladimir Makarov <vmakarov@gcc.gnu.org> | 2015-06-22 18:45:58 +0000 |
commit | a42e72d1d26d9ffedaa0bcdfec8a058f9d5ad474 (patch) | |
tree | fec79d33e20d038b1ffb9d9aa5399045dabe8f12 /gcc/lra-lives.c | |
parent | ea663be91a23f217308e669e76b4f0a0c7b86616 (diff) | |
download | gcc-a42e72d1d26d9ffedaa0bcdfec8a058f9d5ad474.zip gcc-a42e72d1d26d9ffedaa0bcdfec8a058f9d5ad474.tar.gz gcc-a42e72d1d26d9ffedaa0bcdfec8a058f9d5ad474.tar.bz2 |
re PR bootstrap/63740 (GCC 4.9.2 bootstrap fails on ARM, haifa-sched.c:6507:1: internal compiler error: in lra_create)
2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
PR bootstrap/63740
* lra-lives.c (process_bb_lives): Check insn copying the same
reload pseudo and don't create a copy for it.
From-SVN: r224753
Diffstat (limited to 'gcc/lra-lives.c')
-rw-r--r-- | gcc/lra-lives.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/lra-lives.c b/gcc/lra-lives.c index 16e1f38..5157c85 100644 --- a/gcc/lra-lives.c +++ b/gcc/lra-lives.c @@ -768,7 +768,15 @@ process_bb_lives (basic_block bb, int &curr_point, bool dead_insn_p) dst_regno = REGNO (SET_DEST (set)); if (dst_regno >= lra_constraint_new_regno_start && src_regno >= lra_constraint_new_regno_start) - lra_create_copy (dst_regno, src_regno, freq); + { + /* It might be still an original (non-reload) insn with + one unused output and a constraint requiring to use + the same reg for input/output operands. In this case + dst_regno and src_regno have the same value, we don't + need a misleading copy for this case. */ + if (dst_regno != src_regno) + lra_create_copy (dst_regno, src_regno, freq); + } else if (dst_regno >= lra_constraint_new_regno_start) { if ((hard_regno = src_regno) >= FIRST_PSEUDO_REGISTER) |