Home | History | Annotate | Download | only in Utils

Lines Matching full:cases

80                                std::vector<ValueEqualityComparisonCase> &Cases);
417 // If this is an icmp against a constant, handle this as one of the cases.
534 /// decode all of the 'cases' that it represents and return the 'default' block.
538 &Cases) {
540 Cases.reserve(SI->getNumCases());
542 Cases.push_back(ValueEqualityComparisonCase(i.getCaseValue(),
550 Cases.push_back(ValueEqualityComparisonCase(GetConstantInt(ICI->getOperand(1),
560 std::vector<ValueEqualityComparisonCase> &Cases) {
561 for (unsigned i = 0, e = Cases.size(); i != e; ++i)
562 if (Cases[i].Dest == BB) {
563 Cases.erase(Cases.begin()+i);
627 EliminateBlockCases(PredDef, PredCases); // Remove default from cases.
632 EliminateBlockCases(ThisDef, ThisCases); // Remove default from cases.
637 // If we are here, we know that the value is none of those cases listed in
638 // PredCases. If there are any cases in ThisCases that are in PredCases, we
662 // Okay, TI has cases that are statically dead, prune them away.
703 // If not handled by any explicit cases, it is handled by the default case.
827 // Figure out which 'cases' to copy from SI to PSI.
835 // PredCases and PredDefault with the new switch cases we would like to
1375 // difficult cases. Instead of being smart about this, just insert a new
1444 // to date, and this catches most of the cases we care about anyway.
2515 << " cases into SWITCH. BB is:\n" << *BB);
2554 // Add all of the 'cases' to the switch instruction.
2838 // Make sure all cases point to the same destination and gather the values.
2839 SmallVector<ConstantInt *, 16> Cases;
2841 Cases.push_back(I.getCaseValue());
2846 Cases.push_back(I.getCaseValue());
2848 assert(Cases.size() == SI->getNumCases() && "Not all cases gathered");
2851 array_pod_sort(Cases.begin(), Cases.end(), ConstantIntSortPredicate);
2852 for (unsigned I = 1, E = Cases.size(); I != E; ++I) {
2853 if (Cases[I-1]->getValue() != Cases[I]->getValue()+1)
2857 Constant *Offset = ConstantExpr::getNeg(Cases.back());
2879 /// and use it to remove dead cases.
2886 // Gather dead cases.
2897 // Remove dead cases from the switch.
3107 // FIXME: Handle unreachable cases.
3120 // Ignore the switch if the number of cases are too small.
3292 // Remove unreachable cases.