Lines Matching refs:InvokeInst

1730   if (isa<InvokeInst>(I1) && (!BI || !isSafeToHoistInvoke(BB1, BB2, I1, I2)))  in hoistSuccIdenticalTerminatorToSwitchOrIf()
2422 using SetTy = SmallVector<InvokeInst *, 2>;
2426 static bool shouldBelongToSameSet(ArrayRef<InvokeInst *> Invokes);
2428 SetTy &getCompatibleSet(InvokeInst *II);
2430 void insert(InvokeInst *II);
2433 CompatibleSets::SetTy &CompatibleSets::getCompatibleSet(InvokeInst *II) { in getCompatibleSet()
2447 void CompatibleSets::insert(InvokeInst *II) { in insert()
2451 bool CompatibleSets::shouldBelongToSameSet(ArrayRef<InvokeInst *> Invokes) { in shouldBelongToSameSet()
2455 auto IsIllegalToMerge = [](InvokeInst *II) { in shouldBelongToSameSet()
2463 auto IsIndirectCall = [](InvokeInst *II) { return II->isIndirectCall(); }; in shouldBelongToSameSet()
2472 for (InvokeInst *II : Invokes) { in shouldBelongToSameSet()
2484 auto HasNormalDest = [](InvokeInst *II) { in shouldBelongToSameSet()
2495 for (InvokeInst *II : Invokes) { in shouldBelongToSameSet()
2517 for (InvokeInst *II : Invokes) { in shouldBelongToSameSet()
2536 const InvokeInst *II0 = Invokes.front(); in shouldBelongToSameSet()
2563 static void MergeCompatibleInvokesImpl(ArrayRef<InvokeInst *> Invokes, in MergeCompatibleInvokesImpl()
2576 InvokeInst *MergedInvoke = [&Invokes, HasNormalDest]() { in MergeCompatibleInvokesImpl()
2577 InvokeInst *II0 = Invokes.front(); in MergeCompatibleInvokesImpl()
2587 auto *MergedInvoke = cast<InvokeInst>(II0->clone()); in MergeCompatibleInvokesImpl()
2608 for (InvokeInst *II : Invokes) in MergeCompatibleInvokesImpl()
2620 for (InvokeInst *II : Invokes) in MergeCompatibleInvokesImpl()
2638 bool NeedPHI = any_of(Invokes, [&U](InvokeInst *II) { in MergeCompatibleInvokesImpl()
2647 for (InvokeInst *II : Invokes) in MergeCompatibleInvokesImpl()
2664 for (InvokeInst *II : Invokes) { in MergeCompatibleInvokesImpl()
2724 Grouper.insert(cast<InvokeInst>(PredBB->getTerminator())); in MergeCompatibleInvokes()
2727 for (ArrayRef<InvokeInst *> Invokes : Grouper.Sets) { in MergeCompatibleInvokes()
5327 } else if (auto *II = dyn_cast<InvokeInst>(TI)) { in simplifyUnreachable()
7159 InvokeInst *II = cast<InvokeInst>(Pred->getTerminator()); in TryToMergeLandingPad()