Home | History | Annotate | Download | only in Utils

Lines Matching refs:CaseVal

4008     APInt CaseVal = Case.getCaseValue()->getValue();
4009 if ((CaseVal & KnownZero) != 0 || (CaseVal & KnownOne) != KnownOne ||
4010 (CaseVal.getMinSignedBits() > MaxSignificantBitsInCond)) {
4012 DEBUG(dbgs() << "SimplifyCFG: switch case " << CaseVal << " is dead.\n");
4207 /// destionations CaseDest corresponding to value CaseVal (0 for the default
4210 GetCaseResults(SwitchInst *SI, ConstantInt *CaseVal, BasicBlock *CaseDest,
4218 // which we can constant-propagate the CaseVal, continue to its successor.
4220 ConstantPool.insert(std::make_pair(SI->getCondition(), CaseVal));
4284 // Helper function used to add CaseVal to the list of cases that generate
4286 static void MapCaseToResult(ConstantInt *CaseVal,
4291 I.second.push_back(CaseVal);
4296 std::make_pair(Result, SmallVector<ConstantInt *, 4>(1, CaseVal)));
4309 ConstantInt *CaseVal = I.getCaseValue();
4313 if (!GetCaseResults(SI, CaseVal, I.getCaseSuccessor(), &CommonDest, Results,
4320 MapCaseToResult(CaseVal, UniqueResults, Results.begin()->second);
4513 ConstantInt *CaseVal = Values[I].first;
4517 uint64_t Idx = (CaseVal->getValue() - Offset->getValue()).getLimitedValue();
4847 ConstantInt *CaseVal = CI.getCaseValue();
4848 if (CaseVal->getValue().slt(MinCaseVal->getValue()))
4849 MinCaseVal = CaseVal;
4850 if (CaseVal->getValue().sgt(MaxCaseVal->getValue()))
4851 MaxCaseVal = CaseVal;
4856 if (!GetCaseResults(SI, CaseVal, CI.getCaseSuccessor(), &CommonDest,
4866 ResultLists[PHI].push_back(std::make_pair(CaseVal, Value));