PR tree-optimization/88964
* gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
punt if HONOR_SNANS (chrec).
From-SVN: r268247
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,
{
/* 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;