Lines Matching refs:LoopVal

37                        unsigned &InitVal, unsigned &LoopVal) {  in getPhiRegs()  argument
41 LoopVal = 0; in getPhiRegs()
46 LoopVal = Phi.getOperand(i).getReg(); in getPhiRegs()
48 assert(InitVal != 0 && LoopVal != 0 && "Unexpected Phi structure."); in getPhiRegs()
380 unsigned LoopVal = 0; in generateExistingPhis() local
381 getPhiRegs(*BBI, BB, InitVal, LoopVal); in generateExistingPhis()
386 unsigned PhiOp2 = LoopVal; in generateExistingPhis()
387 if (VRMap[LastStageNum].count(LoopVal)) in generateExistingPhis()
388 PhiOp2 = VRMap[LastStageNum][LoopVal]; in generateExistingPhis()
391 int LoopValStage = Schedule.getStage(MRI.getVRegDef(LoopVal)); in generateExistingPhis()
396 unsigned NewReg = VRMap[PrevStage][LoopVal]; in generateExistingPhis()
399 if (VRMap[CurStageNum].count(LoopVal)) in generateExistingPhis()
400 VRMap[CurStageNum][Def] = VRMap[CurStageNum][LoopVal]; in generateExistingPhis()
434 VRMap[PrologStage - StageDiff - np].count(LoopVal) != 0) in generateExistingPhis()
435 PhiOp1 = VRMap[PrologStage - StageDiff - np][LoopVal]; in generateExistingPhis()
441 PhiOp1 = LoopVal; in generateExistingPhis()
468 MachineInstr *PhiInst = MRI.getVRegDef(LoopVal); in generateExistingPhis()
481 VRMap[PrevStage - StageDiffAdj].count(LoopVal)) in generateExistingPhis()
482 PhiOp2 = VRMap[PrevStage - StageDiffAdj][LoopVal]; in generateExistingPhis()
490 VRMap[PrevStage - StageDiffAdj - np].count(LoopVal)) in generateExistingPhis()
491 PhiOp2 = VRMap[PrevStage - StageDiffAdj - np][LoopVal]; in generateExistingPhis()
506 int LVNumStages = getStagesForPhi(LoopVal); in generateExistingPhis()
510 if (LVNumStages > (int)np && VRMap[CurStageNum].count(LoopVal)) { in generateExistingPhis()
517 if (VRMap[ReuseStage - np].count(LoopVal)) { in generateExistingPhis()
518 NewReg = VRMap[ReuseStage - np][LoopVal]; in generateExistingPhis()
525 if (VRMap[LastStageNum - np - 1].count(LoopVal)) in generateExistingPhis()
526 PhiOp2 = VRMap[LastStageNum - np - 1][LoopVal]; in generateExistingPhis()
535 VRMap[CurStageNum - StageDiff - np].count(LoopVal)) in generateExistingPhis()
536 PhiOp2 = VRMap[CurStageNum - StageDiff - np][LoopVal]; in generateExistingPhis()
554 if (InKernel && VRMap[PrevStage - np].count(LoopVal)) in generateExistingPhis()
555 PrevReg = VRMap[PrevStage - np][LoopVal]; in generateExistingPhis()
586 if (NumStages == 0 && IsLast && VRMap[CurStageNum].count(LoopVal)) in generateExistingPhis()
587 replaceRegUsesAfterLoop(Def, VRMap[CurStageNum][LoopVal], BB, MRI, LIS); in generateExistingPhis()
1061 unsigned StageNum, unsigned PhiStage, unsigned LoopVal, unsigned LoopStage, in getPrevMapVal() argument
1065 MachineInstr *LoopInst = MRI.getVRegDef(LoopVal); in getPrevMapVal()
1066 if (PhiStage == LoopStage && VRMap[StageNum - 1].count(LoopVal)) in getPrevMapVal()
1068 PrevVal = VRMap[StageNum - 1][LoopVal]; in getPrevMapVal()
1069 else if (VRMap[StageNum].count(LoopVal)) in getPrevMapVal()
1072 PrevVal = VRMap[StageNum][LoopVal]; in getPrevMapVal()
1075 PrevVal = LoopVal; in getPrevMapVal()
1098 unsigned LoopVal = 0; in rewritePhiValues() local
1099 getPhiRegs(PHI, BB, InitVal, LoopVal); in rewritePhiValues()
1103 unsigned LoopStage = (unsigned)Schedule.getStage(MRI.getVRegDef(LoopVal)); in rewritePhiValues()
1109 getPrevMapVal(StageNum - np, PhiStage, LoopVal, LoopStage, VRMap, BB); in rewritePhiValues()
1188 unsigned LoopVal = 0; in isLoopCarried() local
1189 getPhiRegs(Phi, Phi.getParent(), InitVal, LoopVal); in isLoopCarried()
1190 MachineInstr *Use = MRI.getVRegDef(LoopVal); in isLoopCarried()