Lines Matching refs:UMI
93 const UniqueMachineInstr &UMI) const { in isUniqueMachineInstValid()
101 void GISelCSEInfo::invalidateUniqueMachineInstr(UniqueMachineInstr *UMI) { in invalidateUniqueMachineInstr() argument
102 bool Removed = CSEMap.RemoveNode(UMI); in invalidateUniqueMachineInstr()
124 void GISelCSEInfo::insertNode(UniqueMachineInstr *UMI, void *InsertPos) { in insertNode() argument
126 assert(UMI); in insertNode()
127 UniqueMachineInstr *MaybeNewNode = UMI; in insertNode()
129 CSEMap.InsertNode(UMI, InsertPos); in insertNode()
131 MaybeNewNode = CSEMap.GetOrInsertNode(UMI); in insertNode()
132 if (MaybeNewNode != UMI) { in insertNode()
136 assert(InstrMapping.count(UMI->MI) == 0 && in insertNode()
138 InstrMapping[UMI->MI] = MaybeNewNode; in insertNode()
185 auto *UMI = InstrMapping.lookup(MI); in handleRecordedInst() local
187 if (UMI) { in handleRecordedInst()
189 invalidateUniqueMachineInstr(UMI); in handleRecordedInst()
193 if (UMI) { in handleRecordedInst()
196 *UMI = UniqueMachineInstr(MI); in handleRecordedInst()
197 insertNode(UMI, nullptr); in handleRecordedInst()
206 if (auto *UMI = InstrMapping.lookup(MI)) { in handleRemoveInst() local
207 invalidateUniqueMachineInstr(UMI); in handleRemoveInst()
282 const UniqueMachineInstr &UMI = *It; in verify() local
283 if (!InstrMapping.count(UMI.MI)) in verify()
285 "Node in CSE without InstrMapping", UMI.MI); in verify()
287 if (InstrMapping[UMI.MI] != &UMI) in verify()