diff options
Diffstat (limited to 'compiler/optimizing/code_sinking.cc')
| -rw-r--r-- | compiler/optimizing/code_sinking.cc | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/compiler/optimizing/code_sinking.cc b/compiler/optimizing/code_sinking.cc index 2e31d35584..d6c97552dc 100644 --- a/compiler/optimizing/code_sinking.cc +++ b/compiler/optimizing/code_sinking.cc @@ -25,11 +25,11 @@  namespace art { -void CodeSinking::Run() { +bool CodeSinking::Run() {    HBasicBlock* exit = graph_->GetExitBlock();    if (exit == nullptr) {      // Infinite loop, just bail. -    return; +    return false;    }    // TODO(ngeoffray): we do not profile branches yet, so use throw instructions    // as an indicator of an uncommon branch. @@ -40,6 +40,7 @@ void CodeSinking::Run() {        SinkCodeToUncommonBranch(exit_predecessor);      }    } +  return true;  }  static bool IsInterestingInstruction(HInstruction* instruction) { |