Home | History | Annotate | Download | only in Analysis

Lines Matching refs:LHS

153                                  Value *LHS, Value *RHS) {
155 if (Constant *CLHS = dyn_cast<Constant>(LHS))
171 if (IP->getOpcode() == (unsigned)Opcode && IP->getOperand(0) == LHS &&
184 if (!L->isLoopInvariant(LHS) || !L->isLoopInvariant(RHS)) break;
193 Instruction *BO = cast<Instruction>(Builder.CreateBinOp(Opcode, LHS, RHS));
675 bool operator()(std::pair<const Loop *, const SCEV *> LHS,
678 if (LHS.second->getType()->isPointerTy() !=
680 return LHS.second->getType()->isPointerTy();
683 if (LHS.first != RHS.first)
684 return PickMostRelevantLoop(LHS.first, RHS.first, DT) != LHS.first;
689 if (LHS.second->isNonConstantNegative()) {
818 Value *LHS = expandCodeFor(S->getLHS(), Ty);
822 return InsertBinop(Instruction::LShr, LHS,
827 return InsertBinop(Instruction::UDiv, LHS, RHS);
1531 Value *LHS = expand(S->getOperand(S->getNumOperands()-1));
1532 Type *Ty = LHS->getType();
1538 LHS = InsertNoopCastOfTo(LHS, Ty);
1541 Value *ICmp = Builder.CreateICmpSGT(LHS, RHS);
1543 Value *Sel = Builder.CreateSelect(ICmp, LHS, RHS, "smax");
1545 LHS = Sel;
1549 if (LHS->getType() != S->getType())
1550 LHS = InsertNoopCastOfTo(LHS, S->getType());
1551 return LHS;
1555 Value *LHS = expand(S->getOperand(S->getNumOperands()-1));
1556 Type *Ty = LHS->getType();
1562 LHS = InsertNoopCastOfTo(LHS, Ty);
1565 Value *ICmp = Builder.CreateICmpUGT(LHS, RHS);
1567 Value *Sel = Builder.CreateSelect(ICmp, LHS, RHS, "umax");
1569 LHS = Sel;
1573 if (LHS->getType() != S->getType())
1574 LHS = InsertNoopCastOfTo(LHS, S->getType());
1575 return LHS;
1692 std::sort(Phis.begin(), Phis.end(), [](Value *LHS, Value *RHS) {
1694 if (!LHS->getType()->isIntegerTy() || !RHS->getType()->isIntegerTy())
1695 return RHS->getType()->isIntegerTy() && !LHS->getType()->isIntegerTy();
1697 LHS->getType()->getPrimitiveSizeInBits();