[PATCH] D28932: [LoopInfo] Add helper methods to compute two useful orderings of the loops in a function.
Chandler Carruth via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 19 18:14:17 PST 2017
chandlerc created this revision.
Herald added subscribers: mzolotukhin, mcrosier.
These are relatively confusing to talk about and compute correctly so it
seems really good to write down their implementation in one place. I've
replaced one place we needed this in the loop PM infrastructure and
I have another place in a pending patch that wants it.
We can't quite use this for the core loop PM walk because there we're
sometimes working on a sub-forest.
I'll add the expected unittests before committing this but wanted to
make sure folks were happy with these names / comments.
Credit goes to Richard Smith for the idea for naming the order where siblings
are in reverse program order but the tree traversal remains preorder.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 5399 bytes
Desc: not available
More information about the llvm-commits