Lines Matching refs:ReplVal

1819                                Value *ReplVal = nullptr) {  in deduplicateRuntimeCalls()
1821 if (!UV || UV->size() + (ReplVal != nullptr) < 2) in deduplicateRuntimeCalls()
1826 << (ReplVal ? " with an existing value\n" : "\n") << "\n"); in deduplicateRuntimeCalls()
1828 assert((!ReplVal || (isa<Argument>(ReplVal) && in deduplicateRuntimeCalls()
1829 cast<Argument>(ReplVal)->getParent() == &F)) && in deduplicateRuntimeCalls()
1845 if (!ReplVal) { in deduplicateRuntimeCalls()
1859 if (!ReplVal) in deduplicateRuntimeCalls()
1860 ReplVal = CI; in deduplicateRuntimeCalls()
1863 if (!ReplVal) in deduplicateRuntimeCalls()
1866 cast<Instruction>(ReplVal)->moveBefore(IP); in deduplicateRuntimeCalls()
1872 if (CallBase *CI = dyn_cast<CallBase>(ReplVal)) { in deduplicateRuntimeCalls()
1884 if (!CI || CI == ReplVal || &F != &Caller) in deduplicateRuntimeCalls()
1898 CI->replaceAllUsesWith(ReplVal); in deduplicateRuntimeCalls()
2338 std::optional<Value *> ReplVal = getValueForCall(A, I, ICV); in updateImpl() local
2339 if (ReplVal && ValuesMap.insert(std::make_pair(&I, *ReplVal)).second) in updateImpl()
2427 std::optional<Value *> ReplVal; in getReplacementValue() local
2442 if (!ReplVal) { in getReplacementValue()
2443 ReplVal = NewReplVal; in getReplacementValue()
2449 if (ReplVal != NewReplVal) in getReplacementValue()
2460 if (!ReplVal) { in getReplacementValue()
2461 ReplVal = NewReplVal; in getReplacementValue()
2467 if (ReplVal != NewReplVal) in getReplacementValue()
2472 if (CurrBB == I->getParent() && ReplVal) in getReplacementValue()
2473 return ReplVal; in getReplacementValue()
2481 return ReplVal; in getReplacementValue()
2522 std::optional<Value *> &ReplVal = ICVReplacementValuesMap[ICV]; in updateImpl() local
2544 if (UniqueICVValue == ReplVal) in updateImpl()
2547 ReplVal = UniqueICVValue; in updateImpl()
2579 if (!ReplVal || !*ReplVal) in manifest()
2582 A.changeAfterManifest(IRPosition::inst(*getCtxI()), **ReplVal); in manifest()
2597 std::optional<Value *> ReplVal; member
2610 if (ReplVal == NewReplVal) in updateImpl()
2613 ReplVal = NewReplVal; in updateImpl()
2621 return ReplVal; in getUniqueReplacementValue()
2665 std::optional<Value *> &ReplVal = ICVReplacementValuesMap[ICV]; in updateImpl() local
2669 if (ReplVal == NewReplVal) in updateImpl()
2672 ReplVal = NewReplVal; in updateImpl()