Lines Matching refs:CaseVal
5600 const APInt &CaseVal = Case.getCaseValue()->getValue(); in eliminateDeadSwitchCases() local
5601 if (Known.Zero.intersects(CaseVal) || !Known.One.isSubsetOf(CaseVal) || in eliminateDeadSwitchCases()
5602 (CaseVal.getSignificantBits() > MaxSignificantBitsInCond)) { in eliminateDeadSwitchCases()
5606 LLVM_DEBUG(dbgs() << "SimplifyCFG: switch case " << CaseVal in eliminateDeadSwitchCases()
5813 getCaseResults(SwitchInst *SI, ConstantInt *CaseVal, BasicBlock *CaseDest, in getCaseResults() argument
5823 ConstantPool.insert(std::make_pair(SI->getCondition(), CaseVal)); in getCaseResults()
5884 static size_t mapCaseToResult(ConstantInt *CaseVal, in mapCaseToResult() argument
5889 I.second.push_back(CaseVal); in mapCaseToResult()
5894 std::make_pair(Result, SmallVector<ConstantInt *, 4>(1, CaseVal))); in mapCaseToResult()
5910 ConstantInt *CaseVal = I.getCaseValue(); in initializeUniqueCases() local
5914 if (!getCaseResults(SI, CaseVal, I.getCaseSuccessor(), &CommonDest, Results, in initializeUniqueCases()
5924 mapCaseToResult(CaseVal, UniqueResults, Results.begin()->second); in initializeUniqueCases()
6173 ConstantInt *CaseVal = Values[I].first; in SwitchLookupTable() local
6177 uint64_t Idx = (CaseVal->getValue() - Offset->getValue()).getLimitedValue(); in SwitchLookupTable()
6589 ConstantInt *CaseVal = CI->getCaseValue(); in SwitchToLookupTable() local
6590 if (CaseVal->getValue().slt(MinCaseVal->getValue())) in SwitchToLookupTable()
6591 MinCaseVal = CaseVal; in SwitchToLookupTable()
6592 if (CaseVal->getValue().sgt(MaxCaseVal->getValue())) in SwitchToLookupTable()
6593 MaxCaseVal = CaseVal; in SwitchToLookupTable()
6598 if (!getCaseResults(SI, CaseVal, CI->getCaseSuccessor(), &CommonDest, in SwitchToLookupTable()
6608 ResultLists[PHI].push_back(std::make_pair(CaseVal, Value)); in SwitchToLookupTable()