2018-11-15 Richard Biener <rguenther@suse.de>
PR middle-end/87917
* tree-data-ref.c (analyze_miv_subscript): Guard calls to
analyze_subscript_affine_affine properly.
* gcc.dg/tree-ssa/pr87917.c: New testcase.
From-SVN: r266173
+2018-11-15 Richard Biener <rguenther@suse.de>
+
+ PR middle-end/87917
+ * tree-data-ref.c (analyze_miv_subscript): Guard calls to
+ analyze_subscript_affine_affine properly.
+
2018-11-15 Xianmiao Qu <xianmiao_qu@c-sky.com>
* config/csky/csky-linux-elf.h (LINUX_DYNAMIC_LINKER): Remove.
+2018-11-15 Richard Biener <rguenther@suse.de>
+
+ PR middle-end/87917
+ * gcc.dg/tree-ssa/pr87917.c: New testcase.
+
2018-11-15 Bin Cheng <bin.cheng@linux.alibaba.com>
PR tree-optimization/84648
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-O2 -ftree-loop-distribute-patterns -ftrapv -fno-tree-fre" } */
+
+void foo(int x[])
+{
+ int i, j;
+
+ for (i = 0; i < 2; i++)
+ for (j = 0; j < 2; j++)
+ {
+ x[i] = x[i*j];
+ x[i] = x[i*j];
+ }
+}
dependence_stats.num_miv_independent++;
}
- else if (evolution_function_is_affine_multivariate_p (chrec_a, loop_nest->num)
+ else if (evolution_function_is_affine_in_loop (chrec_a, loop_nest->num)
&& !chrec_contains_symbols (chrec_a)
- && evolution_function_is_affine_multivariate_p (chrec_b, loop_nest->num)
+ && evolution_function_is_affine_in_loop (chrec_b, loop_nest->num)
&& !chrec_contains_symbols (chrec_b))
{
/* testsuite/.../ssa-chrec-35.c