31DiamondMatcher::DiamondMatcher(
Node* merge)
37 if (merge->
opcode() != IrOpcode::kMerge)
return;
39 if (input0->InputCount() != 1)
return;
41 if (input1->InputCount() != 1)
return;
43 if (branch != input1->InputAt(0))
return;
44 if (branch->opcode() != IrOpcode::kBranch)
return;
45 if (input0->opcode() == IrOpcode::kIfTrue &&
46 input1->opcode() == IrOpcode::kIfFalse) {
50 }
else if (input0->opcode() == IrOpcode::kIfFalse &&
51 input1->opcode() == IrOpcode::kIfTrue) {