Lines Matching defs:ReplVal
1819 /// \p ReplVal if given.
1822 Value *ReplVal = nullptr) {
1824 if (!UV || UV->size() + (ReplVal != nullptr) < 2)
1829 << (ReplVal ? " with an existing value\n" : "\n") << "\n");
1831 assert((!ReplVal || (isa<Argument>(ReplVal) &&
1832 cast<Argument>(ReplVal)->getParent() == &F)) &&
1848 if (!ReplVal) {
1862 if (!ReplVal)
1863 ReplVal = CI;
1866 if (!ReplVal)
1869 cast<Instruction>(ReplVal)->moveBefore(IP->getIterator());
1875 if (CallBase *CI = dyn_cast<CallBase>(ReplVal)) {
1887 if (!CI || CI == ReplVal || &F != &Caller)
1900 CI->replaceAllUsesWith(ReplVal);
2340 std::optional<Value *> ReplVal = getValueForCall(A, I, ICV);
2341 if (ReplVal && ValuesMap.insert(std::make_pair(&I, *ReplVal)).second)
2429 std::optional<Value *> ReplVal;
2444 if (!ReplVal) {
2445 ReplVal = NewReplVal;
2451 if (ReplVal != NewReplVal)
2462 if (!ReplVal) {
2463 ReplVal = NewReplVal;
2469 if (ReplVal != NewReplVal)
2474 if (CurrBB == I->getParent() && ReplVal)
2475 return ReplVal;
2483 return ReplVal;
2524 std::optional<Value *> &ReplVal = ICVReplacementValuesMap[ICV];
2546 if (UniqueICVValue == ReplVal)
2549 ReplVal = UniqueICVValue;
2581 if (!ReplVal || !*ReplVal)
2584 A.changeAfterManifest(IRPosition::inst(*getCtxI()), **ReplVal);
2599 std::optional<Value *> ReplVal;
2612 if (ReplVal == NewReplVal)
2615 ReplVal = NewReplVal;
2623 return ReplVal;
2667 std::optional<Value *> &ReplVal = ICVReplacementValuesMap[ICV];
2671 if (ReplVal == NewReplVal)
2674 ReplVal = NewReplVal;