[PATCH] D37010: [Polly][PM] Properly require and preservation of OptimizationRemarkEmitter.

Michael Kruse via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 22 06:06:33 PDT 2017


Meinersbur created this revision.
Meinersbur added a project: Polly.
Herald added subscribers: kbarton, fhahn, nemanjai.
Herald added a reviewer: bollu.

Properly require and preserve the OptimizationRemarkEmitter for use in ScopPass. Previously one had to get the ORE from ScopDetection because CodeGeneration did not mark it as preserved. It would need to be recomputed which results in the legacy PM to throw away all previous SCoP analysis.

This also changes the implementation of ScopPass::getAnalysisUsage to not unconditionally preserve all passes, but only those needed to be preserved by any SCoP pass (at least when using the legacy PM). This allows invalidating DependenceInfo (and IslAstInfo) in case the pass would cause them to change (e.g. JSONImporter, OpTree, DeLICM, MaximalArrayExpansion, IslScheduleOptimizer)


https://reviews.llvm.org/D37010

Files:
  include/polly/ScopBuilder.h
  include/polly/ScopDetection.h
  include/polly/ScopInfo.h
  lib/Analysis/ScopBuilder.cpp
  lib/Analysis/ScopInfo.cpp
  lib/Analysis/ScopPass.cpp
  lib/CodeGen/CodeGeneration.cpp
  lib/CodeGen/IslAst.cpp
  lib/CodeGen/PPCGCodeGeneration.cpp
  lib/Exchange/JSONExporter.cpp
  lib/Transform/ScheduleOptimizer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37010.112160.patch
Type: text/x-patch
Size: 11774 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170822/5e3e5aee/attachment.bin>


More information about the llvm-commits mailing list