This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][RFC] Add -Otest for unit-testing optimization passes
On 08/27/2010 02:30 PM, Mark Mitchell wrote:
> Ideally, true unit tests for tree-based optimizations would take GIMPLE
> as input and produce GIMPLE as output. I'm not sure how far we are from
> the point where that would be practical.
I'd want something similar for RTL. A special test backend, and
infrastructure to read input RTL, run a single pass, and verify output
RTL, would be very useful to test things like reload inheritance for
which it's essentially impossible to construct a testcase that will stay
working for very long.
Bernd