Lines Matching defs:InVal
962 Value *getMatchingValue(LoadValue &InVal, ParseMemoryInst &MemInst,
1243 Value *EarlyCSE::getMatchingValue(LoadValue &InVal, ParseMemoryInst &MemInst,
1245 if (InVal.DefInst == nullptr)
1247 if (InVal.MatchingId != MemInst.getMatchingId())
1253 if (MemInst.isLoad() && !InVal.IsAtomic && MemInst.isAtomic())
1260 Instruction *Matching = MemInstMatching ? MemInst.get() : InVal.DefInst;
1261 Instruction *Other = MemInstMatching ? InVal.DefInst : MemInst.get();
1268 if (MemInst.isStore() && InVal.DefInst != Result)
1277 if (!isNonTargetIntrinsicMatch(cast<IntrinsicInst>(InVal.DefInst),
1282 if (!isOperatingOnInvariantMemAt(MemInst.get(), InVal.Generation) &&
1283 !isSameMemGeneration(InVal.Generation, CurrentGeneration, InVal.DefInst,
1305 // NB: Intersection of attrs between InVal.first and Inst is overly
1591 LoadValue InVal = AvailableLoads.lookup(MemInst.getPointerOperand());
1592 if (Value *Op = getMatchingValue(InVal, MemInst, CurrentGeneration)) {
1594 << " to: " << *InVal.DefInst << '\n');
1599 if (InVal.IsLoad)
1636 std::pair<Instruction *, unsigned> InVal = AvailableCalls.lookup(&Inst);
1637 if (InVal.first != nullptr &&
1638 isSameMemGeneration(InVal.second, CurrentGeneration, InVal.first,
1641 << " to: " << *InVal.first << '\n');
1646 combineIRFlags(Inst, InVal.first);
1648 Inst.replaceAllUsesWith(InVal.first);
1704 LoadValue InVal = AvailableLoads.lookup(MemInst.getPointerOperand());
1705 if (InVal.DefInst &&
1706 InVal.DefInst == getMatchingValue(InVal, MemInst, CurrentGeneration)) {