Commit b3a7673b authored by Hao Xu's avatar Hao Xu Committed by V8 LUCI CQ

[compiler] Fix a bug in instruction scheduler

Bug: v8:12018, v8:12163
Change-Id: I87f779b4a355fa0638885db88fd0ebff0f930443
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3141034
Commit-Queue: Hao A Xu <hao.a.xu@intel.com>
Reviewed-by: 's avatarGeorg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/main@{#76978}
parent ff40cebe
......@@ -173,6 +173,10 @@ void InstructionScheduler::AddInstruction(Instruction* instr) {
if (last_side_effect_instr_ != nullptr) {
last_side_effect_instr_->AddSuccessor(new_node);
}
}
// Update last deoptimization or trap point.
if (instr->IsDeoptimizeCall() || instr->IsTrap()) {
last_deopt_or_trap_ = new_node;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment