RFR: 8286104: use aggressive liveness for unstable_if traps [v2]

Vladimir Kozlov kvn at openjdk.java.net
Wed Jun 1 19:34:32 UTC 2022


On Wed, 1 Jun 2022 19:16:47 GMT, Xin Liu <xliu at openjdk.org> wrote:

> > You need to verify that calls are removed from lists (for example call valueOf() from _boxing_late_inlines list).  If calls are indeed removed from lists by calling igvn.optimize() then I will be fine with your code.
> 
> Hi,@vnkozlov ,
> 
> from my reading, `valueOf()` in this [example](https://github.com/openjdk/jdk/pull/8545/files#diff-77b63ebfe062d7bec62f831c7a5f2c77ad9767f3d4a6be87ea22337e50b70192R47) is removed in late-inliner. It is pure and nobody consumes its return value. This is my goal in this PR.

Got it.

> I will explore full-fledged useless elimination after [JDK-8287385](https://bugs.openjdk.java.net/browse/JDK-8287385). I think it can reveal more chances than this. I clean up this patch. could you take a look at this?

Sounds good. I will review your latest changes today.

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

PR: https://git.openjdk.java.net/jdk/pull/8545


More information about the hotspot-compiler-dev mailing list