Lines Matching refs:SwitchWeights
1131 if (SwitchWeights) in EmitCaseStmtRange()
1132 SwitchWeights->push_back(Weight + (Rem ? 1 : 0)); in EmitCaseStmtRange()
1161 if (SwitchWeights) { in EmitCaseStmtRange()
1163 uint64_t DefaultCount = (*SwitchWeights)[0]; in EmitCaseStmtRange()
1169 (*SwitchWeights)[0] += ThisCount; in EmitCaseStmtRange()
1210 if (SwitchWeights) in EmitCaseStmt()
1211 SwitchWeights->push_back(getProfileCount(&S)); in EmitCaseStmt()
1226 if (SwitchWeights) in EmitCaseStmt()
1227 SwitchWeights->push_back(getProfileCount(&S)); in EmitCaseStmt()
1248 if (SwitchWeights) in EmitCaseStmt()
1249 SwitchWeights->push_back(getProfileCount(NextCase)); in EmitCaseStmt()
1479 SmallVector<uint64_t, 16> *SavedSwitchWeights = SwitchWeights; in EmitSwitchStmt()
1549 SwitchWeights = new SmallVector<uint64_t, 16>(); in EmitSwitchStmt()
1550 SwitchWeights->reserve(NumCases); in EmitSwitchStmt()
1553 SwitchWeights->push_back(DefaultCount); in EmitSwitchStmt()
1610 if (SwitchWeights) { in EmitSwitchStmt()
1611 assert(SwitchWeights->size() == 1 + SwitchInsn->getNumCases() && in EmitSwitchStmt()
1614 if (SwitchWeights->size() > 1) in EmitSwitchStmt()
1616 createProfileWeights(*SwitchWeights)); in EmitSwitchStmt()
1617 delete SwitchWeights; in EmitSwitchStmt()
1620 SwitchWeights = SavedSwitchWeights; in EmitSwitchStmt()