[maglev] Fix overzealous DCHECK
Bug: v8:7700 Change-Id: Idf127095758289308010312deb9eb2b234cc453d Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3652299 Reviewed-by: Leszek Swirski <leszeks@chromium.org> Commit-Queue: Toon Verwaest <verwaest@chromium.org> Cr-Commit-Position: refs/heads/main@{#80599}
This commit is contained in:
parent
e8fd58ee58
commit
6987c91fe6
@ -668,8 +668,8 @@ void StraightForwardRegisterAllocator::AddMoveBeforeCurrentNode(
|
||||
ValueNode* node, compiler::InstructionOperand source,
|
||||
compiler::AllocatedOperand target) {
|
||||
Node* gap_move;
|
||||
DCHECK_EQ(source.IsConstant(), IsConstantNode(node->opcode()));
|
||||
if (source.IsConstant()) {
|
||||
DCHECK(IsConstantNode(node->opcode()));
|
||||
gap_move =
|
||||
Node::New<ConstantGapMove>(compilation_info_->zone(), {}, node, target);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user