Commit d0e41222 authored by Tobias Tebbi's avatar Tobias Tebbi Committed by V8 LUCI CQ

[turbofan] avoid inserting AssertTypes after Unreachable

Bug: chromium:1348929
Change-Id: I14ce163dbebd7e83023286e210411e8a8208e238
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3804603
Auto-Submit: Tobias Tebbi <tebbi@chromium.org>
Commit-Queue: Nico Hartmann <nicohartmann@chromium.org>
Reviewed-by: 's avatarNico Hartmann <nicohartmann@chromium.org>
Cr-Commit-Position: refs/heads/main@{#82143}
parent 6d9f0714
......@@ -24,7 +24,7 @@ Reduction AddTypeAssertionsReducer::Reduce(Node* node) {
node->opcode() == IrOpcode::kObjectState ||
node->opcode() == IrOpcode::kObjectId ||
node->opcode() == IrOpcode::kPhi || !NodeProperties::IsTyped(node) ||
visited_.Get(node)) {
node->opcode() == IrOpcode::kUnreachable || visited_.Get(node)) {
return NoChange();
}
visited_.Set(node, true);
......
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