Lines Matching defs:Offs
980 Instruction *Offs = cast<Instruction>(Offsets);
981 if (Offs->getOpcode() != Instruction::Add && !isAddLikeOr(Offs, *DL) &&
982 Offs->getOpcode() != Instruction::Mul &&
983 Offs->getOpcode() != Instruction::Shl)
988 if (!Offs->hasOneUse()) {
989 if (!hasAllGatScatUsers(Offs, *DL))
997 if (isa<PHINode>(Offs->getOperand(0))) {
998 Phi = cast<PHINode>(Offs->getOperand(0));
1000 } else if (isa<PHINode>(Offs->getOperand(1))) {
1001 Phi = cast<PHINode>(Offs->getOperand(1));
1005 if (isa<Instruction>(Offs->getOperand(0)) &&
1006 L->contains(cast<Instruction>(Offs->getOperand(0))))
1007 Changed |= optimiseOffsets(Offs->getOperand(0), BB, LI);
1008 if (isa<Instruction>(Offs->getOperand(1)) &&
1009 L->contains(cast<Instruction>(Offs->getOperand(1))))
1010 Changed |= optimiseOffsets(Offs->getOperand(1), BB, LI);
1013 if (isa<PHINode>(Offs->getOperand(0))) {
1014 Phi = cast<PHINode>(Offs->getOperand(0));
1016 } else if (isa<PHINode>(Offs->getOperand(1))) {
1017 Phi = cast<PHINode>(Offs->getOperand(1));
1038 Value *OffsSecondOperand = Offs->getOperand(OffsSecondOp);
1083 Builder.SetCurrentDebugLocation(Offs->getDebugLoc());
1085 switch (Offs->getOpcode()) {
1092 pushOutMulShl(Offs->getOpcode(), NewPhi, IncrementPerRound,
1102 Offs->replaceAllUsesWith(NewPhi);
1103 if (Offs->hasNUses(0))
1104 Offs->eraseFromParent();