Lines Matching refs:InvokeInst

1801   if (isa<InvokeInst>(I1) && (!BI || !isSafeToHoistInvoke(BB1, BB2, I1, I2)))  in hoistSuccIdenticalTerminatorToSwitchOrIf()
2480 using SetTy = SmallVector<InvokeInst *, 2>;
2484 static bool shouldBelongToSameSet(ArrayRef<InvokeInst *> Invokes);
2486 SetTy &getCompatibleSet(InvokeInst *II);
2488 void insert(InvokeInst *II);
2491 CompatibleSets::SetTy &CompatibleSets::getCompatibleSet(InvokeInst *II) { in getCompatibleSet()
2505 void CompatibleSets::insert(InvokeInst *II) { in insert()
2509 bool CompatibleSets::shouldBelongToSameSet(ArrayRef<InvokeInst *> Invokes) { in shouldBelongToSameSet()
2513 auto IsIllegalToMerge = [](InvokeInst *II) { in shouldBelongToSameSet()
2521 auto IsIndirectCall = [](InvokeInst *II) { return II->isIndirectCall(); }; in shouldBelongToSameSet()
2530 for (InvokeInst *II : Invokes) { in shouldBelongToSameSet()
2542 auto HasNormalDest = [](InvokeInst *II) { in shouldBelongToSameSet()
2553 for (InvokeInst *II : Invokes) { in shouldBelongToSameSet()
2575 for (InvokeInst *II : Invokes) { in shouldBelongToSameSet()
2594 const InvokeInst *II0 = Invokes.front(); in shouldBelongToSameSet()
2621 static void MergeCompatibleInvokesImpl(ArrayRef<InvokeInst *> Invokes, in MergeCompatibleInvokesImpl()
2634 InvokeInst *MergedInvoke = [&Invokes, HasNormalDest]() { in MergeCompatibleInvokesImpl()
2635 InvokeInst *II0 = Invokes.front(); in MergeCompatibleInvokesImpl()
2645 auto *MergedInvoke = cast<InvokeInst>(II0->clone()); in MergeCompatibleInvokesImpl()
2666 for (InvokeInst *II : Invokes) in MergeCompatibleInvokesImpl()
2678 for (InvokeInst *II : Invokes) in MergeCompatibleInvokesImpl()
2696 bool NeedPHI = any_of(Invokes, [&U](InvokeInst *II) { in MergeCompatibleInvokesImpl()
2705 for (InvokeInst *II : Invokes) in MergeCompatibleInvokesImpl()
2722 for (InvokeInst *II : Invokes) { in MergeCompatibleInvokesImpl()
2782 Grouper.insert(cast<InvokeInst>(PredBB->getTerminator())); in MergeCompatibleInvokes()
2785 for (ArrayRef<InvokeInst *> Invokes : Grouper.Sets) { in MergeCompatibleInvokes()
5395 } else if (auto *II = dyn_cast<InvokeInst>(TI)) { in simplifyUnreachable()
7267 InvokeInst *II = cast<InvokeInst>(Pred->getTerminator()); in TryToMergeLandingPad()