diff options
| author | 2018-04-27 16:38:24 +0000 | |
|---|---|---|
| committer | 2018-04-27 16:38:24 +0000 | |
| commit | 2f8279eab734f2e701625e283a0c5776ecbea1bc (patch) | |
| tree | 02100f78a38ff6e7a93746efe4d288a52144684e /compiler/optimizing/code_sinking.cc | |
| parent | 8db788b3484d0d926fff631ba022add50936b7c1 (diff) | |
| parent | 2477320a8d9de58ede68e2645ea53c10f71dcd57 (diff) | |
Merge "Step 1 of 2: conditional passes."
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) { |