harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Egor Pasko <egor.pa...@gmail.com>
Subject Re: [testing] optimization regressions (was: Re: [result] Re: [vote] HARMONY-1363 - DRLVM fixes and additions)
Date Fri, 15 Sep 2006 04:26:40 GMT
On the 0x1E4 day of Apache Harmony Mikhail Fursov wrote:
> This would be the best solution to test if an optimization works as
> expected.
> We can create the following framework inside Jitrino compiler to test
> individual optimizations and optimizations inter-dependencies:
> 
> Create a special optimization ("test") that that works only for "special"
> Java method (jitrino.TestCase.testJitrino) during the compilation.
> It works in the following way:
> 1) Cleans current IR
> 2) Set up some kind of template IR: e.g. IR with 1 loop and a const inside
> the loop
> 3) Runs a test that uses internal Jitrino API and checks the results: e.g.
> runs some loop optimizations and checks that constant is moved out from the
> loop.
> 4) Restores initial IR of the method.
> 
> Such tests could be run from junit with a special adapter as usual Java
> tests.
> 
> Does it makes sense?

I like it! Thanks!

> Any other ideas or experience how to test compiler optimizations
> predictably?

although having performance measurements, NULLSTONE-like tests are
quite predictable and relatively easy to write.

-- 
Egor Pasko, Intel Managed Runtime Division


---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Mime
View raw message