diff options
author | pthaugen <pthaugen@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-09-14 17:04:18 +0000 |
---|---|---|
committer | pthaugen <pthaugen@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-09-14 17:04:18 +0000 |
commit | df42d375282fecb93482f60e0839fc9534e69840 (patch) | |
tree | d9999832953930faba81740f349bacb7f6c7e027 | |
parent | ef45c4c09fc2c9bd4e249f6c8f912d45784f4d7d (diff) | |
download | gcc-df42d375282fecb93482f60e0839fc9534e69840.tar.gz |
* loop-unroll.c (unroll_loop_runtime_iterations): Set probability of succ edge.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@240140 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/loop-unroll.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 65dc1822376..85275186b95 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2016-09-14 Pat Haugen <pthaugen@us.ibm.com> + + * loop-unroll.c (unroll_loop_runtime_iterations): Set probability of succ edge. + 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org> * target.def (lra_p): Change commentary (for the manual) for the diff --git a/gcc/loop-unroll.c b/gcc/loop-unroll.c index b568ea56d84..2d5fe48411b 100644 --- a/gcc/loop-unroll.c +++ b/gcc/loop-unroll.c @@ -979,7 +979,7 @@ unroll_loop_runtime_iterations (struct loop *loop) swtch = split_edge_and_insert (single_pred_edge (swtch), branch_code); set_immediate_dominator (CDI_DOMINATORS, preheader, swtch); - single_pred_edge (swtch)->probability = REG_BR_PROB_BASE - p; + single_succ_edge (swtch)->probability = REG_BR_PROB_BASE - p; e = make_edge (swtch, preheader, single_succ_edge (swtch)->flags & EDGE_IRREDUCIBLE_LOOP); e->count = RDIV (preheader->count * REG_BR_PROB_BASE, p); |