RFR: 8349523: Unused runtime calls to drem/frem should be removed [v5]

Marc Chevalier duke at openjdk.org
Thu Feb 27 08:28:58 UTC 2025


On Tue, 25 Feb 2025 21:13:36 GMT, Marc Chevalier <duke at openjdk.org> wrote:

>> Remove frem and drem macros nodes when the result is not used. These nodes have other outputs (like memory), which is not meaningful, but preventing them to be dropped so easily. This patch removes the useless frem/drem nodes, and by rewiring the inputs to the outputs.
>> 
>> Thanks,
>> Marc
>
> Marc Chevalier has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Factor testing whether a node is a data proj of a pure function

Extract it as a method of `Node`. I'm not quite satisfied with that, but I'm not sure what would be a better place for it.

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

PR Comment: https://git.openjdk.org/jdk/pull/23694#issuecomment-2687232477


More information about the hotspot-compiler-dev mailing list