Lines Matching refs:SourceReg
72 static void phiInfoElementAddSource(PHIInfoElementT *Info, unsigned SourceReg,
75 unsigned SourceReg,
78 PHIInfoElementT *findPHIInfoElementFromSource(unsigned SourceReg,
87 void addSource(unsigned DestReg, unsigned SourceReg,
89 void removeSource(unsigned DestReg, unsigned SourceReg,
91 bool findDest(unsigned SourceReg, MachineBasicBlock *SourceMBB,
145 unsigned SourceReg, in phiInfoElementAddSource() argument
153 assert((SI.second != SourceMBB || SourceReg == SI.first)); in phiInfoElementAddSource()
157 phiInfoElementGetSources(Info).insert(PHISourceT(SourceReg, SourceMBB)); in phiInfoElementAddSource()
161 unsigned SourceReg, in phiInfoElementRemoveSource() argument
166 if (SI.first == SourceReg && in phiInfoElementRemoveSource()
188 PHILinearize::findPHIInfoElementFromSource(unsigned SourceReg, in findPHIInfoElementFromSource() argument
192 if (SI.first == SourceReg && in findPHIInfoElementFromSource()
235 void PHILinearize::addSource(unsigned DestReg, unsigned SourceReg, in addSource() argument
237 phiInfoElementAddSource(findPHIInfoElement(DestReg), SourceReg, SourceMBB); in addSource()
240 void PHILinearize::removeSource(unsigned DestReg, unsigned SourceReg, in removeSource() argument
242 phiInfoElementRemoveSource(findPHIInfoElement(DestReg), SourceReg, SourceMBB); in removeSource()
245 bool PHILinearize::findDest(unsigned SourceReg, MachineBasicBlock *SourceMBB, in findDest() argument
248 findPHIInfoElementFromSource(SourceReg, SourceMBB); in findDest()
1194 unsigned SourceReg);
1500 unsigned SourceReg = getPHISourceReg(PHI, i); in shrinkPHI() local
1502 MIB.addReg(SourceReg); in shrinkPHI()
1504 LLVM_DEBUG(dbgs() << printReg(SourceReg, TRI) << ", " in shrinkPHI()
1542 unsigned SourceReg = getPHISourceReg(PHI, i); in replacePHI() local
1544 MIB.addReg(SourceReg); in replacePHI()
1546 LLVM_DEBUG(dbgs() << printReg(SourceReg, TRI) << ", " in replacePHI()
1592 unsigned SourceReg = getPHISourceReg(PHI, i); in replaceEntryPHI() local
1594 MIB.addReg(SourceReg); in replaceEntryPHI()
1596 LLVM_DEBUG(dbgs() << printReg(SourceReg, TRI) << ", " in replaceEntryPHI()
1975 unsigned SourceReg) { in insertChainedPHI() argument
1980 MachineInstr *DefInstr = getDefInstr(SourceReg); in insertChainedPHI()
1986 InnerRegion->replaceRegisterInsideRegion(SourceReg, DestReg, true, MRI); in insertChainedPHI()
1993 PHIInfo.removeSource(DestReg, SourceReg, CodeBB); in insertChainedPHI()
2000 InnerRegion->replaceRegisterOutsideRegion(SourceReg, DestReg, false, MRI); in insertChainedPHI()
2007 SourceReg, IsLastDef); in insertChainedPHI()
2009 PHIInfo.removeSource(DestReg, SourceReg, CodeBB); in insertChainedPHI()
2109 unsigned SourceReg = (*SRI).first; in prunePHIInfo() local
2110 MachineOperand *Def = &(*(MRI->def_begin(SourceReg))); in prunePHIInfo()
2121 unsigned SourceReg = Source.first; in prunePHIInfo() local
2123 MachineOperand *Def = &(*(MRI->def_begin(SourceReg))); in prunePHIInfo()
2126 std::make_tuple(DestReg, SourceReg, SourceMBB)); in prunePHIInfo()
2158 unsigned SourceReg = (*SRI).first; in createEntryPHI() local
2159 replaceRegisterWith(DestReg, SourceReg); in createEntryPHI()
2169 unsigned SourceReg = (*SRI).first; in createEntryPHI() local
2173 CurrentBackedgeReg = SourceReg; in createEntryPHI()
2175 MachineInstr *PHIDefInstr = getDefInstr(SourceReg); in createEntryPHI()
2197 MIB.addReg(SourceReg); in createEntryPHI()
2199 LLVM_DEBUG(dbgs() << printReg(SourceReg, TRI) << ", " in createEntryPHI()
2269 unsigned SourceReg = (*SRI).first; in resolvePHIInfos() local
2271 << " SourceReg: " << printReg(SourceReg, TRI) << "\n"); in resolvePHIInfos()
2275 replaceRegisterWith(DestReg, SourceReg); in resolvePHIInfos()