+2015-10-01 Marek Polacek <polacek@redhat.com>
+
+ PR tree-optimization/67769
+ * tree-ssa-phiopt.c (conditional_replacement): Call
+ reset_flow_sensitive_info_in_bb.
+ (minmax_replacement): Likewise.
+ (abs_replacement): Likewise.
+
2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
* builtins.c: Don't include gomp-constants.h.
+2015-10-01 Marek Polacek <polacek@redhat.com>
+
+ PR tree-optimization/67769
+ * gcc.dg/torture/pr67769.c: New test.
+
2015-10-01 Uros Bizjak <ubizjak@gmail.com>
* gcc.dg/lto/pr55113_0.c: Skip on all x86 targets.
--- /dev/null
+/* { dg-do run } */
+
+static int
+clamp (int x, int lo, int hi)
+{
+ return (x < lo) ? lo : ((x > hi) ? hi : x);
+}
+
+__attribute__ ((noinline))
+short
+foo (int N)
+{
+ short value = clamp (N, 0, 16);
+ return value;
+}
+
+int
+main ()
+{
+ if (foo (-5) != 0)
+ __builtin_abort ();
+ return 0;
+}
}
replace_phi_edge_with_variable (cond_bb, e1, phi, new_var);
+ reset_flow_sensitive_info_in_bb (cond_bb);
/* Note that we optimized this PHI. */
return true;
gsi_insert_before (&gsi, new_stmt, GSI_NEW_STMT);
replace_phi_edge_with_variable (cond_bb, e1, phi, result);
+ reset_flow_sensitive_info_in_bb (cond_bb);
+
return true;
}
}
replace_phi_edge_with_variable (cond_bb, e1, phi, result);
+ reset_flow_sensitive_info_in_bb (cond_bb);
/* Note that we optimized this PHI. */
return true;