reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
4338 assert(SI->getNumCases() > 1 && "Degenerate switch?"); 4341 !isa<UnreachableInst>(SI->getDefaultDest()->getFirstNonPHIOrDbg()); 4344 BasicBlock *DestA = HasDefault ? SI->getDefaultDest() : nullptr; 4349 for (auto Case : SI->cases()) { 4369 assert(DestB != SI->getDefaultDest()); 4394 Value *Sub = SI->getCondition(); 4401 Cmp = ConstantInt::getTrue(SI->getContext()); 4407 if (HasBranchWeights(SI)) { 4409 GetBranchWeights(SI, Weights); 4410 if (Weights.size() == 1 + SI->getNumCases()) { 4414 if (SI->getSuccessor(I) == ContiguousDest) 4430 if (ContiguousDest == SI->getDefaultDest()) 4433 cast<PHINode>(BBI)->removeIncomingValue(SI->getParent()); 4436 unsigned PreviousEdges = SI->getNumCases() - ContiguousCases->size(); 4437 if (OtherDest == SI->getDefaultDest()) 4440 cast<PHINode>(BBI)->removeIncomingValue(SI->getParent()); 4446 createUnreachableSwitchDefault(SI); 4449 SI->eraseFromParent();