--- Comment #4 from hutchinsonandy at gcc dot gnu dot org 2008-06-22 16:11
---
Quite possibly due to cost metrics. They are far from ideal.
Will mark test XFAIL until we can investigate and fix.
--
hutchinsonandy at gcc dot gnu dot org changed:
What|Removed
--- Comment #3 from rguenth at gcc dot gnu dot org 2008-06-22 14:50 ---
This is really not a task for SRA but for struct copy propagation (which we
do not do). See PR14295.
As this testcase was for SRA you can either XFAIL it for avr or see if the
cost metrics need adjustment.
--
r
--- Comment #2 from hutchinsonandy at gcc dot gnu dot org 2008-06-22 14:33
---
Thanks for information
--param sra-max-structure-size=32 does indeed remove test failure and produces
optimal code.
But changing the testcase does not remove the optimization problem - unless
sra-max-struct
--- Comment #1 from joseph at codesourcery dot com 2008-06-22 13:32 ---
Subject: Re: New: Failed optimisation of return of struct
argment in memcpy-1.c
On Sun, 22 Jun 2008, hutchinsonandy at gcc dot gnu dot org wrote:
> Testcase gcc.dg/memcpy-1.c fails on AVR target.
Have you looke