Lines Matching refs:Root
74 static bool isCVTAToLocalCombinationCandidate(MachineInstr &Root) { in isCVTAToLocalCombinationCandidate() argument
75 auto &MBB = *Root.getParent(); in isCVTAToLocalCombinationCandidate()
78 if (Root.getOpcode() != NVPTX::cvta_to_local_yes_64 && in isCVTAToLocalCombinationCandidate()
79 Root.getOpcode() != NVPTX::cvta_to_local_yes) in isCVTAToLocalCombinationCandidate()
82 auto &Op = Root.getOperand(1); in isCVTAToLocalCombinationCandidate()
105 static void CombineCVTAToLocal(MachineInstr &Root) { in CombineCVTAToLocal() argument
106 auto &MBB = *Root.getParent(); in CombineCVTAToLocal()
110 auto &Prev = *MRI.getUniqueVRegDef(Root.getOperand(1).getReg()); in CombineCVTAToLocal()
113 BuildMI(MF, Root.getDebugLoc(), TII->get(Prev.getOpcode()), in CombineCVTAToLocal()
114 Root.getOperand(0).getReg()) in CombineCVTAToLocal()
118 MBB.insert((MachineBasicBlock::iterator)&Root, MIB); in CombineCVTAToLocal()
124 Root.eraseFromParentAndMarkDBGValuesForRemoval(); in CombineCVTAToLocal()