From 8c38aed722cbd17db8bcab50087acb9e40493c73 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Fri, 21 Jul 2017 09:46:22 +0000 Subject: [PATCH] Add missing edge probabilities in nvptx_goacc_reduction_init 2017-07-21 Tom de Vries Cesar Philippidis PR gcov-profile/81442 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Add missing edge probabilities. Co-Authored-By: Cesar Philippidis From-SVN: r250422 --- gcc/ChangeLog | 7 +++++++ gcc/config/nvptx/nvptx.c | 2 ++ 2 files changed, 9 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7ff7f10a3fb..a2bc6e7a6c4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2017-07-21 Tom de Vries + Cesar Philippidis + + PR gcov-profile/81442 + * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Add missing edge + probabilities. + 2017-07-21 Tom de Vries PR lto/81430 diff --git a/gcc/config/nvptx/nvptx.c b/gcc/config/nvptx/nvptx.c index a718054745d..208b11555f2 100644 --- a/gcc/config/nvptx/nvptx.c +++ b/gcc/config/nvptx/nvptx.c @@ -5284,6 +5284,7 @@ nvptx_goacc_reduction_init (gcall *call) /* Fixup flags from call_bb to init_bb. */ init_edge->flags ^= EDGE_FALLTHRU | EDGE_TRUE_VALUE; + init_edge->probability = profile_probability::even (); /* Set the initialization stmts. */ gimple_seq init_seq = NULL; @@ -5299,6 +5300,7 @@ nvptx_goacc_reduction_init (gcall *call) /* Create false edge from call_bb to dst_bb. */ edge nop_edge = make_edge (call_bb, dst_bb, EDGE_FALSE_VALUE); + nop_edge->probability = profile_probability::even (); /* Create phi node in dst block. */ gphi *phi = create_phi_node (lhs, dst_bb); -- 2.30.2