RFR: 8369167: C2: refactor LShiftINode/LShiftLNode Value/Identity/Ideal [v2]

Marc Chevalier mchevalier at openjdk.org
Tue Oct 14 09:22:32 UTC 2025


On Mon, 13 Oct 2025 14:35:30 GMT, Roland Westrelin <roland at openjdk.org> wrote:

> They would have to all go through that transition.

For consistency yes. But yet, I think I recall some functions that are not called with a compile-time constant, so we can't do that everywhere. Technically, calling a function that takes it as parameter from the templated version, and just passing our template argument is fine. What is not (easily) possible is normal parameter -> template. But again, that was just "for fun".

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

PR Comment: https://git.openjdk.org/jdk/pull/27725#issuecomment-3400894799


More information about the hotspot-compiler-dev mailing list