[PATCH] D43504: [SCEV] Factor out getLoopUseLists

Sanjoy Das via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 25 13:07:19 PST 2018


sanjoy accepted this revision.
sanjoy added inline comments.
This revision is now accepted and ready to land.


================
Comment at: include/llvm/Analysis/ScalarEvolution.h:1768
+  /// Find all of the loops transitively used in \p S, and fill \p LoopsUsed.
+  void getLoopUseLists(const SCEV *S, SmallPtrSetImpl<const Loop *> &LoopsUsed);
+
----------------
s/getLoopUseLists/getUsedLoops/

Let's also be a bit more specific here -- a loop is considered "used" by an expression if it contains an add rec on said loop.


https://reviews.llvm.org/D43504





More information about the llvm-commits mailing list