Lines Matching refs:Reg
64 unsigned Reg = *I; in StartBlock() local
65 Classes[Reg] = reinterpret_cast<TargetRegisterClass *>(-1); in StartBlock()
66 KillIndices[Reg] = BB->size(); in StartBlock()
67 DefIndices[Reg] = ~0u; in StartBlock()
70 for (const unsigned *Alias = TRI->getAliasSet(Reg); *Alias; ++Alias) { in StartBlock()
86 unsigned Reg = *I; in StartBlock() local
87 Classes[Reg] = reinterpret_cast<TargetRegisterClass *>(-1); in StartBlock()
88 KillIndices[Reg] = BB->size(); in StartBlock()
89 DefIndices[Reg] = ~0u; in StartBlock()
92 for (const unsigned *Alias = TRI->getAliasSet(Reg); *Alias; ++Alias) { in StartBlock()
106 unsigned Reg = *I; in StartBlock() local
107 if (!IsReturnBlock && !Pristine.test(Reg)) continue; in StartBlock()
108 Classes[Reg] = reinterpret_cast<TargetRegisterClass *>(-1); in StartBlock()
109 KillIndices[Reg] = BB->size(); in StartBlock()
110 DefIndices[Reg] = ~0u; in StartBlock()
113 for (const unsigned *Alias = TRI->getAliasSet(Reg); *Alias; ++Alias) { in StartBlock()
133 for (unsigned Reg = 0; Reg != TRI->getNumRegs(); ++Reg) { in Observe() local
134 if (KillIndices[Reg] != ~0u) { in Observe()
138 Classes[Reg] = reinterpret_cast<TargetRegisterClass *>(-1); in Observe()
139 KillIndices[Reg] = Count; in Observe()
140 } else if (DefIndices[Reg] < InsertPosIndex && DefIndices[Reg] >= Count) { in Observe()
145 Classes[Reg] = reinterpret_cast<TargetRegisterClass *>(-1); in Observe()
149 DefIndices[Reg] = InsertPosIndex; in Observe()
205 unsigned Reg = MO.getReg(); in PrescanInstruction() local
206 if (Reg == 0) continue; in PrescanInstruction()
214 if (!Classes[Reg] && NewRC) in PrescanInstruction()
215 Classes[Reg] = NewRC; in PrescanInstruction()
216 else if (!NewRC || Classes[Reg] != NewRC) in PrescanInstruction()
217 Classes[Reg] = reinterpret_cast<TargetRegisterClass *>(-1); in PrescanInstruction()
220 for (const unsigned *Alias = TRI->getAliasSet(Reg); *Alias; ++Alias) { in PrescanInstruction()
227 Classes[Reg] = reinterpret_cast<TargetRegisterClass *>(-1); in PrescanInstruction()
232 if (Classes[Reg] != reinterpret_cast<TargetRegisterClass *>(-1)) in PrescanInstruction()
233 RegRefs.insert(std::make_pair(Reg, &MO)); in PrescanInstruction()
236 if (KeepRegs.insert(Reg)) { in PrescanInstruction()
237 for (const unsigned *Subreg = TRI->getSubRegisters(Reg); in PrescanInstruction()
257 unsigned Reg = MO.getReg(); in ScanInstruction() local
258 if (Reg == 0) continue; in ScanInstruction()
263 DefIndices[Reg] = Count; in ScanInstruction()
264 KillIndices[Reg] = ~0u; in ScanInstruction()
265 assert(((KillIndices[Reg] == ~0u) != in ScanInstruction()
266 (DefIndices[Reg] == ~0u)) && in ScanInstruction()
268 KeepRegs.erase(Reg); in ScanInstruction()
269 Classes[Reg] = 0; in ScanInstruction()
270 RegRefs.erase(Reg); in ScanInstruction()
272 for (const unsigned *Subreg = TRI->getSubRegisters(Reg); in ScanInstruction()
282 for (const unsigned *Super = TRI->getSuperRegisters(Reg); in ScanInstruction()
292 unsigned Reg = MO.getReg(); in ScanInstruction() local
293 if (Reg == 0) continue; in ScanInstruction()
302 if (!Classes[Reg] && NewRC) in ScanInstruction()
303 Classes[Reg] = NewRC; in ScanInstruction()
304 else if (!NewRC || Classes[Reg] != NewRC) in ScanInstruction()
305 Classes[Reg] = reinterpret_cast<TargetRegisterClass *>(-1); in ScanInstruction()
307 RegRefs.insert(std::make_pair(Reg, &MO)); in ScanInstruction()
310 if (KillIndices[Reg] == ~0u) { in ScanInstruction()
311 KillIndices[Reg] = Count; in ScanInstruction()
312 DefIndices[Reg] = ~0u; in ScanInstruction()
313 assert(((KillIndices[Reg] == ~0u) != in ScanInstruction()
314 (DefIndices[Reg] == ~0u)) && in ScanInstruction()
318 for (const unsigned *Alias = TRI->getAliasSet(Reg); *Alias; ++Alias) { in ScanInstruction()
446 for (unsigned Reg = 0; Reg < TRI->getNumRegs(); ++Reg) { in BreakAntiDependencies() local
447 if (KillIndices[Reg] == ~0u) in BreakAntiDependencies()
448 DEBUG(dbgs() << " " << TRI->getName(Reg)); in BreakAntiDependencies()
586 unsigned Reg = MO.getReg(); in BreakAntiDependencies() local
587 if (Reg == 0) continue; in BreakAntiDependencies()
588 if (MO.isUse() && TRI->regsOverlap(AntiDepReg, Reg)) { in BreakAntiDependencies()