Lines Matching refs:LoopVal

36                        unsigned &InitVal, unsigned &LoopVal) {  in getPhiRegs()  argument
40 LoopVal = 0; in getPhiRegs()
45 LoopVal = Phi.getOperand(i).getReg(); in getPhiRegs()
47 assert(InitVal != 0 && LoopVal != 0 && "Unexpected Phi structure."); in getPhiRegs()
388 unsigned LoopVal = 0; in generateExistingPhis() local
389 getPhiRegs(*BBI, BB, InitVal, LoopVal); in generateExistingPhis()
394 unsigned PhiOp2 = LoopVal; in generateExistingPhis()
395 if (VRMap[LastStageNum].count(LoopVal)) in generateExistingPhis()
396 PhiOp2 = VRMap[LastStageNum][LoopVal]; in generateExistingPhis()
399 int LoopValStage = Schedule.getStage(MRI.getVRegDef(LoopVal)); in generateExistingPhis()
404 unsigned NewReg = VRMap[PrevStage][LoopVal]; in generateExistingPhis()
407 if (VRMap[CurStageNum].count(LoopVal)) in generateExistingPhis()
408 VRMap[CurStageNum][Def] = VRMap[CurStageNum][LoopVal]; in generateExistingPhis()
442 VRMap[PrologStage - StageDiff - np].count(LoopVal) != 0) in generateExistingPhis()
443 PhiOp1 = VRMap[PrologStage - StageDiff - np][LoopVal]; in generateExistingPhis()
449 PhiOp1 = LoopVal; in generateExistingPhis()
476 MachineInstr *PhiInst = MRI.getVRegDef(LoopVal); in generateExistingPhis()
489 VRMap[PrevStage - StageDiffAdj].count(LoopVal)) in generateExistingPhis()
490 PhiOp2 = VRMap[PrevStage - StageDiffAdj][LoopVal]; in generateExistingPhis()
498 VRMap[PrevStage - StageDiffAdj - np].count(LoopVal)) in generateExistingPhis()
499 PhiOp2 = VRMap[PrevStage - StageDiffAdj - np][LoopVal]; in generateExistingPhis()
514 int LVNumStages = getStagesForPhi(LoopVal); in generateExistingPhis()
518 if (LVNumStages > (int)np && VRMap[CurStageNum].count(LoopVal)) { in generateExistingPhis()
525 if (VRMap[ReuseStage - np].count(LoopVal)) { in generateExistingPhis()
526 NewReg = VRMap[ReuseStage - np][LoopVal]; in generateExistingPhis()
533 if (VRMap[LastStageNum - np - 1].count(LoopVal)) in generateExistingPhis()
534 PhiOp2 = VRMap[LastStageNum - np - 1][LoopVal]; in generateExistingPhis()
543 VRMap[CurStageNum - StageDiff - np].count(LoopVal)) in generateExistingPhis()
544 PhiOp2 = VRMap[CurStageNum - StageDiff - np][LoopVal]; in generateExistingPhis()
562 if (InKernel && VRMap[PrevStage - np].count(LoopVal)) in generateExistingPhis()
563 PrevReg = VRMap[PrevStage - np][LoopVal]; in generateExistingPhis()
594 if (NumStages == 0 && IsLast && VRMap[CurStageNum].count(LoopVal)) in generateExistingPhis()
595 replaceRegUsesAfterLoop(Def, VRMap[CurStageNum][LoopVal], BB, MRI, LIS); in generateExistingPhis()
1080 unsigned StageNum, unsigned PhiStage, unsigned LoopVal, unsigned LoopStage, in getPrevMapVal() argument
1084 MachineInstr *LoopInst = MRI.getVRegDef(LoopVal); in getPrevMapVal()
1085 if (PhiStage == LoopStage && VRMap[StageNum - 1].count(LoopVal)) in getPrevMapVal()
1087 PrevVal = VRMap[StageNum - 1][LoopVal]; in getPrevMapVal()
1088 else if (VRMap[StageNum].count(LoopVal)) in getPrevMapVal()
1091 PrevVal = VRMap[StageNum][LoopVal]; in getPrevMapVal()
1094 PrevVal = LoopVal; in getPrevMapVal()
1117 unsigned LoopVal = 0; in rewritePhiValues() local
1118 getPhiRegs(PHI, BB, InitVal, LoopVal); in rewritePhiValues()
1122 unsigned LoopStage = (unsigned)Schedule.getStage(MRI.getVRegDef(LoopVal)); in rewritePhiValues()
1128 getPrevMapVal(StageNum - np, PhiStage, LoopVal, LoopStage, VRMap, BB); in rewritePhiValues()
1201 unsigned LoopVal = 0; in isLoopCarried() local
1202 getPhiRegs(Phi, Phi.getParent(), InitVal, LoopVal); in isLoopCarried()
1203 MachineInstr *Use = MRI.getVRegDef(LoopVal); in isLoopCarried()