Lines Matching refs:cur
51 GateRef cur = Circuit::NullGate(); in CollectLoopBody() local
53 cur = firstList.front(); in CollectLoopBody()
56 cur = secondList.front(); in CollectLoopBody()
59 ASSERT(gateToDepth.count(cur) > 0); in CollectLoopBody()
60 auto use = acc_.Uses(cur); in CollectLoopBody()
64 if (acc_.IsLoopExit(cur) && (!acc_.IsFixed(*it))) { in CollectLoopBody()
66 } else if (acc_.IsLoopExitRelated(cur) && acc_.IsFixed(cur)) { in CollectLoopBody()
74 ASSERT(gateToDepth[nex] == ComputeLoopDepth(cur, nex, gateToDepth[cur])); in CollectLoopBody()
81 gateToDepth[nex] = ComputeLoopDepth(cur, nex, gateToDepth[cur]); in CollectLoopBody()
142 size_t LoopAnalysis::ComputeLoopDepth(GateRef cur, GateRef nex, size_t curDep) in ComputeLoopDepth() argument
144 if (acc_.IsLoopExitRelated(cur)) { in ComputeLoopDepth()
145 if ((!acc_.IsLoopExit(cur)) || (!acc_.IsFixed(nex))) { in ComputeLoopDepth()
154 if (acc_.GetState(nex) == cur) { in ComputeLoopDepth()
162 if (acc_.IsLoopHead(state) && (cur == acc_.GetDep(nex))) { in ComputeLoopDepth()