Lines Matching refs:SwInst
86 removeUninterestingBBsFromSwitch(SwitchInst &SwInst, in removeUninterestingBBsFromSwitch() argument
88 if (!BBsToKeep.count(SwInst.getDefaultDest())) { in removeUninterestingBBsFromSwitch()
89 auto *FnRetTy = SwInst.getParent()->getParent()->getReturnType(); in removeUninterestingBBsFromSwitch()
90 ReturnInst::Create(SwInst.getContext(), in removeUninterestingBBsFromSwitch()
92 SwInst.getParent()); in removeUninterestingBBsFromSwitch()
93 SwInst.eraseFromParent(); in removeUninterestingBBsFromSwitch()
95 for (int I = 0, E = SwInst.getNumCases(); I != E; ++I) { in removeUninterestingBBsFromSwitch()
96 auto Case = SwInst.case_begin() + I; in removeUninterestingBBsFromSwitch()
98 SwInst.removeCase(Case); in removeUninterestingBBsFromSwitch()
127 if (auto *SwInst = dyn_cast<SwitchInst>(BB.getTerminator())) in extractBasicBlocksFromModule() local
128 removeUninterestingBBsFromSwitch(*SwInst, BBsToKeep); in extractBasicBlocksFromModule()