diff options
author | vmakarov <vmakarov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-11-10 21:33:06 +0000 |
---|---|---|
committer | vmakarov <vmakarov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-11-10 21:33:06 +0000 |
commit | 0b6934b3b7db3650e920f00b4cfcdcb1858bd7aa (patch) | |
tree | 27bcbf2a0bbc63a04eb07c0e34b4a1a2c9316d5e /gcc/lra-lives.c | |
parent | 26ca2f0803b18bde38865fafa8518dcb6eedc6e0 (diff) | |
download | gcc-0b6934b3b7db3650e920f00b4cfcdcb1858bd7aa.tar.gz |
2014-11-10 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/63620
PR rtl-optimization/63799
* lra-lives.c (process_bb_lives): Do not delete EH_REGION, trapped
and setting PIC pseudo insns.
(lra_create_live_ranges): Fix the typo.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217320 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lra-lives.c')
-rw-r--r-- | gcc/lra-lives.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gcc/lra-lives.c b/gcc/lra-lives.c index 0e97cd81429..03def823a10 100644 --- a/gcc/lra-lives.c +++ b/gcc/lra-lives.c @@ -704,7 +704,13 @@ process_bb_lives (basic_block bb, int &curr_point) set = single_set (curr_insn); if (set != NULL_RTX - && REG_P (SET_DEST (set)) && REGNO (SET_DEST (set)) >= FIRST_PSEUDO_REGISTER) + && REG_P (SET_DEST (set)) && REGNO (SET_DEST (set)) >= FIRST_PSEUDO_REGISTER + && find_reg_note (curr_insn, REG_EH_REGION, NULL_RTX) == NULL_RTX + && ! may_trap_p (PATTERN (curr_insn)) + /* Don't do premature remove of pic offset pseudo as we can + start to use it after some reload generation. */ + && (pic_offset_table_rtx == NULL_RTX + || pic_offset_table_rtx != SET_DEST (set))) { bool dead_insn_p = true; @@ -1273,7 +1279,8 @@ lra_create_live_ranges (bool all_p) df_get_postorder (DF_BACKWARD), df_get_n_blocks (DF_BACKWARD)); if (lra_dump_file != NULL) { - fprintf (lra_dump_file, "Global pseudo live data have be updated:\n"); + fprintf (lra_dump_file, + "Global pseudo live data have been updated:\n"); basic_block bb; FOR_EACH_BB_FN (bb, cfun) { |