Lines Matching defs:MI1
429 const MachineInstr &MI1,
431 return MI0.isIdenticalTo(MI1, MachineInstr::IgnoreVRegDefs);
843 MachineInstr *MI1 = nullptr;
846 MI1 = MRI.getUniqueVRegDef(Op1.getReg());
851 return MI1 && MI2 && (MI1->getParent() == MBB || MI2->getParent() == MBB);
863 MachineInstr *MI1 = MRI.getUniqueVRegDef(Inst.getOperand(1).getReg());
869 Commuted = !areOpcodesEqualOrInverse(Opcode, MI1->getOpcode()) &&
872 std::swap(MI1, MI2);
882 return areOpcodesEqualOrInverse(Opcode, MI1->getOpcode()) &&
883 (isAssociativeAndCommutative(*MI1) ||
884 isAssociativeAndCommutative(*MI1, /* Invert */ true)) &&
885 hasReassociableOperands(*MI1, MBB) &&
886 MRI.hasOneNonDBGUse(MI1->getOperand(0).getReg());