Lines Matching refs:CaseVal
4008 APInt CaseVal = Case.getCaseValue()->getValue(); in EliminateDeadSwitchCases() local
4009 if ((CaseVal & KnownZero) != 0 || (CaseVal & KnownOne) != KnownOne || in EliminateDeadSwitchCases()
4010 (CaseVal.getMinSignedBits() > MaxSignificantBitsInCond)) { in EliminateDeadSwitchCases()
4012 DEBUG(dbgs() << "SimplifyCFG: switch case " << CaseVal << " is dead.\n"); in EliminateDeadSwitchCases()
4210 GetCaseResults(SwitchInst *SI, ConstantInt *CaseVal, BasicBlock *CaseDest, in GetCaseResults() argument
4220 ConstantPool.insert(std::make_pair(SI->getCondition(), CaseVal)); in GetCaseResults()
4286 static void MapCaseToResult(ConstantInt *CaseVal, in MapCaseToResult() argument
4291 I.second.push_back(CaseVal); in MapCaseToResult()
4296 std::make_pair(Result, SmallVector<ConstantInt *, 4>(1, CaseVal))); in MapCaseToResult()
4309 ConstantInt *CaseVal = I.getCaseValue(); in InitializeUniqueCases() local
4313 if (!GetCaseResults(SI, CaseVal, I.getCaseSuccessor(), &CommonDest, Results, in InitializeUniqueCases()
4320 MapCaseToResult(CaseVal, UniqueResults, Results.begin()->second); in InitializeUniqueCases()
4513 ConstantInt *CaseVal = Values[I].first; in SwitchLookupTable() local
4517 uint64_t Idx = (CaseVal->getValue() - Offset->getValue()).getLimitedValue(); in SwitchLookupTable()
4847 ConstantInt *CaseVal = CI.getCaseValue(); in SwitchToLookupTable() local
4848 if (CaseVal->getValue().slt(MinCaseVal->getValue())) in SwitchToLookupTable()
4849 MinCaseVal = CaseVal; in SwitchToLookupTable()
4850 if (CaseVal->getValue().sgt(MaxCaseVal->getValue())) in SwitchToLookupTable()
4851 MaxCaseVal = CaseVal; in SwitchToLookupTable()
4856 if (!GetCaseResults(SI, CaseVal, CI.getCaseSuccessor(), &CommonDest, in SwitchToLookupTable()
4866 ResultLists[PHI].push_back(std::make_pair(CaseVal, Value)); in SwitchToLookupTable()