RFR: 8313672: C2: PhaseCCP does not correctly track analysis dependencies involving shift, convert, and mask [v8]

Emanuel Peter epeter at openjdk.org
Thu Nov 2 16:43:10 UTC 2023


On Thu, 2 Nov 2023 16:33:18 GMT, Emanuel Peter <epeter at openjdk.org> wrote:

>> Daniel Lundén has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Fix typo in visit_uses comment
>
> src/hotspot/share/opto/node.hpp line 1136:
> 
>> 1134:   // definition of Unique_Node_List
>> 1135:   template <typename Callback, typename Bypass>
>> 1136:   void visit_uses(Callback callback, Bypass bypass);
> 
> You should say in the comment that only "boundary" nodes get a callback.

`bypass` could be misunderstood as "ignoring and not recursing".
Maybe you should say that you look through these nodes recursively, until you find a "boundary" node.
Maybe you could even swap the logic to "is_boundary_node"?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/16429#discussion_r1380438612


More information about the hotspot-compiler-dev mailing list