Lines Matching refs:LoopVal
415 unsigned &InitVal, unsigned &LoopVal) { in getPhiRegs() argument
419 LoopVal = 0; in getPhiRegs()
424 LoopVal = Phi.getOperand(i).getReg(); in getPhiRegs()
426 assert(InitVal != 0 && LoopVal != 0 && "Unexpected Phi structure."); in getPhiRegs()
2129 unsigned LoopVal = 0; in generateExistingPhis() local
2130 getPhiRegs(*BBI, BB, InitVal, LoopVal); in generateExistingPhis()
2135 unsigned PhiOp2 = LoopVal; in generateExistingPhis()
2136 if (VRMap[LastStageNum].count(LoopVal)) in generateExistingPhis()
2137 PhiOp2 = VRMap[LastStageNum][LoopVal]; in generateExistingPhis()
2141 Schedule.stageScheduled(getSUnit(MRI.getVRegDef(LoopVal))); in generateExistingPhis()
2146 unsigned NewReg = VRMap[PrevStage][LoopVal]; in generateExistingPhis()
2149 if (VRMap[CurStageNum].count(LoopVal)) in generateExistingPhis()
2150 VRMap[CurStageNum][Def] = VRMap[CurStageNum][LoopVal]; in generateExistingPhis()
2184 VRMap[PrologStage - StageDiff - np].count(LoopVal) != 0) in generateExistingPhis()
2185 PhiOp1 = VRMap[PrologStage - StageDiff - np][LoopVal]; in generateExistingPhis()
2191 PhiOp1 = LoopVal; in generateExistingPhis()
2218 MachineInstr *PhiInst = MRI.getVRegDef(LoopVal); in generateExistingPhis()
2231 VRMap[PrevStage - StageDiffAdj].count(LoopVal)) in generateExistingPhis()
2232 PhiOp2 = VRMap[PrevStage - StageDiffAdj][LoopVal]; in generateExistingPhis()
2240 VRMap[PrevStage - StageDiffAdj - np].count(LoopVal)) in generateExistingPhis()
2241 PhiOp2 = VRMap[PrevStage - StageDiffAdj - np][LoopVal]; in generateExistingPhis()
2255 int LVNumStages = Schedule.getStagesForPhi(LoopVal); in generateExistingPhis()
2259 if (LVNumStages > (int)np && VRMap[CurStageNum].count(LoopVal)) { in generateExistingPhis()
2266 if (VRMap[ReuseStage - np].count(LoopVal)) { in generateExistingPhis()
2267 NewReg = VRMap[ReuseStage - np][LoopVal]; in generateExistingPhis()
2274 if (VRMap[LastStageNum - np - 1].count(LoopVal)) in generateExistingPhis()
2275 PhiOp2 = VRMap[LastStageNum - np - 1][LoopVal]; in generateExistingPhis()
2284 VRMap[CurStageNum - StageDiff - np].count(LoopVal)) in generateExistingPhis()
2285 PhiOp2 = VRMap[CurStageNum - StageDiff - np][LoopVal]; in generateExistingPhis()
2303 if (InKernel && VRMap[PrevStage - np].count(LoopVal)) in generateExistingPhis()
2304 PrevReg = VRMap[PrevStage - np][LoopVal]; in generateExistingPhis()
2335 if (NumStages == 0 && IsLast && VRMap[CurStageNum].count(LoopVal)) in generateExistingPhis()
2336 replaceRegUsesAfterLoop(Def, VRMap[CurStageNum][LoopVal], BB, MRI, LIS); in generateExistingPhis()
2822 unsigned LoopVal, unsigned LoopStage, in getPrevMapVal() argument
2827 MachineInstr *LoopInst = MRI.getVRegDef(LoopVal); in getPrevMapVal()
2828 if (PhiStage == LoopStage && VRMap[StageNum - 1].count(LoopVal)) in getPrevMapVal()
2830 PrevVal = VRMap[StageNum - 1][LoopVal]; in getPrevMapVal()
2831 else if (VRMap[StageNum].count(LoopVal)) in getPrevMapVal()
2834 PrevVal = VRMap[StageNum][LoopVal]; in getPrevMapVal()
2837 PrevVal = LoopVal; in getPrevMapVal()
2861 unsigned LoopVal = 0; in rewritePhiValues() local
2862 getPhiRegs(PHI, BB, InitVal, LoopVal); in rewritePhiValues()
2868 (unsigned)Schedule.stageScheduled(getSUnit(MRI.getVRegDef(LoopVal))); in rewritePhiValues()
2874 getPrevMapVal(StageNum - np, PhiStage, LoopVal, LoopStage, VRMap, BB); in rewritePhiValues()
3088 unsigned LoopVal = 0; in isLoopCarriedDep() local
3089 getPhiRegs(*Def, BB, InitVal, LoopVal); in isLoopCarriedDep()
3090 MachineInstr *LoopDef = MRI.getVRegDef(LoopVal); in isLoopCarriedDep()
3418 unsigned LoopVal = 0; in isLoopCarried() local
3419 getPhiRegs(Phi, Phi.getParent(), InitVal, LoopVal); in isLoopCarried()
3420 SUnit *UseSU = SSD->getSUnit(MRI.getVRegDef(LoopVal)); in isLoopCarried()