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

Emanuel Peter epeter at openjdk.org
Mon Nov 13 12:42:03 UTC 2023


On Mon, 13 Nov 2023 12:37:15 GMT, Daniel Lundén <duke at openjdk.org> wrote:

>> src/hotspot/share/opto/node.hpp line 1145:
>> 
>>> 1143:      visit_uses(callback, [](Node* n){ return !n->is_ConstraintCast(); });
>>> 1144:   }
>>> 1145: 
>> 
>> `visit_uncasted_uses` is only used once, I think it would be better to inline it in `PhaseIterGVN::add_users_to_worklist()`, for simplicity and also for symmetry with `PhaseCCP::push_and`.
>
> I agree. @eme64 OK with you?

I guess it is a bit of a tradeoff: code simplicity vs performance. Either way is fine with me.

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

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


More information about the hotspot-compiler-dev mailing list