[PATCH][RFC] Add -Otest for unit-testing optimization passes

Bernd Schmidt bernds@codesourcery.com
Fri Aug 27 13:49:00 GMT 2010


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



More information about the Gcc-patches mailing list