Commit 61fc05c7 by Zhenqiang Chen Committed by Zhenqiang Chen

loop-invariant.c (get_inv_cost): Skip invariants, which are marked as "move", from depends_on.

2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>

	* loop-invariant.c (get_inv_cost): Skip invariants, which are marked
	as "move", from depends_on.

From-SVN: r211818
parent dbb73879
2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
* loop-invariant.c (get_inv_cost): Skip invariants, which are marked
as "move", from depends_on.
2014-06-19 Terry Guo <terry.guo@arm.com> 2014-06-19 Terry Guo <terry.guo@arm.com>
* config/arm/thumb1.md (define_split): Split 64bit constant in earlier * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
......
...@@ -1136,6 +1136,10 @@ get_inv_cost (struct invariant *inv, int *comp_cost, unsigned *regs_needed) ...@@ -1136,6 +1136,10 @@ get_inv_cost (struct invariant *inv, int *comp_cost, unsigned *regs_needed)
dep = invariants[depno]; dep = invariants[depno];
/* If DEP is moved out of the loop, it is not a depends_on any more. */
if (dep->move)
continue;
get_inv_cost (dep, &acomp_cost, aregs_needed); get_inv_cost (dep, &acomp_cost, aregs_needed);
if (! flag_ira_loop_pressure) if (! flag_ira_loop_pressure)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment