Commit c3a50ca3 by Richard Sandiford Committed by Richard Sandiford

re PR rtl-optimization/27073 (invalid gcse manipulation of REG_EQUIV notes)

	PR rtl-optimization/27073
	* gcse.c (try_replace_reg): Just propagate into REG_EQUAL notes,
	not REG_EQUIVs.

gcc/testsuite/
	* gcc.c-torture/execute/pr27073.c: New test.

From-SVN: r112803
parent fd18206b
2006-04-09 Richard Sandiford <richard@codesourcery.com>
PR rtl-optimization/27073
* gcse.c (try_replace_reg): Just propagate into REG_EQUAL notes,
not REG_EQUIVs.
2006-04-08 Daniel Berlin <dberlin@dberlin.org> 2006-04-08 Daniel Berlin <dberlin@dberlin.org>
* tree.h (tree_memory_tag): Add old_used_alone. * tree.h (tree_memory_tag): Add old_used_alone.
......
...@@ -2642,7 +2642,7 @@ find_used_regs (rtx *xptr, void *data ATTRIBUTE_UNUSED) ...@@ -2642,7 +2642,7 @@ find_used_regs (rtx *xptr, void *data ATTRIBUTE_UNUSED)
static int static int
try_replace_reg (rtx from, rtx to, rtx insn) try_replace_reg (rtx from, rtx to, rtx insn)
{ {
rtx note = find_reg_equal_equiv_note (insn); rtx note = find_reg_note (insn, REG_EQUAL, NULL);
rtx src = 0; rtx src = 0;
int success = 0; int success = 0;
rtx set = single_set (insn); rtx set = single_set (insn);
......
2006-04-09 Richard Sandiford <richard@codesourcery.com>
PR rtl-optimization/27073
* gcc.c-torture/execute/pr27073.c: New test.
2006-04-08 Mike Stump <mrs@apple.com> 2006-04-08 Mike Stump <mrs@apple.com>
* gcc.dg/pragma-darwin.c: Improve for ppc64. * gcc.dg/pragma-darwin.c: Improve for ppc64.
void __attribute__((noinline))
foo (int *p, int d1, int d2, int d3,
short count, int s1, int s2, int s3, int s4, int s5)
{
int n = count;
while (n--)
{
*p++ = s1;
*p++ = s2;
*p++ = s3;
*p++ = s4;
*p++ = s5;
}
}
int main()
{
int x[10], i;
foo (x, 0, 0, 0, 2, 100, 200, 300, 400, 500);
for (i = 0; i < 10; i++)
if (x[i] != (i % 5 + 1) * 100)
abort ();
exit (0);
}
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