OSDN Git Service

Improved instruction + offset hunting.
authorAart Bik <ajcbik@google.com>
Tue, 23 Feb 2016 00:22:33 +0000 (16:22 -0800)
committerAart Bik <ajcbik@google.com>
Tue, 23 Feb 2016 19:11:29 +0000 (11:11 -0800)
commitbf3f1cf15a021ea1ff8ae860c55e8281da4619b3
treea3d5b50502673d96d270d97c6406d616a8d9b858
parent07f7affb338b529d34e4e18b7e8a631c16bd9765
Improved instruction + offset hunting.

Rationale:
This is generally useful for anything using this method
but in particular for deopting something like

 bs[  off] = (byte)(n >>> 24);
 bs[++off] = (byte)(n >>> 16);
 bs[++off] = (byte)(n >>>  8);
 bs[++off] = (byte)(n       );

where the base + offset is hidden in the increments.
Occurs quite often in real-life code.

Change-Id: I3fa7d285a7368a179a26e590e8eee37f3b64c25d
compiler/optimizing/bounds_check_elimination.cc
test/449-checker-bce/src/Main.java