Fix latent LRA remat issue (PR68730)
authorbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 8 Feb 2016 15:31:08 +0000 (15:31 +0000)
committerbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 8 Feb 2016 15:31:08 +0000 (15:31 +0000)
commitda259f5139ee07d7d9dc7691a418ae8b1749f72d
tree926bd312ed99ba97b6fefe135eac0adb86a7ae0e
parentb0a7399294012b65df3d155da0182e017d6e4214
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233215 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/lra-remat.c