Searched refs:MinCaseVal (Results 1 – 2 of 2) sorted by relevance
6236 ConstantInt *MinCaseVal = CaseValues[0]; in foldSwitchToSelect() local6240 APInt AndMask = APInt::getAllOnes(MinCaseVal->getBitWidth()); in foldSwitchToSelect()6244 if (Case->getValue().slt(MinCaseVal->getValue())) in foldSwitchToSelect()6245 MinCaseVal = Case; in foldSwitchToSelect()6266 APInt BitMask = APInt::getZero(MinCaseVal->getBitWidth()); in foldSwitchToSelect()6268 BitMask |= (Case->getValue() - MinCaseVal->getValue()); in foldSwitchToSelect()6273 if (!MinCaseVal->isNullValue()) in foldSwitchToSelect()6274 Condition = Builder.CreateSub(Condition, MinCaseVal); in foldSwitchToSelect()6719 ConstantInt &MinCaseVal, const ConstantInt &MaxCaseVal, in shouldUseSwitchConditionAsTableIndex() argument6722 if (MinCaseVal.isNullValue()) in shouldUseSwitchConditionAsTableIndex()[all …]
570 APInt MinCaseVal = MaxCaseVal; in getEstimatedNumberOfCaseClusters() local575 if (CaseVal.slt(MinCaseVal)) in getEstimatedNumberOfCaseClusters()576 MinCaseVal = CaseVal; in getEstimatedNumberOfCaseClusters()585 if (TLI->isSuitableForBitTests(Dests.size(), N, MinCaseVal, MaxCaseVal, in getEstimatedNumberOfCaseClusters()595 (MaxCaseVal - MinCaseVal) in getEstimatedNumberOfCaseClusters()