Fix latent LRA remat issue (PR68730)
authorBernd Schmidt <bernds@redhat.com>
Mon, 8 Feb 2016 15:31:08 +0000 (15:31 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Mon, 8 Feb 2016 15:31:08 +0000 (15:31 +0000)
commitae9dd7f3f8219057b459356c8234bf4aa73f7e1e
tree926bd312ed99ba97b6fefe135eac0adb86a7ae0e
parentcc07da33ae9cf86c308f6a7858d7d8faa73d63e1
Fix latent LRA remat issue (PR68730)

PR rtl-optimization/68730
* lra-remat.c (insn_to_cand_activation): New static variable.
(lra_remat): Allocate and free it.
(create_cand): New arg activation. Initialize a field in
insn_to_cand_activation if it is nonnull.
(create_cands): Pass the activation insn to create_cand when making
a candidate involving an output reload.  Reorganize code a little.
(do_remat): Keep track of active status of candidates in a separate
bitmap.

From-SVN: r233215
gcc/ChangeLog
gcc/lra-remat.c