[polly] r175304 - don't store a pointer to the loop in IVS

Sebastian Pop spop at codeaurora.org
Fri Feb 15 13:26:48 PST 2013


Author: spop
Date: Fri Feb 15 15:26:48 2013
New Revision: 175304

URL: http://llvm.org/viewvc/llvm-project?rev=175304&view=rev
Log:
don't store a pointer to the loop in IVS

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

Modified: polly/trunk/include/polly/ScopInfo.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/ScopInfo.h?rev=175304&r1=175303&r2=175304&view=diff
==============================================================================
--- polly/trunk/include/polly/ScopInfo.h (original)
+++ polly/trunk/include/polly/ScopInfo.h Fri Feb 15 15:26:48 2013
@@ -276,7 +276,7 @@ class ScopStmt {
   /// @brief The loop induction variables surrounding the statement.
   ///
   /// This information is only needed for final code generation.
-  std::vector<std::pair<PHINode*, Loop*> > IVS;
+  std::vector<PHINode*> IVS;
   std::vector<Loop*> NestLoops;
 
   std::string BaseName;

Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=175304&r1=175303&r2=175304&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Fri Feb 15 15:26:48 2013
@@ -593,7 +593,7 @@ ScopStmt::ScopStmt(Scop &parent, TempSco
   for (unsigned i = 0, e = Nest.size(); i < e; ++i) {
     PHINode *PN = Nest[i]->getCanonicalInductionVariable();
     assert(PN && "Non canonical IV in Scop!");
-    IVS[i] = std::make_pair(PN, Nest[i]);
+    IVS[i] = PN;
     NestLoops[i] = Nest[i];
   }
 
@@ -633,7 +633,7 @@ const char *ScopStmt::getBaseName() cons
 
 const PHINode *
 ScopStmt::getInductionVariableForDimension(unsigned Dimension) const {
-  return IVS[Dimension].first;
+  return IVS[Dimension];
 }
 
 const Loop *ScopStmt::getLoopForDimension(unsigned Dimension) const {





More information about the llvm-commits mailing list