Lines Matching refs:IV
232 LatticeVal &IV = TrackedGlobals[GV];
234 IV.markConstant(GV->getInitializer());
309 void markConstant(LatticeVal &IV, Value *V, Constant *C) {
310 if (!IV.markConstant(C)) return;
312 if (IV.isOverdefined())
325 LatticeVal &IV = ValueState[V];
326 IV.markForcedConstant(C);
328 if (IV.isOverdefined())
338 void markOverdefined(LatticeVal &IV, Value *V) {
339 if (!IV.markOverdefined()) return;
350 void mergeInValue(LatticeVal &IV, Value *V, LatticeVal MergeWithV) {
351 if (IV.isOverdefined() || MergeWithV.isUndefined())
354 markOverdefined(IV, V);
355 else if (IV.isUndefined())
356 markConstant(IV, V, MergeWithV.getConstant());
357 else if (IV.getConstant() != MergeWithV.getConstant())
358 markOverdefined(IV, V);
684 LatticeVal IV = getValueState(PN.getIncomingValue(i));
685 if (IV.isUndefined()) continue; // Doesn't influence PHI node.
690 if (IV.isOverdefined()) // PHI node becomes overdefined!
694 OperandVal = IV.getConstant();
704 if (IV.getConstant() != OperandVal)
859 LatticeVal &IV = ValueState[&I];
860 if (IV.isOverdefined()) return;
863 return markConstant(IV, &I,
887 markConstant(IV, &I, Constant::getNullValue(I.getType()));
889 markConstant(IV, &I, Constant::getAllOnesValue(PT));
891 markConstant(IV, &I,
899 return markConstant(IV
903 return markConstant(IV, &I, NonOverdefVal->getConstant());
917 LatticeVal &IV = ValueState[&I];
918 if (IV.isOverdefined()) return;
921 return markConstant(IV, &I, ConstantExpr::getCompare(I.getPredicate(),
1056 LatticeVal &IV = ValueState[&I];
1057 if (IV.isOverdefined()) return;
1060 return markOverdefined(IV, &I);
1066 return markConstant(IV, &I, UndefValue::get(I.getType()));
1075 mergeInValue(IV, &I, It->second);
1083 return markConstant(IV, &I, C);
1087 markOverdefined(IV, &I);
1618 LatticeVal IV = Solver.getLatticeValueFor(Inst);
1619 if (IV.isOverdefined())
1622 Constant *Const = IV.isConstant()
1623 ? IV.getConstant() : UndefValue::get(Inst->getType());
1783 LatticeVal IV = Solver.getLatticeValueFor(&*AI);
1784 if (IV.isOverdefined()) continue;
1786 Constant *CST = IV.isConstant() ?
1787 IV.getConstant() : UndefValue::get(AI->getType());
1825 LatticeVal IV = Solver.getLatticeValueFor(Inst);
1826 if (IV.isOverdefined())
1829 Constant *Const = IV.isConstant()
1830 ? IV.getConstant() : UndefValue::get(Inst->getType());