Lines Matching defs:LoopVal

41                        unsigned &InitVal, unsigned &LoopVal) {
45 LoopVal = 0;
50 LoopVal = Phi.getOperand(i).getReg();
52 assert(InitVal != 0 && LoopVal != 0 && "Unexpected Phi structure.");
393 unsigned LoopVal = 0;
394 getPhiRegs(*BBI, BB, InitVal, LoopVal);
399 unsigned PhiOp2 = LoopVal;
400 if (auto It = VRMap[LastStageNum].find(LoopVal);
405 int LoopValStage = Schedule.getStage(MRI.getVRegDef(LoopVal));
410 unsigned NewReg = VRMap[PrevStage][LoopVal];
413 if (VRMap[CurStageNum].count(LoopVal))
414 VRMap[CurStageNum][Def] = VRMap[CurStageNum][LoopVal];
448 VRMap[PrologStage - StageDiff - np].count(LoopVal) != 0)
449 PhiOp1 = VRMap[PrologStage - StageDiff - np][LoopVal];
455 PhiOp1 = LoopVal;
482 MachineInstr *PhiInst = MRI.getVRegDef(LoopVal);
495 VRMap[PrevStage - StageDiffAdj].count(LoopVal))
496 PhiOp2 = VRMap[PrevStage - StageDiffAdj][LoopVal];
504 VRMap[PrevStage - StageDiffAdj - np].count(LoopVal))
505 PhiOp2 = VRMap[PrevStage - StageDiffAdj - np][LoopVal];
520 int LVNumStages = getStagesForPhi(LoopVal);
524 if (LVNumStages > (int)np && VRMap[CurStageNum].count(LoopVal)) {
531 if (VRMap[ReuseStage - np].count(LoopVal)) {
532 NewReg = VRMap[ReuseStage - np][LoopVal];
539 if (VRMap[LastStageNum - np - 1].count(LoopVal))
540 PhiOp2 = VRMap[LastStageNum - np - 1][LoopVal];
549 VRMap[CurStageNum - StageDiff - np].count(LoopVal))
550 PhiOp2 = VRMap[CurStageNum - StageDiff - np][LoopVal];
568 if (InKernel && VRMap[PrevStage - np].count(LoopVal))
569 PrevReg = VRMap[PrevStage - np][LoopVal];
600 if (NumStages == 0 && IsLast && VRMap[CurStageNum].count(LoopVal))
601 replaceRegUsesAfterLoop(Def, VRMap[CurStageNum][LoopVal], BB, MRI, LIS);
1085 unsigned StageNum, unsigned PhiStage, unsigned LoopVal, unsigned LoopStage,
1089 MachineInstr *LoopInst = MRI.getVRegDef(LoopVal);
1090 if (PhiStage == LoopStage && VRMap[StageNum - 1].count(LoopVal))
1092 PrevVal = VRMap[StageNum - 1][LoopVal];
1093 else if (VRMap[StageNum].count(LoopVal))
1096 PrevVal = VRMap[StageNum][LoopVal];
1099 PrevVal = LoopVal;
1122 unsigned LoopVal = 0;
1123 getPhiRegs(PHI, BB, InitVal, LoopVal);
1127 unsigned LoopStage = (unsigned)Schedule.getStage(MRI.getVRegDef(LoopVal));
1133 getPrevMapVal(StageNum - np, PhiStage, LoopVal, LoopStage, VRMap, BB);
1212 unsigned LoopVal = 0;
1213 getPhiRegs(Phi, Phi.getParent(), InitVal, LoopVal);
1214 MachineInstr *Use = MRI.getVRegDef(LoopVal);
2367 unsigned InitVal, LoopVal;
2368 getPhiRegs(Phi, Loop, InitVal, LoopVal);
2369 if (LoopVal == Reg)
2722 unsigned InitVal, LoopVal;
2723 getPhiRegs(MI, MI.getParent(), InitVal, LoopVal);
2724 if (!Register(LoopVal).isVirtual() ||
2725 MRI.getVRegDef(LoopVal)->getParent() != BB) {
2731 if (UsedByPhi.count(LoopVal)) {
2736 UsedByPhi.insert(LoopVal);