RFR: 8356176: C2 MemorySegment: missing RCE with byteSize() in Loop Exit Check inside the for Expression [v3]
Manuel Hässig
mhaessig at openjdk.org
Tue Aug 12 14:57:14 UTC 2025
On Tue, 12 Aug 2025 14:31:40 GMT, Emanuel Peter <epeter at openjdk.org> wrote:
>>> And: if the region is a Loop, then we should have _total_wins = _loop_entry_wins + _loop_back_wins, correct?
>>
>> If a `LoopNode` can only have `EntryControl` and `LoopBackControl` as control inputs, it should be correct.
>
> I think that is actually the very definition of a `LoopNode`: it has the entry edge on `in(1)` and the backedge on `in(2)` ;)
Alright, `region` becomes a field, and `profitable` gets asserts. Thank you for the suggestions.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26429#discussion_r2270159374
More information about the hotspot-compiler-dev
mailing list