Lines Matching refs:Result
230 // a function. The correct result is to pick up RHS.
367 LVILatticeVal &Result);
535 LVILatticeVal Result;
587 LVILatticeVal Result; // Start Undefined.
617 Result = LVILatticeVal::getNot(ConstantPointerNull::get(PTy));
619 Result.markOverdefined();
621 BBLV = Result;
626 // result.
634 Result.mergeIn(EdgeResult);
638 if (Result.isOverdefined()) {
645 Result = LVILatticeVal::getNot(ConstantPointerNull::get(PTy));
648 BBLV = Result;
656 assert(!Result.isOverdefined());
657 BBLV = Result;
663 LVILatticeVal Result; // Start Undefined.
666 // result.
676 Result.mergeIn(EdgeResult);
680 if (Result.isOverdefined()) {
684 BBLV = Result;
692 assert(!Result.isOverdefined() && "Possible PHI in entry block?");
693 BBLV = Result;
727 LVILatticeVal Result;
730 Result.markConstantRange(LHSRange.add(RHSRange));
733 Result.markConstantRange(LHSRange.sub(RHSRange));
736 Result.markConstantRange(LHSRange.multiply(RHSRange));
739 Result.markConstantRange(LHSRange.udiv(RHSRange));
742 Result.markConstantRange(LHSRange.shl(RHSRange));
745 Result.markConstantRange(LHSRange.lshr(RHSRange));
748 Result.markConstantRange(LHSRange.truncate(ResultTy->getBitWidth()));
751 Result.markConstantRange(LHSRange.signExtend(ResultTy->getBitWidth()));
754 Result.markConstantRange(LHSRange.zeroExtend(ResultTy->getBitWidth()));
757 Result.markConstantRange(LHSRange);
760 Result.markConstantRange(LHSRange.binaryAnd(RHSRange));
763 Result.markConstantRange(LHSRange.binaryOr(RHSRange));
770 Result.markOverdefined();
774 BBLV = Result;
781 BasicBlock *BBTo, LVILatticeVal &Result) {
796 Result = LVILatticeVal::get(ConstantInt::get(
809 Result = LVILatticeVal::get(cast<Constant>(ICI->getOperand(1)));
811 Result = LVILatticeVal::getNot(cast<Constant>(ICI->getOperand(1)));
835 Result = LVILatticeVal::getRange(TrueValues);
863 Result = LVILatticeVal::getRange(EdgesVals);
872 BasicBlock *BBTo, LVILatticeVal &Result) {
875 Result = LVILatticeVal::get(VC);
879 if (getEdgeValueLocal(Val, BBFrom, BBTo, Result)) {
880 if (!Result.isConstantRange() ||
881 Result.getConstantRange().getSingleElement())
898 Result.getConstantRange().intersectWith(InBlock.getConstantRange());
899 Result = LVILatticeVal::getRange(Range);
909 Result = getBlockValue(Val, BBFrom);
919 LVILatticeVal Result = getBlockValue(V, BB);
921 DEBUG(dbgs() << " Result = " << Result << "\n");
922 return Result;
930 LVILatticeVal Result;
931 if (!getEdgeValue(V, FromBB, ToBB, Result)) {
933 bool WasFastQuery = getEdgeValue(V, FromBB, ToBB, Result);
938 DEBUG(dbgs() << " Result = " << Result << "\n");
939 return Result;
1039 LVILatticeVal Result = getCache(PImpl).getValueInBlock(V, BB);
1041 if (Result.isConstant())
1042 return Result.getConstant();
1043 if (Result.isConstantRange()) {
1044 ConstantRange CR = Result.getConstantRange();
1055 LVILatticeVal Result = getCache(PImpl).getValueOnEdge(V, FromBB, ToBB);
1057 if (Result.isConstant())
1058 return Result.getConstant();
1059 if (Result.isConstantRange()) {
1060 ConstantRange CR = Result.getConstantRange();
1073 LVILatticeVal Result = getCache(PImpl).getValueOnEdge(V, FromBB, ToBB);
1077 if (Result.isConstant()) {
1078 Res = ConstantFoldCompareInstOperands(Pred, Result.getConstant(), C, DL,
1085 if (Result.isConstantRange()) {
1089 ConstantRange CR = Result.getConstantRange();
1114 if (Result.isNotConstant()) {
1120 Result.getNotConstant(), C, DL,
1127 Result.getNotConstant(), C, DL,