RFR: 8307084: C2: Vectorized drain loop is not executed for some small trip counts [v4]

Fei Gao fgao at openjdk.org
Tue Jan 20 17:08:26 UTC 2026


On Tue, 20 Jan 2026 13:45:44 GMT, Emanuel Peter <epeter at openjdk.org> wrote:

> One more question here: could it be that one node that you now conservatively pin further down actually already has a use in a predicate further up, and now we'd create a `bad graph` cycle?

If a node has a `use` that is attached to a predicate further up, then that `use` would also be pinned down to the loop `entry control`. Since we also fix the control of the `use`, which is itself a cloned node, I would expect that we wouldn’t end up creating a bad control-flow cycle. Does that make sense?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/22629#discussion_r2709269918


More information about the hotspot-compiler-dev mailing list