[PATCH] D44946: [polly] [ScopInfo] Don't pre-compute the name of the Scop's region.

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 27 13:56:17 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL328666: [polly] [ScopInfo] Don't pre-compute the name of the Scop's region. (authored by efriedma, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D44946?vs=139973&id=139998#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D44946

Files:
  polly/trunk/include/polly/ScopInfo.h
  polly/trunk/lib/Analysis/ScopInfo.cpp


Index: polly/trunk/include/polly/ScopInfo.h
===================================================================
--- polly/trunk/include/polly/ScopInfo.h
+++ polly/trunk/include/polly/ScopInfo.h
@@ -1709,9 +1709,6 @@
   /// The underlying Region.
   Region &R;
 
-  /// The name of the SCoP (identical to the regions name)
-  std::string name;
-
   /// The ID to be assigned to the next Scop in a function
   static int NextScopID;
 
@@ -2442,7 +2439,7 @@
   /// could be executed.
   bool isEmpty() const { return Stmts.empty(); }
 
-  const StringRef getName() const { return name; }
+  const StringRef getName() const { return R.getNameStr(); }
 
   using array_iterator = ArrayInfoSetTy::iterator;
   using const_array_iterator = ArrayInfoSetTy::const_iterator;
Index: polly/trunk/lib/Analysis/ScopInfo.cpp
===================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp
+++ polly/trunk/lib/Analysis/ScopInfo.cpp
@@ -3327,8 +3327,8 @@
            DominatorTree &DT, ScopDetection::DetectionContext &DC,
            OptimizationRemarkEmitter &ORE)
     : IslCtx(isl_ctx_alloc(), isl_ctx_free), SE(&ScalarEvolution), DT(&DT),
-      R(R), name(R.getNameStr()), HasSingleExitEdge(R.getExitingBlock()),
-      DC(DC), ORE(ORE), Affinator(this, LI),
+      R(R), HasSingleExitEdge(R.getExitingBlock()), DC(DC), ORE(ORE),
+      Affinator(this, LI),
       ID(getNextID((*R.getEntry()->getParent()).getName().str())) {
   if (IslOnErrorAbort)
     isl_options_set_on_error(getIslCtx().get(), ISL_ON_ERROR_ABORT);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44946.139998.patch
Type: text/x-patch
Size: 1556 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180327/46afb862/attachment.bin>


More information about the llvm-commits mailing list