Lines Matching refs:MemInst
833 Value *getMatchingValue(LoadValue &InVal, ParseMemoryInst &MemInst,
1118 Value *EarlyCSE::getMatchingValue(LoadValue &InVal, ParseMemoryInst &MemInst, in getMatchingValue() argument
1122 if (InVal.MatchingId != MemInst.getMatchingId()) in getMatchingValue()
1125 if (MemInst.isVolatile() || !MemInst.isUnordered()) in getMatchingValue()
1128 if (MemInst.isLoad() && !InVal.IsAtomic && MemInst.isAtomic()) in getMatchingValue()
1134 bool MemInstMatching = !MemInst.isLoad(); in getMatchingValue()
1135 Instruction *Matching = MemInstMatching ? MemInst.get() : InVal.DefInst; in getMatchingValue()
1136 Instruction *Other = MemInstMatching ? InVal.DefInst : MemInst.get(); in getMatchingValue()
1140 Value *Result = MemInst.isStore() in getMatchingValue()
1143 if (MemInst.isStore() && InVal.DefInst != Result) in getMatchingValue()
1153 cast<IntrinsicInst>(MemInst.get()))) in getMatchingValue()
1157 if (!isOperatingOnInvariantMemAt(MemInst.get(), InVal.Generation) && in getMatchingValue()
1159 MemInst.get())) in getMatchingValue()
1409 ParseMemoryInst MemInst(&Inst, TTI); in processNode() local
1411 if (MemInst.isValid() && MemInst.isLoad()) { in processNode()
1414 if (MemInst.isVolatile() || !MemInst.isUnordered()) { in processNode()
1419 if (MemInst.isInvariantLoad()) { in processNode()
1437 LoadValue InVal = AvailableLoads.lookup(MemInst.getPointerOperand()); in processNode()
1438 if (Value *Op = getMatchingValue(InVal, MemInst, CurrentGeneration)) { in processNode()
1456 AvailableLoads.insert(MemInst.getPointerOperand(), in processNode()
1458 MemInst.getMatchingId(), in processNode()
1459 MemInst.isAtomic())); in processNode()
1471 !(MemInst.isValid() && !MemInst.mayReadFromMemory())) in processNode()
1519 if (MemInst.isValid() && MemInst.isStore()) { in processNode()
1520 LoadValue InVal = AvailableLoads.lookup(MemInst.getPointerOperand()); in processNode()
1522 InVal.DefInst == getMatchingValue(InVal, MemInst, CurrentGeneration)) { in processNode()
1529 MemInst.getPointerOperand() || in processNode()
1554 if (MemInst.isValid() && MemInst.isStore()) { in processNode()
1558 if (overridingStores(ParseMemoryInst(LastStore, TTI), MemInst)) { in processNode()
1580 AvailableLoads.insert(MemInst.getPointerOperand(), in processNode()
1582 MemInst.getMatchingId(), in processNode()
1583 MemInst.isAtomic())); in processNode()
1592 if (MemInst.isUnordered() && !MemInst.isVolatile()) in processNode()