Lines Matching defs:CaseVal
5671 const APInt &CaseVal = Case.getCaseValue()->getValue();
5672 if (Known.Zero.intersects(CaseVal) || !Known.One.isSubsetOf(CaseVal) ||
5673 (CaseVal.getSignificantBits() > MaxSignificantBitsInCond)) {
5677 LLVM_DEBUG(dbgs() << "SimplifyCFG: switch case " << CaseVal
5905 /// destionations CaseDest corresponding to value CaseVal (0 for the default
5908 getCaseResults(SwitchInst *SI, ConstantInt *CaseVal, BasicBlock *CaseDest,
5916 // which we can constant-propagate the CaseVal, continue to its successor.
5918 ConstantPool.insert(std::make_pair(SI->getCondition(), CaseVal));
5977 // Helper function used to add CaseVal to the list of cases that generate
5979 static size_t mapCaseToResult(ConstantInt *CaseVal,
5984 I.second.push_back(CaseVal);
5989 std::make_pair(Result, SmallVector<ConstantInt *, 4>(1, CaseVal)));
6005 ConstantInt *CaseVal = I.getCaseValue();
6009 if (!getCaseResults(SI, CaseVal, I.getCaseSuccessor(), &CommonDest, Results,
6019 mapCaseToResult(CaseVal, UniqueResults, Results.begin()->second);
6268 ConstantInt *CaseVal = Values[I].first;
6272 uint64_t Idx = (CaseVal->getValue() - Offset->getValue()).getLimitedValue();
6685 ConstantInt *CaseVal = CI->getCaseValue();
6686 if (CaseVal->getValue().slt(MinCaseVal->getValue()))
6687 MinCaseVal = CaseVal;
6688 if (CaseVal->getValue().sgt(MaxCaseVal->getValue()))
6689 MaxCaseVal = CaseVal;
6694 if (!getCaseResults(SI, CaseVal, CI->getCaseSuccessor(), &CommonDest,
6704 ResultLists[PHI].push_back(std::make_pair(CaseVal, Value));