[PATCH] D30985: [Polly][ScopInfo] Introduce ScopStmt::getSurroundingLoop(). NFC.

Michael Kruse via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 15 09:38:59 PDT 2017


Meinersbur created this revision.
Meinersbur added a project: Polly.

Introduce ScopStmt::getSurroundingLoop() to replace getFirstNonBoxedLoopFor.

getSurroundingLoop() returns the precomputed surrounding/first non-boxed loop. Except in ScopDetection, the list of boxed loops is only used to get the surrounding loop. getFirstNonBoxedLoopFor also requires LoopInfo at every use which is not necessarily available everywhere where we want to use it.


https://reviews.llvm.org/D30985

Files:
  include/polly/ScopBuilder.h
  include/polly/ScopInfo.h
  include/polly/Support/ScopHelper.h
  lib/Analysis/ScopBuilder.cpp
  lib/Analysis/ScopInfo.cpp
  lib/Support/ScopHelper.cpp
  lib/Transform/ScheduleOptimizer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30985.91885.patch
Type: text/x-patch
Size: 24507 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170315/37cf0cfa/attachment.bin>


More information about the llvm-commits mailing list