Home | History | Annotate | Download | only in NVPTX

Lines Matching refs:Root

74 static bool isCVTAToLocalCombinationCandidate(MachineInstr &Root) {
75 auto &MBB = *Root.getParent();
78 if (Root.getOpcode() != NVPTX::cvta_to_local_yes_64 &&
79 Root.getOpcode() != NVPTX::cvta_to_local_yes)
82 auto &Op = Root.getOperand(1);
105 static void CombineCVTAToLocal(MachineInstr &Root) {
106 auto &MBB = *Root.getParent();
110 auto &Prev = *MRI.getUniqueVRegDef(Root.getOperand(1).getReg());
113 BuildMI(MF, Root.getDebugLoc(), TII->get(Prev.getOpcode()),
114 Root.getOperand(0).getReg())
118 MBB.insert((MachineBasicBlock::iterator)&Root, MIB);
120 // Check if MRI has only one non dbg use, which is Root
124 Root.eraseFromParentAndMarkDBGValuesForRemoval();