Lines Matching defs:cur
57 LoopInfo* loopInfo, GateRef cur)
59 auto use = acc_.Uses(cur);
61 bool isCurLoop = gateToDepth[cur] == 1; // 1: loopDepth
64 if (isCurLoop && acc_.IsLoopExit(cur) && (!acc_.IsFixed(*it))) {
66 } else if (isCurLoop && acc_.IsLoopExitRelated(cur) && acc_.IsFixed(cur)) {
74 ASSERT(gateToDepth[nex] == ComputeLoopDepth(cur, nex, gateToDepth[cur]));
81 gateToDepth[nex] = ComputeLoopDepth(cur, nex, gateToDepth[cur]);
107 GateRef cur = Circuit::NullGate();
109 cur = firstList.front();
112 cur = secondList.front();
115 ASSERT(gateToDepth.count(cur) > 0);
116 CollectUseGate(gateToDepth, firstList, secondList, loopInfo, cur);
161 // only receive state or depend edge (cur -> dep)
162 size_t LoopAnalysis::ComputeLoopDepth(GateRef cur, GateRef nex, size_t curDep)
164 if (acc_.IsLoopExitRelated(cur)) {
165 if ((!acc_.IsLoopExit(cur)) || (!acc_.IsFixed(nex))) {
174 if (acc_.GetState(nex) == cur) {
182 if (acc_.IsLoopHead(state) && (cur == acc_.GetDep(nex))) {