Chromium Code Reviews| Index: src/IceCfg.cpp |
| diff --git a/src/IceCfg.cpp b/src/IceCfg.cpp |
| index c3d91e65c3f3d24a283a2cfefbe4fcab6469693b..4f7a5a527d85c4b5e7ac2479a6e5720d1df394e0 100644 |
| --- a/src/IceCfg.cpp |
| +++ b/src/IceCfg.cpp |
| @@ -271,6 +271,14 @@ void Cfg::computeInOutEdges() { |
| Node->validatePhis(); |
| } |
| +/// Renumber the non-deleted instructions in the Cfg. This needs to be done in |
| +/// preparation for live range analysis. The instruction numbers in a block |
| +/// must be monotonically increasing. The range of instruction numbers in a |
| +/// block, from lowest to highest, must not overlap with the range of any other |
| +/// block. |
| +/// |
| +/// Also, if the configuration specifies to do so, remove/unlink all deleted |
| +/// instructions from the Cfg, to speed up later passes over the instructions. |
|
John
2016/03/14 13:27:15
Maybe document the .h file instead?
Jim Stichnoth
2016/03/14 13:51:15
Done.
|
| void Cfg::renumberInstructions() { |
| TimerMarker T(TimerStack::TT_renumberInstructions, this); |
| NextInstNumber = Inst::NumberInitial; |