Index: src/compiler/instruction-selector.cc |
diff --git a/src/compiler/instruction-selector.cc b/src/compiler/instruction-selector.cc |
index b53b31e7bed9ee2ae6c52f470fa5724cc832ffb1..96030794447e2e266c28ef0fcc60d975b9894fc5 100644 |
--- a/src/compiler/instruction-selector.cc |
+++ b/src/compiler/instruction-selector.cc |
@@ -474,9 +474,6 @@ void InstructionSelector::VisitControl(BasicBlock* block) { |
BasicBlock* tbranch = block->SuccessorAt(0); |
BasicBlock* fbranch = block->SuccessorAt(1); |
if (tbranch == fbranch) return VisitGoto(tbranch); |
- // Treat special Branch(Always, IfTrue, IfFalse) as Goto(IfTrue). |
- Node* const condition = input->InputAt(0); |
- if (condition->opcode() == IrOpcode::kAlways) return VisitGoto(tbranch); |
return VisitBranch(input, tbranch, fbranch); |
} |
case BasicBlock::kSwitch: { |
@@ -550,6 +547,7 @@ void InstructionSelector::VisitNode(Node* node) { |
case IrOpcode::kIfDefault: |
case IrOpcode::kEffectPhi: |
case IrOpcode::kMerge: |
+ case IrOpcode::kTerminate: |
// No code needed for these graph artifacts. |
return; |
case IrOpcode::kIfException: |