[llvm-commits] [polly] r131360 - /polly/trunk/lib/CodeGeneration.cpp
Tobias Grosser
grosser at fim.uni-passau.de
Sat May 14 12:02:45 PDT 2011
Author: grosser
Date: Sat May 14 14:02:45 2011
New Revision: 131360
URL: http://llvm.org/viewvc/llvm-project?rev=131360&view=rev
Log:
CodeGeneration: Cleanup getAnalysis/addPreserved
Modified:
polly/trunk/lib/CodeGeneration.cpp
Modified: polly/trunk/lib/CodeGeneration.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGeneration.cpp?rev=131360&r1=131359&r2=131360&view=diff
==============================================================================
--- polly/trunk/lib/CodeGeneration.cpp (original)
+++ polly/trunk/lib/CodeGeneration.cpp Sat May 14 14:02:45 2011
@@ -1263,7 +1263,6 @@
DominatorTree *DT;
ScalarEvolution *SE;
ScopDetection *SD;
- LoopInfo *LI;
TargetData *TD;
RegionInfo *RI;
@@ -1414,7 +1413,6 @@
DT = &getAnalysis<DominatorTree>();
Dependences *DP = &getAnalysis<Dependences>();
SE = &getAnalysis<ScalarEvolution>();
- LI = &getAnalysis<LoopInfo>();
SD = &getAnalysis<ScopDetection>();
TD = &getAnalysis<TargetData>();
RI = &getAnalysis<RegionInfo>();
@@ -1483,7 +1481,6 @@
AU.addRequired<Dependences>();
AU.addRequired<DominatorTree>();
AU.addRequired<ScalarEvolution>();
- AU.addRequired<LoopInfo>();
AU.addRequired<RegionInfo>();
AU.addRequired<ScopDetection>();
AU.addRequired<ScopInfo>();
@@ -1491,10 +1488,15 @@
AU.addPreserved<CloogInfo>();
AU.addPreserved<Dependences>();
+
+ // XXX: We do not create LoopInfo for the newly generated loops.
AU.addPreserved<LoopInfo>();
AU.addPreserved<DominatorTree>();
AU.addPreserved<ScopDetection>();
AU.addPreserved<ScalarEvolution>();
+
+ // XXX: We do not yet add regions for the newly generated code to the region
+ // tree.
AU.addPreserved<RegionInfo>();
AU.addPreserved<TempScopInfo>();
AU.addPreserved<ScopInfo>();
More information about the llvm-commits
mailing list