Commit 3336c6e0 by Jakub Jelinek Committed by Jakub Jelinek

re PR tree-optimization/70405 (-fcompare-debug failure with -mavx512f)

	PR tree-optimization/70405
	* ssa-iterators.h (num_imm_uses): Add missing braces.

	* gcc.dg/pr70405.c: New test.

From-SVN: r234529
parent 728557fd
2016-03-29 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/70405
* ssa-iterators.h (num_imm_uses): Add missing braces.
2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/68695
......
......@@ -448,9 +448,11 @@ num_imm_uses (const_tree var)
unsigned int num = 0;
if (!MAY_HAVE_DEBUG_STMTS)
for (ptr = start->next; ptr != start; ptr = ptr->next)
if (USE_STMT (ptr))
num++;
{
for (ptr = start->next; ptr != start; ptr = ptr->next)
if (USE_STMT (ptr))
num++;
}
else
for (ptr = start->next; ptr != start; ptr = ptr->next)
if (USE_STMT (ptr) && !is_gimple_debug (USE_STMT (ptr)))
......
2016-03-29 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/70405
* gcc.dg/pr70405.c: New test.
2016-03-29 Andre Vehreschild <vehre@gcc.gnu.org>
PR fortran/70397
......
/* PR tree-optimization/70405 */
/* { dg-do compile } */
/* { dg-options "-O2 -fcompare-debug" } */
/* { dg-additional-options "-mavx512f" { target i?86-*-* x86_64-*-* } } */
typedef short V __attribute__ ((vector_size (32)));
int
foo (V *p)
{
V v = *p;
v >>= v;
v -= v[0];
return v[3];
}
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