Integrated: 8295979: [IR Framework] Improve IR matching warning
Emanuel Peter
epeter at openjdk.org
Mon Feb 20 08:43:40 UTC 2023
On Thu, 16 Feb 2023 11:13:30 GMT, Emanuel Peter <epeter at openjdk.org> wrote:
> The IR framework already warns that some rule was not applied. But it was not clear which ones were not applied.
>
> I now say which one was not applied (eg `2 of 3`). I improved the wording, it was not always correct. And I also print the constraints, so that one can more quickly understand why it was not applied.
>
> Given the numbers `x of N` one can easily deduce if there are still rules that were applied.
>
> Examples:
>
>
> [IREncodingPrinter] Disabling IR matching for rule 1 of 3 in testReductionAndLong: None of the flag constraints met (applyIfOr): SuperWordReductions, false, LoopMaxUnroll, <= 4
> [IREncodingPrinter] Disabling IR matching for rule 3 of 3 in testReductionAndLong: Not all feature constraints are met (applyIfCPUFeatureAnd): sse4.1, true, avx2, false
> [IREncodingPrinter] Disabling IR matching for rule 1 of 3 in testReductionOrLong: None of the flag constraints met (applyIfOr): SuperWordReductions, false, LoopMaxUnroll, <= 4
> [IREncodingPrinter] Disabling IR matching for rule 3 of 3 in testReductionOrLong: Not all feature constraints are met (applyIfCPUFeatureAnd): sse4.1, true, avx2, false
>
> [IREncodingPrinter] Disabling IR matching for rule 1 of 3 in testReductionMulLong: None of the flag constraints met (applyIfOr): SuperWordReductions, false, LoopMaxUnroll, <= 4
> [IREncodingPrinter] Disabling IR matching for rule 2 of 3 in testReductionMulLong: None of the feature constraints met (applyIfCPUFeatureOr): avx512dq, true, sve, true
> [IREncodingPrinter] Disabling IR matching for rule 3 of 3 in testReductionMulLong: Not all feature constraints are met (applyIfCPUFeatureAnd): sse4.1, true, avx2, false
This pull request has now been integrated.
Changeset: 5c0f50bc
Author: Emanuel Peter <epeter at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/5c0f50bc01cf0b26c8ae68b2afd7f1bfcb217e6d
Stats: 13 lines in 1 file changed: 1 ins; 0 del; 12 mod
8295979: [IR Framework] Improve IR matching warning
Reviewed-by: thartmann, kvn
-------------
PR: https://git.openjdk.org/jdk/pull/12589
More information about the hotspot-compiler-dev
mailing list