Append all the loops nested in |loop| to |loops|.
| 27 | |
| 28 | // Append all the loops nested in |loop| to |loops|. |
| 29 | void CollectChildren(Loop* loop, std::vector<const Loop*>* loops) { |
| 30 | for (auto child : *loop) { |
| 31 | loops->push_back(child); |
| 32 | if (child->NumImmediateChildren() != 0) { |
| 33 | CollectChildren(child, loops); |
| 34 | } |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | // Return the set of locations accessed by |stores| and |loads|. |
| 39 | std::set<Instruction*> GetLocationsAccessed( |
no test coverage detected