In the discussion of https://github.com/openjdk/jdk/pull/3938 a limitation in C2 is found. C2 fails to eliminate obvious bound checks for indexes that are masked with xor.
            
- relates to
- 
                    JDK-8347645 C2: XOR bounded value handling blocks constant folding -           
- Resolved
 
-         
- 
                    JDK-8267527 Update test in JDK-8267332 to use Test IR framework -           
- Closed
 
-         
 
        