Lines Matching refs:InvokeInst

1584   if (isa<InvokeInst>(I1) && !isSafeToHoistInvoke(BB1, BB2, I1, I2))  in HoistThenElseCodeToIf()
2243 using SetTy = SmallVector<InvokeInst *, 2>;
2247 static bool shouldBelongToSameSet(ArrayRef<InvokeInst *> Invokes);
2249 SetTy &getCompatibleSet(InvokeInst *II);
2251 void insert(InvokeInst *II);
2254 CompatibleSets::SetTy &CompatibleSets::getCompatibleSet(InvokeInst *II) { in getCompatibleSet()
2268 void CompatibleSets::insert(InvokeInst *II) { in insert()
2272 bool CompatibleSets::shouldBelongToSameSet(ArrayRef<InvokeInst *> Invokes) { in shouldBelongToSameSet()
2276 auto IsIllegalToMerge = [](InvokeInst *II) { in shouldBelongToSameSet()
2284 auto IsIndirectCall = [](InvokeInst *II) { return II->isIndirectCall(); }; in shouldBelongToSameSet()
2293 for (InvokeInst *II : Invokes) { in shouldBelongToSameSet()
2305 auto HasNormalDest = [](InvokeInst *II) { in shouldBelongToSameSet()
2316 for (InvokeInst *II : Invokes) { in shouldBelongToSameSet()
2338 for (InvokeInst *II : Invokes) { in shouldBelongToSameSet()
2357 const InvokeInst *II0 = Invokes.front(); in shouldBelongToSameSet()
2380 static void MergeCompatibleInvokesImpl(ArrayRef<InvokeInst *> Invokes, in MergeCompatibleInvokesImpl()
2393 InvokeInst *MergedInvoke = [&Invokes, HasNormalDest]() { in MergeCompatibleInvokesImpl()
2394 InvokeInst *II0 = Invokes.front(); in MergeCompatibleInvokesImpl()
2404 auto *MergedInvoke = cast<InvokeInst>(II0->clone()); in MergeCompatibleInvokesImpl()
2425 for (InvokeInst *II : Invokes) in MergeCompatibleInvokesImpl()
2437 for (InvokeInst *II : Invokes) in MergeCompatibleInvokesImpl()
2455 bool NeedPHI = any_of(Invokes, [&U](InvokeInst *II) { in MergeCompatibleInvokesImpl()
2464 for (InvokeInst *II : Invokes) in MergeCompatibleInvokesImpl()
2481 for (InvokeInst *II : Invokes) { in MergeCompatibleInvokesImpl()
2541 Grouper.insert(cast<InvokeInst>(PredBB->getTerminator())); in MergeCompatibleInvokes()
2544 for (ArrayRef<InvokeInst *> Invokes : Grouper.Sets) { in MergeCompatibleInvokes()
5018 } else if (auto *II = dyn_cast<InvokeInst>(TI)) { in simplifyUnreachable()
6721 InvokeInst *II = cast<InvokeInst>(Pred->getTerminator()); in TryToMergeLandingPad()