Mercurial > hg > CbC > CbC_llvm
comparison lib/Analysis/CFG.cpp @ 120:1172e4bd9c6f
update 4.0.0
author | mir3636 |
---|---|
date | Fri, 25 Nov 2016 19:14:25 +0900 |
parents | 7d135dc70f03 |
children | c2174574ed3a |
comparison
equal
deleted
inserted
replaced
101:34baf5011add | 120:1172e4bd9c6f |
---|---|
136 DT = nullptr; | 136 DT = nullptr; |
137 | 137 |
138 // Limit the number of blocks we visit. The goal is to avoid run-away compile | 138 // Limit the number of blocks we visit. The goal is to avoid run-away compile |
139 // times on large CFGs without hampering sensible code. Arbitrarily chosen. | 139 // times on large CFGs without hampering sensible code. Arbitrarily chosen. |
140 unsigned Limit = 32; | 140 unsigned Limit = 32; |
141 SmallSet<const BasicBlock*, 64> Visited; | 141 SmallPtrSet<const BasicBlock*, 32> Visited; |
142 do { | 142 do { |
143 BasicBlock *BB = Worklist.pop_back_val(); | 143 BasicBlock *BB = Worklist.pop_back_val(); |
144 if (!Visited.insert(BB).second) | 144 if (!Visited.insert(BB).second) |
145 continue; | 145 continue; |
146 if (BB == StopBB) | 146 if (BB == StopBB) |