RFR: 8311087: PhiNode::wait_for_region_igvn should break early [v2]

Christian Hagedorn chagedorn at openjdk.org
Wed Jul 5 10:33:58 UTC 2023


On Tue, 4 Jul 2023 10:33:08 GMT, Johan Sjölen <jsjolen at openjdk.org> wrote:

>> src/hotspot/share/opto/cfgnode.cpp line 1966:
>> 
>>> 1964:       delay = true;
>>> 1965:       break;
>>> 1966:     }
>> 
>> Just an idea, how about putting this into a separate method `should_delay()` (or something like that) and replacing `continue` with `return false` and `break` with `return true`? If `should_delay()` is true at some point, we can push `this` to the worklist and return true.
>> 
>> But looks good either way.
>
> Yeah, it could be a lambda (this isn't used anywhere else), but not sure that it'd give us too much in terms of clarity here.

I don't have a strong opinion here - it's fine like that.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/14707#discussion_r1252902117


More information about the hotspot-compiler-dev mailing list