loop-invariant.c (struct def): New field can_prop_to_addr_uses.
authorBin Cheng <bin.cheng@arm.com>
Tue, 27 Oct 2015 05:26:27 +0000 (05:26 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Tue, 27 Oct 2015 05:26:27 +0000 (05:26 +0000)
commit5b92e1895eea1ea9a7eb69553af8d173bd62e134
tree10a6570c4bb4a7278ecda3f038b6b918f6ce1ac7
parentbda9c2451e766ec289ce746e803d863832b23f51
loop-invariant.c (struct def): New field can_prop_to_addr_uses.

* loop-invariant.c (struct def): New field can_prop_to_addr_uses.
(inv_can_prop_to_addr_use): New function.
(record_use): Call can_prop_to_addr_uses, set the new field.
(get_inv_cost): Count cost if inv can't be propagated into its
address uses.

From-SVN: r229402
gcc/ChangeLog
gcc/loop-invariant.c