diff options
author | 2023-02-16 16:17:54 +0000 | |
---|---|---|
committer | 2023-02-17 10:56:27 +0000 | |
commit | b0bdf29f81eda70342e898ec151d1165e5a758f0 (patch) | |
tree | 1bf895cb1da3b0d02003666bce4f73f6760e9e2b /compiler/cfi_test.h | |
parent | aeb995232bf0c63f0e902a5b3544091632e4406b (diff) |
Relax CanMoveClinitCheck checks
In PrepareForRegisterAllocation, we can move the
responsibility from the clinit check to another instruction
e.g. NewInstance. We were checking that there weren't
throwing instructions between them, but they can exist.
Relax that check, and just don't move the responsibility
if such instructions exist in the middle.
Note that even when we can't move the responsibility to the
NewInstance, we can remove the ClinitCheck by moving said
responsibility to its LoadClass.
Bug: 268486612
Fixes: 268486612
Test: art/test/testrunner/testrunner.py --host --64 --optimizing -b
Test: dex2oat compiling the app in the bug
Change-Id: I0740a30a466ed0c7d5e2b069e63307ee706fd604
Diffstat (limited to 'compiler/cfi_test.h')
0 files changed, 0 insertions, 0 deletions