diff options
author | Vladimir Makarov <vmakarov@redhat.com> | 2014-11-16 05:00:30 +0000 |
---|---|---|
committer | Vladimir Makarov <vmakarov@gcc.gnu.org> | 2014-11-16 05:00:30 +0000 |
commit | f607c5c4b7720bdc62998ebb2b64d4d093690d5c (patch) | |
tree | e7ab8e4ebe6b2ee4340da36b42c99a9bc2b3cdd0 /gcc/lra-remat.c | |
parent | cb9365ac6afa908abd6c3ddf74572d81831700c9 (diff) | |
download | gcc-f607c5c4b7720bdc62998ebb2b64d4d093690d5c.zip gcc-f607c5c4b7720bdc62998ebb2b64d4d093690d5c.tar.gz gcc-f607c5c4b7720bdc62998ebb2b64d4d093690d5c.tar.bz2 |
lra-remat.c (cand_transf_func): Process regno for rematerialization too.
2014-11-15 Vladimir Makarov <vmakarov@redhat.com>
* lra-remat.c (cand_transf_func): Process regno for
rematerialization too.
* lra.c (lra): Switch on rematerialization pass.
From-SVN: r217624
Diffstat (limited to 'gcc/lra-remat.c')
-rw-r--r-- | gcc/lra-remat.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/lra-remat.c b/gcc/lra-remat.c index f638a1d..fcb1b6f 100644 --- a/gcc/lra-remat.c +++ b/gcc/lra-remat.c @@ -860,6 +860,10 @@ cand_trans_fun (int bb_index, bitmap bb_in, bitmap bb_out) bitmap_set_bit (&temp_bitmap, cid); break; } + /* Check regno for rematerialization. */ + if (bitmap_bit_p (bb_changed_regs, cand->regno) + || bitmap_bit_p (bb_dead_regs, cand->regno)) + bitmap_set_bit (&temp_bitmap, cid); } return bitmap_ior_and_compl (bb_out, &bb_info->gen_cands, bb_in, &temp_bitmap); |