Lines Matching defs:CaseVal
5925 const APInt &CaseVal = Case.getCaseValue()->getValue();
5926 if (Known.Zero.intersects(CaseVal) || !Known.One.isSubsetOf(CaseVal) ||
5927 (CaseVal.getSignificantBits() > MaxSignificantBitsInCond)) {
5931 LLVM_DEBUG(dbgs() << "SimplifyCFG: switch case " << CaseVal
6159 /// destionations CaseDest corresponding to value CaseVal (0 for the default
6162 getCaseResults(SwitchInst *SI, ConstantInt *CaseVal, BasicBlock *CaseDest,
6170 // which we can constant-propagate the CaseVal, continue to its successor.
6172 ConstantPool.insert(std::make_pair(SI->getCondition(), CaseVal));
6231 // Helper function used to add CaseVal to the list of cases that generate
6233 static size_t mapCaseToResult(ConstantInt *CaseVal,
6238 I.second.push_back(CaseVal);
6243 std::make_pair(Result, SmallVector<ConstantInt *, 4>(1, CaseVal)));
6259 ConstantInt *CaseVal = I.getCaseValue();
6263 if (!getCaseResults(SI, CaseVal, I.getCaseSuccessor(), &CommonDest, Results,
6273 mapCaseToResult(CaseVal, UniqueResults, Results.begin()->second);
6522 ConstantInt *CaseVal = Values[I].first;
6526 uint64_t Idx = (CaseVal->getValue() - Offset->getValue()).getLimitedValue();
6953 ConstantInt *CaseVal = CI->getCaseValue();
6954 if (CaseVal->getValue().slt(MinCaseVal->getValue()))
6955 MinCaseVal = CaseVal;
6956 if (CaseVal->getValue().sgt(MaxCaseVal->getValue()))
6957 MaxCaseVal = CaseVal;
6962 if (!getCaseResults(SI, CaseVal, CI->getCaseSuccessor(), &CommonDest,
6972 ResultLists[PHI].push_back(std::make_pair(CaseVal, Value));