diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2014-09-24 18:10:46 +0100 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2014-09-25 12:23:40 +0100 |
commit | 3c04974a90b0e03f4b509010bff49f0b2a3da57f (patch) | |
tree | 52649104e3e80272c3774793350f4d9f260ae732 /compiler/optimizing/locations.h | |
parent | c0d36abb12cdbb9469039c1dc153a586bd984015 (diff) | |
download | android_art-3c04974a90b0e03f4b509010bff49f0b2a3da57f.tar.gz android_art-3c04974a90b0e03f4b509010bff49f0b2a3da57f.tar.bz2 android_art-3c04974a90b0e03f4b509010bff49f0b2a3da57f.zip |
Optimize suspend checks in optimizing compiler.
- Remove the ones added during graph build (they were added
for the baseline code generator).
- Emit them at loop back edges after phi moves, so that the test
can directly jump to the loop header.
- Fix x86 and x86_64 suspend check by using cmpw instead of cmpl.
Change-Id: I6fad5795a55705d86c9e1cb85bf5d63dadfafa2a
Diffstat (limited to 'compiler/optimizing/locations.h')
-rw-r--r-- | compiler/optimizing/locations.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/optimizing/locations.h b/compiler/optimizing/locations.h index 06623b6adc..3a769dfd3c 100644 --- a/compiler/optimizing/locations.h +++ b/compiler/optimizing/locations.h @@ -363,6 +363,10 @@ class LocationSummary : public ArenaObject { stack_mask_->SetBit(index); } + void ClearStackBit(uint32_t index) { + stack_mask_->ClearBit(index); + } + void SetRegisterBit(uint32_t reg_id) { register_mask_ |= (1 << reg_id); } |