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 (VRMap[LastStageNum].count(LoopVal))
401 PhiOp2 = VRMap[LastStageNum][LoopVal];
404 int LoopValStage = Schedule.getStage(MRI.getVRegDef(LoopVal));
409 unsigned NewReg = VRMap[PrevStage][LoopVal];
412 if (VRMap[CurStageNum].count(LoopVal))
413 VRMap[CurStageNum][Def] = VRMap[CurStageNum][LoopVal];
447 VRMap[PrologStage - StageDiff - np].count(LoopVal) != 0)
448 PhiOp1 = VRMap[PrologStage - StageDiff - np][LoopVal];
454 PhiOp1 = LoopVal;
481 MachineInstr *PhiInst = MRI.getVRegDef(LoopVal);
494 VRMap[PrevStage - StageDiffAdj].count(LoopVal))
495 PhiOp2 = VRMap[PrevStage - StageDiffAdj][LoopVal];
503 VRMap[PrevStage - StageDiffAdj - np].count(LoopVal))
504 PhiOp2 = VRMap[PrevStage - StageDiffAdj - np][LoopVal];
519 int LVNumStages = getStagesForPhi(LoopVal);
523 if (LVNumStages > (int)np && VRMap[CurStageNum].count(LoopVal)) {
530 if (VRMap[ReuseStage - np].count(LoopVal)) {
531 NewReg = VRMap[ReuseStage - np][LoopVal];
538 if (VRMap[LastStageNum - np - 1].count(LoopVal))
539 PhiOp2 = VRMap[LastStageNum - np - 1][LoopVal];
548 VRMap[CurStageNum - StageDiff - np].count(LoopVal))
549 PhiOp2 = VRMap[CurStageNum - StageDiff - np][LoopVal];
567 if (InKernel && VRMap[PrevStage - np].count(LoopVal))
568 PrevReg = VRMap[PrevStage - np][LoopVal];
599 if (NumStages == 0 && IsLast && VRMap[CurStageNum].count(LoopVal))
600 replaceRegUsesAfterLoop(Def, VRMap[CurStageNum][LoopVal], BB, MRI, LIS);
1084 unsigned StageNum, unsigned PhiStage, unsigned LoopVal, unsigned LoopStage,
1088 MachineInstr *LoopInst = MRI.getVRegDef(LoopVal);
1089 if (PhiStage == LoopStage && VRMap[StageNum - 1].count(LoopVal))
1091 PrevVal = VRMap[StageNum - 1][LoopVal];
1092 else if (VRMap[StageNum].count(LoopVal))
1095 PrevVal = VRMap[StageNum][LoopVal];
1098 PrevVal = LoopVal;
1121 unsigned LoopVal = 0;
1122 getPhiRegs(PHI, BB, InitVal, LoopVal);
1126 unsigned LoopStage = (unsigned)Schedule.getStage(MRI.getVRegDef(LoopVal));
1132 getPrevMapVal(StageNum - np, PhiStage, LoopVal, LoopStage, VRMap, BB);
1211 unsigned LoopVal = 0;
1212 getPhiRegs(Phi, Phi.getParent(), InitVal, LoopVal);
1213 MachineInstr *Use = MRI.getVRegDef(LoopVal);
2366 unsigned InitVal, LoopVal;
2367 getPhiRegs(Phi, Loop, InitVal, LoopVal);
2368 if (LoopVal == Reg)
2723 unsigned InitVal, LoopVal;
2724 getPhiRegs(MI, MI.getParent(), InitVal, LoopVal);
2725 if (!Register(LoopVal).isVirtual() ||
2726 MRI.getVRegDef(LoopVal)->getParent() != BB) {
2732 if (UsedByPhi.count(LoopVal)) {
2737 UsedByPhi.insert(LoopVal);