Lines Matching defs:IV

229       LatticeVal &IV = TrackedGlobals[GV];
231 IV.markConstant(GV->getInitializer());
306 void markConstant(LatticeVal &IV, Value *V, Constant *C) {
307 if (!IV.markConstant(C)) return;
309 if (IV.isOverdefined())
322 LatticeVal &IV = ValueState[V];
323 IV.markForcedConstant(C);
325 if (IV.isOverdefined())
335 void markOverdefined(LatticeVal &IV, Value *V) {
336 if (!IV.markOverdefined()) return;
347 void mergeInValue(LatticeVal &IV, Value *V, LatticeVal MergeWithV) {
348 if (IV.isOverdefined() || MergeWithV.isUndefined())
351 markOverdefined(IV, V);
352 else if (IV.isUndefined())
353 markConstant(IV, V, MergeWithV.getConstant());
354 else if (IV.getConstant() != MergeWithV.getConstant())
355 markOverdefined(IV, V);
673 LatticeVal IV = getValueState(PN.getIncomingValue(i));
674 if (IV.isUndefined()) continue; // Doesn't influence PHI node.
679 if (IV.isOverdefined()) // PHI node becomes overdefined!
683 OperandVal = IV.getConstant();
693 if (IV.getConstant() != OperandVal)
848 LatticeVal &IV = ValueState[&I];
849 if (IV.isOverdefined()) return;
852 return markConstant(IV, &I,
876 markConstant(IV, &I, Constant::getNullValue(I.getType()));
878 markConstant(IV, &I, Constant::getAllOnesValue(PT));
880 markConstant(IV, &I,
888 return markConstant(IV, &I, NonOverdefVal->getConstant());
892 return markConstant(IV, &I, NonOverdefVal->getConstant());
906 LatticeVal &IV = ValueState[&I];
907 if (IV.isOverdefined()) return;
910 return markConstant(IV, &I, ConstantExpr::getCompare(I.getPredicate(),
1044 LatticeVal &IV = ValueState[&I];
1045 if (IV.isOverdefined()) return;
1048 return markOverdefined(IV, &I);
1054 return markConstant(IV, &I, Constant::getNullValue(I.getType()));
1063 mergeInValue(IV, &I, It->second);
1071 return markConstant(IV, &I, C);
1075 markOverdefined(IV, &I);
1601 LatticeVal IV = Solver.getLatticeValueFor(Inst);
1602 if (IV.isOverdefined())
1605 Constant *Const = IV.isConstant()
1606 ? IV.getConstant() : UndefValue::get(Inst->getType());
1765 LatticeVal IV = Solver.getLatticeValueFor(AI);
1766 if (IV.isOverdefined()) continue;
1768 Constant *CST = IV.isConstant() ?
1769 IV.getConstant() : UndefValue::get(AI->getType());
1809 LatticeVal IV = Solver.getLatticeValueFor(Inst);
1810 if (IV.isOverdefined())
1813 Constant *Const = IV.isConstant()
1814 ? IV.getConstant() : UndefValue::get(Inst->getType());