summaryrefslogtreecommitdiffstats
path: root/test/499-bce-phi-array-length
diff options
context:
space:
mode:
authorMingyao Yang <mingyao@google.com>2015-05-19 16:01:59 -0700
committerMingyao Yang <mingyao@google.com>2015-06-19 12:35:53 -0700
commitbca381a12965a98e3727e93986dd0a195db500a0 (patch)
tree0aec90847a7adbb34c99788cc07d28170d44f934 /test/499-bce-phi-array-length
parentdb538d309bc34e025e921a04f10b4ee745bd9f1d (diff)
downloadart-bca381a12965a98e3727e93986dd0a195db500a0.tar.gz
art-bca381a12965a98e3727e93986dd0a195db500a0.tar.bz2
art-bca381a12965a98e3727e93986dd0a195db500a0.zip
Fix premature deoptimization if the loop body isn't entered.
Add a test between initial_ and end_ to see if the loop body is entered. If the loop body isn't entered at all, we jump to the loop header. Loop header is still executed and is going to test the condition again and loop body won't be entered. This makes sure no deoptimization is triggered if the loop body isn't even entered. Bug: 21034044 (cherry picked from commit 3584bce5b1f45e5741d3a6ca24884a36320ecb6b) Change-Id: I2b6de1f22fbc4568ca419f76382ebd87806d9694
Diffstat (limited to 'test/499-bce-phi-array-length')
0 files changed, 0 insertions, 0 deletions