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()
1897 CI->replaceAllUsesWith(ReplVal); in deduplicateRuntimeCalls()
2337 std::optional<Value *> ReplVal = getValueForCall(A, I, ICV); in updateImpl() local
2338 if (ReplVal && ValuesMap.insert(std::make_pair(&I, *ReplVal)).second) in updateImpl()
2426 std::optional<Value *> ReplVal; in getReplacementValue() local
2441 if (!ReplVal) { in getReplacementValue()
2442 ReplVal = NewReplVal; in getReplacementValue()
2448 if (ReplVal != NewReplVal) in getReplacementValue()
2459 if (!ReplVal) { in getReplacementValue()
2460 ReplVal = NewReplVal; in getReplacementValue()
2466 if (ReplVal != NewReplVal) in getReplacementValue()
2471 if (CurrBB == I->getParent() && ReplVal) in getReplacementValue()
2472 return ReplVal; in getReplacementValue()
2480 return ReplVal; in getReplacementValue()
2521 std::optional<Value *> &ReplVal = ICVReplacementValuesMap[ICV]; in updateImpl() local
2543 if (UniqueICVValue == ReplVal) in updateImpl()
2546 ReplVal = UniqueICVValue; in updateImpl()
2578 if (!ReplVal || !*ReplVal) in manifest()
2581 A.changeAfterManifest(IRPosition::inst(*getCtxI()), **ReplVal); in manifest()
2596 std::optional<Value *> ReplVal; member
2609 if (ReplVal == NewReplVal) in updateImpl()
2612 ReplVal = NewReplVal; in updateImpl()
2620 return ReplVal; in getUniqueReplacementValue()
2664 std::optional<Value *> &ReplVal = ICVReplacementValuesMap[ICV]; in updateImpl() local
2668 if (ReplVal == NewReplVal) in updateImpl()
2671 ReplVal = NewReplVal; in updateImpl()