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 /gcc/loop-unroll.c | |
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
Diffstat (limited to 'gcc/loop-unroll.c')
-rw-r--r-- | gcc/loop-unroll.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |