Checking Range Check Elimination, Part 2

I’ve updated the article on the range check elimination optimization in Java. I added a case that provided a hint to the JIT which helps when the index is otherwise too complex for the JIT to realize that the range check can be eliminated.

This entry was posted in Code, Java. Bookmark the permalink.

2 Responses to Checking Range Check Elimination, Part 2

  1. Anli says:

    Very interesting. Maybe other JVMs (IBM’s, BEA’s (?) RockIt etc.) are better? Can you put a link to the factor 10 in matrix multiplication slowdown?

  2. xan says:

    Thanks, Anli. I can’t find my matrix tests so I’ll have to recreate them. In the mean time, there are ratings from Keith Lea showing a factor of 3 for matrix tests on the client VM and only 1.5x on the server VM.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>