RFR: 8319822: Use a linear-time algorithm for assert_different_registers() [v3]

Stefan Karlsson stefank at openjdk.org
Mon Nov 20 10:31:30 UTC 2023


On Wed, 15 Nov 2023 16:23:08 GMT, Andrew Haley <aph at openjdk.org> wrote:

> > I started to review the patch and was wondering if this could be simplify to something like this?: [stefank at f38c791](https://github.com/stefank/jdk/commit/f38c791793440b899ce6c4c9723470a5d4b18050)
> 
> Sure, it could be done. This is a minor efficiency tweak.

It tested the build performance before this PR, with the patch in this PR, and my simplified version. I can't see any performance difference on my MacBook M1. Is there any platform where this makes a bigger difference?

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

PR Comment: https://git.openjdk.org/jdk/pull/16617#issuecomment-1818776986


More information about the hotspot-compiler-dev mailing list