Rewrite suspend test check with LIRSlowPath.
Change-Id: I2dc17d079655586bfc588349c7a04afc2c6879af
diff --git a/compiler/dex/quick/mir_to_lir.cc b/compiler/dex/quick/mir_to_lir.cc
index b8ab609..df7a7c1 100644
--- a/compiler/dex/quick/mir_to_lir.cc
+++ b/compiler/dex/quick/mir_to_lir.cc
@@ -1099,18 +1099,15 @@
} while ((next_bb != NULL) && (next_bb->block_type == kDead));
}
HandleSlowPaths();
-
- cu_->NewTimingSplit("Launchpads");
- HandleSuspendLaunchPads();
}
//
// LIR Slow Path
//
-LIR* Mir2Lir::LIRSlowPath::GenerateTargetLabel() {
+LIR* Mir2Lir::LIRSlowPath::GenerateTargetLabel(int opcode) {
m2l_->SetCurrentDexPc(current_dex_pc_);
- LIR* target = m2l_->NewLIR0(kPseudoTargetLabel);
+ LIR* target = m2l_->NewLIR0(opcode);
fromfast_->target = target;
return target;
}