Commit f9613c9a by Richard Guenther Committed by Richard Biener

re PR middle-end/47661 (predict is confused by FP comparisons when math can trap)

2011-03-21  Richard Guenther  <rguenther@suse.de>

	PR middle-end/47661
	* gimple.c (is_gimple_condexpr): Use tree_could_throw_p.

From-SVN: r171236
parent 9bfbc1eb
2011-03-21 Richard Guenther <rguenther@suse.de> 2011-03-21 Richard Guenther <rguenther@suse.de>
PR middle-end/47661
* gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
2011-03-21 Richard Guenther <rguenther@suse.de>
PR lto/48210 PR lto/48210
* params.def (lto-partitions): Require at least 1 partition. * params.def (lto-partitions): Require at least 1 partition.
......
...@@ -2581,7 +2581,7 @@ bool ...@@ -2581,7 +2581,7 @@ bool
is_gimple_condexpr (tree t) is_gimple_condexpr (tree t)
{ {
return (is_gimple_val (t) || (COMPARISON_CLASS_P (t) return (is_gimple_val (t) || (COMPARISON_CLASS_P (t)
&& !tree_could_trap_p (t) && !tree_could_throw_p (t)
&& is_gimple_val (TREE_OPERAND (t, 0)) && is_gimple_val (TREE_OPERAND (t, 0))
&& is_gimple_val (TREE_OPERAND (t, 1)))); && is_gimple_val (TREE_OPERAND (t, 1))));
} }
......
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