Commit f4477cf4 by Jakub Jelinek Committed by Jakub Jelinek

re PR debug/46771 (-fcompare-debug failure (length) with -O -ftree-vectorize)

	PR debug/46771
	* reginfo.c (init_subregs_of_mode): Don't call find_subregs_of_mode
	on DEBUG_INSNs.

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

From-SVN: r167514
parent 150bd820
2010-12-06 Jakub Jelinek <jakub@redhat.com>
PR debug/46771
* reginfo.c (init_subregs_of_mode): Don't call find_subregs_of_mode
on DEBUG_INSNs.
PR rtl-optimization/46777
* cfglayout.c (duplicate_insn_chain): Avoid duplicating
also barrier after tablejump.
......@@ -1330,7 +1330,7 @@ init_subregs_of_mode (void)
FOR_EACH_BB (bb)
FOR_BB_INSNS (bb, insn)
if (INSN_P (insn))
if (NONDEBUG_INSN_P (insn))
find_subregs_of_mode (PATTERN (insn));
}
......
2010-12-06 Jakub Jelinek <jakub@redhat.com>
PR debug/46771
* gcc.dg/pr46771.c: New test.
PR rtl-optimization/46777
* gcc.dg/pr46777.c: New test.
......
/* PR debug/46771 */
/* { dg-do compile } */
/* { dg-options "-O -ftree-vectorize -fcompare-debug" } */
unsigned char v[1600];
unsigned char
foo (unsigned char x)
{
int i;
unsigned char a = x;
unsigned char b = x;
for (i = 0; i < 1600; i++)
a = a < v[i] ? v[i] : a;
for (i = 0; i < 1600; i++)
b = b > v[i] ? v[i] : b;
return a - b;
}
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