Lines Matching refs:LiMI
922 MachineInstr *LiMI = in simplifyCode() local
924 if (!LiMI || in simplifyCode()
925 (LiMI->getOpcode() != PPC::LI && LiMI->getOpcode() != PPC::LI8) in simplifyCode()
926 || !MRI->hasOneNonDBGUse(LiMI->getOperand(0).getReg()) || in simplifyCode()
927 !MDT->dominates(DefDomMI, LiMI)) in simplifyCode()
952 MachineInstr *LiMI = getVRegDefOrNull(&DefPhiMI->getOperand(i), MRI); in simplifyCode() local
954 LLVM_DEBUG(LiMI->dump()); in simplifyCode()
959 if (LiMI->getOpcode() == PPC::ADDI || LiMI->getOpcode() == PPC::ADDI8) in simplifyCode()
962 assert((LiMI->getOpcode() == PPC::LI || in simplifyCode()
963 LiMI->getOpcode() == PPC::LI8) && in simplifyCode()
965 auto LiImm = LiMI->getOperand(1).getImm(); // save the imm of LI in simplifyCode()
966 LiMI->RemoveOperand(1); // remove the imm of LI in simplifyCode()
967 LiMI->setDesc(TII->get(LiMI->getOpcode() == PPC::LI ? PPC::ADDI in simplifyCode()
969 MachineInstrBuilder(*LiMI->getParent()->getParent(), *LiMI) in simplifyCode()
972 LLVM_DEBUG(LiMI->dump()); in simplifyCode()