Commit 8c38aed7 by Tom de Vries Committed by Tom de Vries

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
parent 967a353a
2017-07-21 Tom de Vries <tom@codesourcery.com> 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 PR lto/81430
* config/nvptx/nvptx.c (nvptx_override_options_after_change): New * config/nvptx/nvptx.c (nvptx_override_options_after_change): New
......
...@@ -5284,6 +5284,7 @@ nvptx_goacc_reduction_init (gcall *call) ...@@ -5284,6 +5284,7 @@ nvptx_goacc_reduction_init (gcall *call)
/* Fixup flags from call_bb to init_bb. */ /* Fixup flags from call_bb to init_bb. */
init_edge->flags ^= EDGE_FALLTHRU | EDGE_TRUE_VALUE; init_edge->flags ^= EDGE_FALLTHRU | EDGE_TRUE_VALUE;
init_edge->probability = profile_probability::even ();
/* Set the initialization stmts. */ /* Set the initialization stmts. */
gimple_seq init_seq = NULL; gimple_seq init_seq = NULL;
...@@ -5299,6 +5300,7 @@ nvptx_goacc_reduction_init (gcall *call) ...@@ -5299,6 +5300,7 @@ nvptx_goacc_reduction_init (gcall *call)
/* Create false edge from call_bb to dst_bb. */ /* Create false edge from call_bb to dst_bb. */
edge nop_edge = make_edge (call_bb, dst_bb, EDGE_FALSE_VALUE); edge nop_edge = make_edge (call_bb, dst_bb, EDGE_FALSE_VALUE);
nop_edge->probability = profile_probability::even ();
/* Create phi node in dst block. */ /* Create phi node in dst block. */
gphi *phi = create_phi_node (lhs, dst_bb); gphi *phi = create_phi_node (lhs, dst_bb);
......
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