RFR: 8267265: Use new IR Test Framework to create tests for C2 IGV transformations
Igor Ignatyev
iignatyev at openjdk.java.net
Tue Aug 17 15:39:26 UTC 2021
On Tue, 17 Aug 2021 07:50:55 GMT, Christian Hagedorn <chagedorn at openjdk.org> wrote:
>> Hi, can I please get some reviews for this Pull Request? Here is a summary of the changes:
>>
>> - Add tests, using the new IR-based test framework, for several of the Ideal transformations on Add, Sub, Mul, Div, Loop nodes and some simple Scalar Replacement transformations.
>> - Add more default IR regex's to IR-based test framework.
>> - Changes to Sub, Div and Add Ideal nodes to that transformations on Int and Long types are the whenever possible same.
>> - Changes to Sub*Node, Div*Node and Add*Node Ideal methods to fix some bugs and include new transformations.
>> - New JTREG "ir_transformations" test group under test/hotspot/jtreg.
>
> test/hotspot/jtreg/TEST.groups line 76:
>
>> 74: hotspot_ir_transformations = \
>> 75: ir_transformations
>> 76:
>
> It would be better to move IR tests into a folder within `compiler`. These tests will then always be executed together with the other compiler tests. Then you can remove these lines.
>
> It might be a good idea in general to collect IR tests in a separate folder to have more control over them or run them with stress flags in the future etc. As you are the first one to add any IR tests with the new framework, we have some freedom to do a choice now where to put such IR tests in the future. I might suggest `compiler/ir_framework` as location, also with the option to add subfolders there, but maybe @iignatev can provide some more insights/better suggestions on this topic.
as these tests are c2 tests, they are to be inside `test/hotspot/jtreg/compiler/c2`. I don't think `ir_framework` is a good directory name, as they aren't tests for `ir_framework`, nor `ir_framework` itself, so I'd suggest `test/hotspot/jtreg/compiler/c2/ir_transformations`, or `test/hotspot/jtreg/compiler/c2/idealization`.
on a separate note, @JohnTortugo why have you added a dedicated group for these tests?
-- Igor
-------------
PR: https://git.openjdk.java.net/jdk/pull/5135
More information about the hotspot-dev
mailing list