RFR: 8333729: C2 SuperWord: remove some @requires usages in test/hotspot/jtreg/compiler/loopopts/superword

Christian Hagedorn chagedorn at openjdk.org
Wed Jun 12 09:04:14 UTC 2024


On Thu, 6 Jun 2024 15:08:26 GMT, Emanuel Peter <epeter at openjdk.org> wrote:

> I'm removing as many `@requires` statements as possible. Generally, they just limit what tests can be executed where, and in most cases such limitations do not make much sense.
> 
> For example, tests should not be limited to `@requires vm.compiler2.enabled`, i.e. only run if C2 is available - we can also run the tests if GraalVM is available.
> 
> We should also not limit tests to `@requires vm.bits == "64"`, but rather limit the `@IR` rules with `applyIfPlatform = {"64-bit", "true"}`.
> 
> Similarly, we should not limit the platform for a run statement, but do that per `@IR` rule if necessary.

That's a good idea to remove these limitations. Changes look good.

-------------

Marked as reviewed by chagedorn (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/19581#pullrequestreview-2112404339


More information about the hotspot-compiler-dev mailing list