Lines Matching refs:NextState
730 uint64_t NextState = TPath.getExitValue(); in isLegalAndProfitableToTransform() local
735 BasicBlock *VisitedBB = getClonedBB(BB, NextState, DuplicateMap); in isLegalAndProfitableToTransform()
738 DuplicateMap[BB].push_back({BB, NextState}); in isLegalAndProfitableToTransform()
751 VisitedBB = getClonedBB(BB, NextState, DuplicateMap); in isLegalAndProfitableToTransform()
755 DuplicateMap[BB].push_back({BB, NextState}); in isLegalAndProfitableToTransform()
875 uint64_t NextState = Path.getExitValue(); in createExitPath() local
892 BasicBlock *NextBB = getClonedBB(BB, NextState, DuplicateMap); in createExitPath()
901 BB, PrevBB, NextState, DuplicateMap, NewDefs, DTU); in createExitPath()
902 DuplicateMap[BB].push_back({NewBB, NextState}); in createExitPath()
967 uint64_t NextState, in cloneBlockAndUpdatePredecessor()
973 BB, VMap, ".jt" + std::to_string(NextState), BB->getParent()); in cloneBlockAndUpdatePredecessor()
989 updateSuccessorPhis(BB, NewBB, NextState, VMap, DuplicateMap); in cloneBlockAndUpdatePredecessor()
1008 uint64_t NextState, ValueToValueMapTy &VMap, in updateSuccessorPhis()
1016 BasicBlock *NextCase = getNextCaseSuccessor(Switch, NextState); in updateSuccessorPhis()
1018 BasicBlock *ClonedSucc = getClonedBB(NextCase, NextState, DuplicateMap); in updateSuccessorPhis()
1030 BasicBlock *ClonedSucc = getClonedBB(Succ, NextState, DuplicateMap); in updateSuccessorPhis()
1108 uint64_t NextState = TPath.getExitValue(); in updateLastSuccessor() local
1110 BasicBlock *LastBlock = getClonedBB(BB, NextState, DuplicateMap); in updateLastSuccessor()
1117 BasicBlock *NextCase = getNextCaseSuccessor(Switch, NextState); in updateLastSuccessor()
1162 BasicBlock *getClonedBB(BasicBlock *BB, uint64_t NextState, in getClonedBB()
1168 auto It = llvm::find_if(ClonedBBs, [NextState](const ClonedBlock &C) { in getClonedBB()
1169 return C.State == NextState; in getClonedBB()
1176 BasicBlock *getNextCaseSuccessor(SwitchInst *Switch, uint64_t NextState) { in getNextCaseSuccessor()
1179 if (Case.getCaseValue()->getZExtValue() == NextState) { in getNextCaseSuccessor()