RFR: 8283187: C2: loop candidate for superword not always unrolled fully if superword fails [v2]
Tobias Hartmann
thartmann at openjdk.java.net
Wed Mar 23 07:33:38 UTC 2022
On Tue, 22 Mar 2022 12:18:22 GMT, Roland Westrelin <roland at openjdk.org> wrote:
>> IdealLoopTree::policy_unroll_slp_analysis() restricts unrolling of
>> loops that are found to be candidate for superword but if superword
>> then fails, unrolling doesn't always resume. SuperWord::output() has
>> logic for that in one of the failure paths but some other paths are
>> not covered (for instance in the case of the test case). I propose
>> that superword explictly returns whether it succeeded or not and that
>> in case of failure, for a main loop, unrolling be attempted again.
>
> Roland Westrelin has updated the pull request incrementally with one additional commit since the last revision:
>
> Update test/hotspot/jtreg/compiler/c2/irTests/TestSuperwordFailsUnrolling.java
>
> Co-authored-by: Tobias Hartmann <tobias.hartmann at oracle.com>
Let me try to reproduce with `-DSkipWhiteBoxInstall=true`.
-------------
PR: https://git.openjdk.java.net/jdk/pull/7822
More information about the hotspot-compiler-dev
mailing list