+2011-07-03 Ira Rosen <ira.rosen@linaro.org>
+
+ PR tree-optimization/49610
+ * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
+ a basic block.
+
2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
Olivier Hainque <hainque@adacore.com>
Nicolas Setton <setton@adacore.com>
+2011-07-03 Ira Rosen <ira.rosen@linaro.org>
+
+ PR tree-optimization/49610
+ * gcc.dg/vect/pr49610.c: New test.
+
2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/specs/debug1.ads: New test.
--- /dev/null
+/* { dg-do compile } */
+
+extern int g_7;
+void func_13(int p_17) {
+ int i;
+ for (i=0; i < 16; i = (signed char)(i+1)) {
+ g_7 &= p_17;
+ g_7 &= (p_17 > 1);
+ }
+}
+
+/* { dg-final { cleanup-tree-dump "vect" } } */
("vect_internal_def"), or it's an induction (defined by a
loop-header phi-node). */
if (def_stmt
+ && gimple_bb (def_stmt)
&& flow_bb_inside_loop_p (loop, gimple_bb (def_stmt))
&& (is_gimple_assign (def_stmt)
|| is_gimple_call (def_stmt)
("vect_internal_def"), or it's an induction (defined by a
loop-header phi-node). */
if (def_stmt
+ && gimple_bb (def_stmt)
&& flow_bb_inside_loop_p (loop, gimple_bb (def_stmt))
&& (is_gimple_assign (def_stmt)
|| is_gimple_call (def_stmt)