OSDN Git Service

Fixed bug in BCE, with regression test.
authorAart Bik <ajcbik@google.com>
Mon, 14 Mar 2016 21:11:26 +0000 (14:11 -0700)
committerAart Bik <ajcbik@google.com>
Mon, 14 Mar 2016 22:58:50 +0000 (15:58 -0700)
commit1ae88747200931a0feaacf3d17a926c5abf70593
tree45d3adb01123d2c39821c80bbb2cc207f5801f9c
parent0b2c1922cc29a7939f747f60d80240a9fb22547c
Fixed bug in BCE, with regression test.

The fix is twofold:
(1) Ensure that bound checks are never eliminated more than once
    to guard against any conceivable situation in which the same
    bounds check appears multiple times in array length use list.
(2) Specially reject BoundsCheck(x,x) since that always goes OOB.

BUG=27628526

Change-Id: I399ec4254323e0cfcd0a68898f403cfab7b35135
compiler/optimizing/bounds_check_elimination.cc
test/582-checker-bce-length/expected.txt [new file with mode: 0644]
test/582-checker-bce-length/info.txt [new file with mode: 0644]
test/582-checker-bce-length/src/Main.java [new file with mode: 0644]