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

Quan Anh Mai qamai at openjdk.org
Thu Jan 29 16:29:49 UTC 2026


On Thu, 29 Jan 2026 16:19:38 GMT, Emanuel Peter <epeter at openjdk.org> wrote:

> But then we'd still always pay the price of the drain loop, even if it then gets folded away. Not great.

May I ask why? We only need to clone the post loop after we decide to vectorize. At which point it becomes the drain loop, otherwise there is no need for the clone.

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

PR Comment: https://git.openjdk.org/jdk/pull/22629#issuecomment-3818785449


More information about the hotspot-compiler-dev mailing list