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

Quan Anh Mai qamai at openjdk.org
Thu Feb 20 11:00:03 UTC 2025


On Wed, 19 Feb 2025 12:47:03 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

I think this is getting increasingly ad-hoc for a pretty niche use-case. Can we have a general solution that works for other pure calls (e.g trigonometric functions), too? Related: [JDK-8347901](https://bugs.openjdk.org/browse/JDK-8347901)

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

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


More information about the hotspot-compiler-dev mailing list