Lines Matching refs:MemInst

961   Value *getMatchingValue(LoadValue &InVal, ParseMemoryInst &MemInst,
1249 Value *EarlyCSE::getMatchingValue(LoadValue &InVal, ParseMemoryInst &MemInst, in getMatchingValue() argument
1253 if (InVal.MatchingId != MemInst.getMatchingId()) in getMatchingValue()
1256 if (MemInst.isVolatile() || !MemInst.isUnordered()) in getMatchingValue()
1259 if (MemInst.isLoad() && !InVal.IsAtomic && MemInst.isAtomic()) in getMatchingValue()
1265 bool MemInstMatching = !MemInst.isLoad(); in getMatchingValue()
1266 Instruction *Matching = MemInstMatching ? MemInst.get() : InVal.DefInst; in getMatchingValue()
1267 Instruction *Other = MemInstMatching ? InVal.DefInst : MemInst.get(); in getMatchingValue()
1271 Value *Result = MemInst.isStore() in getMatchingValue()
1274 if (MemInst.isStore() && InVal.DefInst != Result) in getMatchingValue()
1284 cast<IntrinsicInst>(MemInst.get()))) in getMatchingValue()
1288 if (!isOperatingOnInvariantMemAt(MemInst.get(), InVal.Generation) && in getMatchingValue()
1290 MemInst.get())) in getMatchingValue()
1552 ParseMemoryInst MemInst(&Inst, TTI); in processNode() local
1554 if (MemInst.isValid() && MemInst.isLoad()) { in processNode()
1557 if (MemInst.isVolatile() || !MemInst.isUnordered()) { in processNode()
1562 if (MemInst.isInvariantLoad()) { in processNode()
1580 LoadValue InVal = AvailableLoads.lookup(MemInst.getPointerOperand()); in processNode()
1581 if (Value *Op = getMatchingValue(InVal, MemInst, CurrentGeneration)) { in processNode()
1602 AvailableLoads.insert(MemInst.getPointerOperand(), in processNode()
1604 MemInst.getMatchingId(), in processNode()
1605 MemInst.isAtomic(), in processNode()
1606 MemInst.isLoad())); in processNode()
1618 !(MemInst.isValid() && !MemInst.mayReadFromMemory())) in processNode()
1691 if (MemInst.isValid() && MemInst.isStore()) { in processNode()
1692 LoadValue InVal = AvailableLoads.lookup(MemInst.getPointerOperand()); in processNode()
1694 InVal.DefInst == getMatchingValue(InVal, MemInst, CurrentGeneration)) { in processNode()
1701 MemInst.getPointerOperand() || in processNode()
1726 if (MemInst.isValid() && MemInst.isStore()) { in processNode()
1730 if (overridingStores(ParseMemoryInst(LastStore, TTI), MemInst)) { in processNode()
1752 AvailableLoads.insert(MemInst.getPointerOperand(), in processNode()
1754 MemInst.getMatchingId(), in processNode()
1755 MemInst.isAtomic(), in processNode()
1756 MemInst.isLoad())); in processNode()
1765 if (MemInst.isUnordered() && !MemInst.isVolatile()) in processNode()