Commit fd7b3ef5 by Tom de Vries Committed by Tom de Vries

Simplify structure try_transform_to_exit_first_loop_alt

2015-06-29  Tom de Vries  <tom@codesourcery.com>

	* tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
	function structure.

From-SVN: r225119
parent 1f8c015b
2015-06-29 Tom de Vries <tom@codesourcery.com>
* tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
function structure.
2015-06-29 Matthew Wahab <matthew.wahab@arm.com> 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
* doc/invoke.texi (Aarch64 Options, -march): Split out arch and * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
......
...@@ -1788,15 +1788,17 @@ try_transform_to_exit_first_loop_alt (struct loop *loop, ...@@ -1788,15 +1788,17 @@ try_transform_to_exit_first_loop_alt (struct loop *loop,
nit, build_one_cst (nit_type)); nit, build_one_cst (nit_type));
gcc_assert (TREE_CODE (alt_bound) == INTEGER_CST); gcc_assert (TREE_CODE (alt_bound) == INTEGER_CST);
transform_to_exit_first_loop_alt (loop, reduction_list, alt_bound);
return true;
} }
else else
{ {
/* Todo: Figure out if we can trigger this, if it's worth to handle /* Todo: Figure out if we can trigger this, if it's worth to handle
optimally, and if we can handle it optimally. */ optimally, and if we can handle it optimally. */
return false;
} }
} }
else
{
gcc_assert (TREE_CODE (nit) == SSA_NAME); gcc_assert (TREE_CODE (nit) == SSA_NAME);
gimple def = SSA_NAME_DEF_STMT (nit); gimple def = SSA_NAME_DEF_STMT (nit);
...@@ -1813,37 +1815,6 @@ try_transform_to_exit_first_loop_alt (struct loop *loop, ...@@ -1813,37 +1815,6 @@ try_transform_to_exit_first_loop_alt (struct loop *loop,
alt_bound = op1; alt_bound = op1;
} }
/* There is a number of test-cases for which we don't get an alt_bound
here: they're listed here, with the lhs of the last stmt as the nit:
libgomp.graphite/force-parallel-1.c:
_21 = (signed long) N_6(D);
_19 = _21 + -1;
_7 = (unsigned long) _19;
libgomp.graphite/force-parallel-2.c:
_33 = (signed long) N_9(D);
_16 = _33 + -1;
_37 = (unsigned long) _16;
libgomp.graphite/force-parallel-5.c:
<bb 6>:
# graphite_IV.5_46 = PHI <0(5), graphite_IV.5_47(11)>
<bb 7>:
_33 = (unsigned long) graphite_IV.5_46;
g++.dg/tree-ssa/pr34355.C:
_2 = (unsigned int) i_9;
_3 = 4 - _2;
gcc.dg/pr53849.c:
_5 = d.0_11 + -2;
_18 = (unsigned int) _5;
We will be able to handle some of these cases, if we can determine when
it's safe to look past casts. */
}
if (alt_bound == NULL_TREE) if (alt_bound == NULL_TREE)
return false; return false;
......
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