Home | History | Annotate | Download | only in Scalar

Lines Matching refs:Constant

50     /// Return a constant value for V usable at At and everything it
51 /// dominates. If no such Constant can be found, return nullptr.
52 Constant *getConstantAt(Value *V, Instruction *At);
83 if (isa<Constant>(S->getOperand(0))) return false;
85 Constant *C = LVI->getConstant(S->getOperand(0), S->getParent(), S);
110 if (isa<Constant>(Incoming)) continue;
124 if (Constant *C = LVI->getConstantOnEdge(
136 // Look if the select has a constant but LVI tells us that the incoming
137 // value can never be that constant. In that case replace the incoming
141 Constant *C = dyn_cast<Constant>(SI->getFalseValue());
179 if (isa<Constant>(Pointer)) return false;
181 Constant *C = LVI->getConstant(Pointer, I->getParent(), I);
195 Constant *Op1 = dyn_cast<Constant>(C->getOperand(1));
223 /// constant propagation would already have figured it out. Instead, walk the
337 Constant *CorrelatedValuePropagation::getConstantAt(Value *V, Instruction *At) {
338 if (Constant *C = LVI->getConstant(V, At->getParent(), At))
347 Constant *Op1 = dyn_cast<Constant>(C->getOperand(1));
403 // constant folding the return values of callees.
406 if (isa<Constant>(RetVal)) break; // nothing to do