Lines Matching refs:LoopVal
41 unsigned &InitVal, unsigned &LoopVal) { in getPhiRegs() argument
45 LoopVal = 0; in getPhiRegs()
50 LoopVal = Phi.getOperand(i).getReg(); in getPhiRegs()
52 assert(InitVal != 0 && LoopVal != 0 && "Unexpected Phi structure."); in getPhiRegs()
393 unsigned LoopVal = 0; in generateExistingPhis() local
394 getPhiRegs(*BBI, BB, InitVal, LoopVal); in generateExistingPhis()
399 unsigned PhiOp2 = LoopVal; in generateExistingPhis()
400 if (VRMap[LastStageNum].count(LoopVal)) in generateExistingPhis()
401 PhiOp2 = VRMap[LastStageNum][LoopVal]; in generateExistingPhis()
404 int LoopValStage = Schedule.getStage(MRI.getVRegDef(LoopVal)); in generateExistingPhis()
409 unsigned NewReg = VRMap[PrevStage][LoopVal]; in generateExistingPhis()
412 if (VRMap[CurStageNum].count(LoopVal)) in generateExistingPhis()
413 VRMap[CurStageNum][Def] = VRMap[CurStageNum][LoopVal]; in generateExistingPhis()
447 VRMap[PrologStage - StageDiff - np].count(LoopVal) != 0) in generateExistingPhis()
448 PhiOp1 = VRMap[PrologStage - StageDiff - np][LoopVal]; in generateExistingPhis()
454 PhiOp1 = LoopVal; in generateExistingPhis()
481 MachineInstr *PhiInst = MRI.getVRegDef(LoopVal); in generateExistingPhis()
494 VRMap[PrevStage - StageDiffAdj].count(LoopVal)) in generateExistingPhis()
495 PhiOp2 = VRMap[PrevStage - StageDiffAdj][LoopVal]; in generateExistingPhis()
503 VRMap[PrevStage - StageDiffAdj - np].count(LoopVal)) in generateExistingPhis()
504 PhiOp2 = VRMap[PrevStage - StageDiffAdj - np][LoopVal]; in generateExistingPhis()
519 int LVNumStages = getStagesForPhi(LoopVal); in generateExistingPhis()
523 if (LVNumStages > (int)np && VRMap[CurStageNum].count(LoopVal)) { in generateExistingPhis()
530 if (VRMap[ReuseStage - np].count(LoopVal)) { in generateExistingPhis()
531 NewReg = VRMap[ReuseStage - np][LoopVal]; in generateExistingPhis()
538 if (VRMap[LastStageNum - np - 1].count(LoopVal)) in generateExistingPhis()
539 PhiOp2 = VRMap[LastStageNum - np - 1][LoopVal]; in generateExistingPhis()
548 VRMap[CurStageNum - StageDiff - np].count(LoopVal)) in generateExistingPhis()
549 PhiOp2 = VRMap[CurStageNum - StageDiff - np][LoopVal]; in generateExistingPhis()
567 if (InKernel && VRMap[PrevStage - np].count(LoopVal)) in generateExistingPhis()
568 PrevReg = VRMap[PrevStage - np][LoopVal]; in generateExistingPhis()
599 if (NumStages == 0 && IsLast && VRMap[CurStageNum].count(LoopVal)) in generateExistingPhis()
600 replaceRegUsesAfterLoop(Def, VRMap[CurStageNum][LoopVal], BB, MRI, LIS); in generateExistingPhis()
1084 unsigned StageNum, unsigned PhiStage, unsigned LoopVal, unsigned LoopStage, in getPrevMapVal() argument
1088 MachineInstr *LoopInst = MRI.getVRegDef(LoopVal); in getPrevMapVal()
1089 if (PhiStage == LoopStage && VRMap[StageNum - 1].count(LoopVal)) in getPrevMapVal()
1091 PrevVal = VRMap[StageNum - 1][LoopVal]; in getPrevMapVal()
1092 else if (VRMap[StageNum].count(LoopVal)) in getPrevMapVal()
1095 PrevVal = VRMap[StageNum][LoopVal]; in getPrevMapVal()
1098 PrevVal = LoopVal; in getPrevMapVal()
1121 unsigned LoopVal = 0; in rewritePhiValues() local
1122 getPhiRegs(PHI, BB, InitVal, LoopVal); in rewritePhiValues()
1126 unsigned LoopStage = (unsigned)Schedule.getStage(MRI.getVRegDef(LoopVal)); in rewritePhiValues()
1132 getPrevMapVal(StageNum - np, PhiStage, LoopVal, LoopStage, VRMap, BB); in rewritePhiValues()
1211 unsigned LoopVal = 0; in isLoopCarried() local
1212 getPhiRegs(Phi, Phi.getParent(), InitVal, LoopVal); in isLoopCarried()
1213 MachineInstr *Use = MRI.getVRegDef(LoopVal); in isLoopCarried()
2366 unsigned InitVal, LoopVal; in getLoopPhiUser() local
2367 getPhiRegs(Phi, Loop, InitVal, LoopVal); in getLoopPhiUser()
2368 if (LoopVal == Reg) in getLoopPhiUser()
2723 unsigned InitVal, LoopVal; in canApply() local
2724 getPhiRegs(MI, MI.getParent(), InitVal, LoopVal); in canApply()
2725 if (!Register(LoopVal).isVirtual() || in canApply()
2726 MRI.getVRegDef(LoopVal)->getParent() != BB) { in canApply()
2732 if (UsedByPhi.count(LoopVal)) { in canApply()
2737 UsedByPhi.insert(LoopVal); in canApply()