Lines Matching refs:cur
54 LoopInfo* loopInfo, GateRef cur) in CollectUseGate() argument
56 auto use = acc_.Uses(cur); in CollectUseGate()
58 bool isCurLoop = gateToDepth[cur] == 1; // 1: loopDepth in CollectUseGate()
61 if (isCurLoop && acc_.IsLoopExit(cur) && (!acc_.IsFixed(*it))) { in CollectUseGate()
63 } else if (isCurLoop && acc_.IsLoopExitRelated(cur) && acc_.IsFixed(cur)) { in CollectUseGate()
71 ASSERT(gateToDepth[nex] == ComputeLoopDepth(cur, nex, gateToDepth[cur])); in CollectUseGate()
78 gateToDepth[nex] = ComputeLoopDepth(cur, nex, gateToDepth[cur]); in CollectUseGate()
104 GateRef cur = Circuit::NullGate(); in CollectLoopBody() local
106 cur = firstList.front(); in CollectLoopBody()
109 cur = secondList.front(); in CollectLoopBody()
112 ASSERT(gateToDepth.count(cur) > 0); in CollectLoopBody()
113 CollectUseGate(gateToDepth, firstList, secondList, loopInfo, cur); in CollectLoopBody()
159 size_t LoopAnalysis::ComputeLoopDepth(GateRef cur, GateRef nex, size_t curDep) in ComputeLoopDepth() argument
161 if (acc_.IsLoopExitRelated(cur)) { in ComputeLoopDepth()
162 if ((!acc_.IsLoopExit(cur)) || (!acc_.IsFixed(nex))) { in ComputeLoopDepth()
171 if (acc_.GetState(nex) == cur) { in ComputeLoopDepth()
179 if (acc_.IsLoopHead(state) && (cur == acc_.GetDep(nex))) { in ComputeLoopDepth()