diff options
author | Tom de Vries <tom@codesourcery.com> | 2017-07-21 09:46:22 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2017-07-21 09:46:22 +0000 |
commit | 8c38aed722cbd17db8bcab50087acb9e40493c73 (patch) | |
tree | 0d133d71221f42faf1548bcf0c62bf856a72e671 /gcc | |
parent | 967a353a7259dc97098afc59646f9eedc6bbb511 (diff) | |
download | gcc-8c38aed722cbd17db8bcab50087acb9e40493c73.zip gcc-8c38aed722cbd17db8bcab50087acb9e40493c73.tar.gz gcc-8c38aed722cbd17db8bcab50087acb9e40493c73.tar.bz2 |
Add missing edge probabilities in nvptx_goacc_reduction_init
2017-07-21 Tom de Vries <tom@codesourcery.com>
Cesar Philippidis <cesar@codesourcery.com>
PR gcov-profile/81442
* config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Add missing edge
probabilities.
Co-Authored-By: Cesar Philippidis <cesar@codesourcery.com>
From-SVN: r250422
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/config/nvptx/nvptx.c | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7ff7f10..a2bc6e7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,4 +1,11 @@ 2017-07-21 Tom de Vries <tom@codesourcery.com> + Cesar Philippidis <cesar@codesourcery.com> + + PR gcov-profile/81442 + * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Add missing edge + probabilities. + +2017-07-21 Tom de Vries <tom@codesourcery.com> PR lto/81430 * config/nvptx/nvptx.c (nvptx_override_options_after_change): New diff --git a/gcc/config/nvptx/nvptx.c b/gcc/config/nvptx/nvptx.c index a718054..208b115 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); |