RFR: 8302652: [SuperWord] Reduction should happen after loop, when possible

Vladimir Kozlov kvn at openjdk.org
Fri May 5 07:39:38 UTC 2023


On Wed, 22 Mar 2023 11:29:09 GMT, Emanuel Peter <epeter at openjdk.org> wrote:

>> @vnkozlov How should I do that? Can that even be done during IGVN? Or should I move the implementation to loopopts?
>
> For example, I could put it before or after `try_sink_out_of_loop` inside `PhaseIdealLoop::split_if_with_blocks_post`.

As we discussed offline, you may check and mark Reduction node if it has users (other than Phi) inside loop in SuperWord code where we are creating vector referenced by Reduction node.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/13056#discussion_r1145240288


More information about the hotspot-compiler-dev mailing list