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.

2 thoughts on “Checking Range Check Elimination, Part 2”

  1. 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. 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.