Commit f359ba2f by Jakub Jelinek Committed by Jakub Jelinek

re PR tree-optimization/88964 (ICE in wide_int_to_tree_1, at tree.c:1561)

	PR tree-optimization/88964
	* gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
	punt if HONOR_SNANS (chrec).

From-SVN: r268247
parent 3b4218cc
2019-01-24 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/88964
* gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
punt if HONOR_SNANS (chrec).
PR middle-end/89015
* tree-nested.c (convert_nonlocal_reference_stmt,
convert_local_reference_stmt, convert_tramp_reference_stmt,
......
......@@ -690,8 +690,8 @@ loop_cand::analyze_induction_var (tree var, tree chrec)
{
/* Punt on floating point invariants if honoring signed zeros,
representing that as + 0.0 would change the result if init
is -0.0. */
if (HONOR_SIGNED_ZEROS (chrec))
is -0.0. Similarly for SNaNs it can raise exception. */
if (HONOR_SIGNED_ZEROS (chrec) || HONOR_SNANS (chrec))
return false;
struct induction *iv = XCNEW (struct induction);
iv->var = var;
......
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