Commit e44c2af0 authored by Tobias Tebbi's avatar Tobias Tebbi Committed by Commit Bot

[turbofan] new escape analysis reducer: remove duplicate line and add a DCHECK

Bug: 
Change-Id: Ifd233c9b592c784d6326d3663c491e5e32e9ddeb
Reviewed-on: https://chromium-review.googlesource.com/600047Reviewed-by: 's avatarJaroslav Sevcik <jarin@chromium.org>
Commit-Queue: Tobias Tebbi <tebbi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#47118}
parent c560d2e7
......@@ -62,7 +62,7 @@ Reduction NewEscapeAnalysisReducer::Reduce(Node* node) {
if (Node* replacement = analysis_result().GetReplacementOf(node)) {
DCHECK(node->opcode() != IrOpcode::kAllocate &&
node->opcode() != IrOpcode::kFinishRegion);
RelaxEffectsAndControls(node);
DCHECK_NE(replacement, node);
if (replacement != jsgraph()->Dead()) {
replacement = MaybeGuard(node, replacement);
}
......
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