Commit 6987c91f authored by Toon Verwaest's avatar Toon Verwaest Committed by V8 LUCI CQ

[maglev] Fix overzealous DCHECK

Bug: v8:7700
Change-Id: Idf127095758289308010312deb9eb2b234cc453d
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3652299Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
Commit-Queue: Toon Verwaest <verwaest@chromium.org>
Cr-Commit-Position: refs/heads/main@{#80599}
parent e8fd58ee
...@@ -668,8 +668,8 @@ void StraightForwardRegisterAllocator::AddMoveBeforeCurrentNode( ...@@ -668,8 +668,8 @@ void StraightForwardRegisterAllocator::AddMoveBeforeCurrentNode(
ValueNode* node, compiler::InstructionOperand source, ValueNode* node, compiler::InstructionOperand source,
compiler::AllocatedOperand target) { compiler::AllocatedOperand target) {
Node* gap_move; Node* gap_move;
DCHECK_EQ(source.IsConstant(), IsConstantNode(node->opcode()));
if (source.IsConstant()) { if (source.IsConstant()) {
DCHECK(IsConstantNode(node->opcode()));
gap_move = gap_move =
Node::New<ConstantGapMove>(compilation_info_->zone(), {}, node, target); Node::New<ConstantGapMove>(compilation_info_->zone(), {}, node, target);
} else { } else {
......
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