API to check for side effects in a region
Cao, Joshua
joshcao at amazon.com
Tue Feb 6 00:35:42 UTC 2024
Is there an API to check for side effects in a region? One simple way to check that the number of uses is only one:
https://github.com/openjdk/jdk/blob/f31957e6a1c463e5c7041bf4eee4a1b09048e929/src/hotspot/share/opto/ifnode.cpp#L1253
But this is conservative. There can be Loads and Casts, which are not side effects.
Also, why do casts need explicit region node inputs? I feel like its unnecessary. Its place in the graph should be implicit.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/hotspot-compiler-dev/attachments/20240206/f783dd8f/attachment.htm>
More information about the hotspot-compiler-dev
mailing list