[llvm-commits] [polly] r131359 - /polly/trunk/lib/CodeGeneration.cpp
Tobias Grosser
grosser at fim.uni-passau.de
Sat May 14 12:02:39 PDT 2011
Author: grosser
Date: Sat May 14 14:02:39 2011
New Revision: 131359
URL: http://llvm.org/viewvc/llvm-project?rev=131359&view=rev
Log:
CodeGeneration: Localize variables
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=131359&r1=131358&r2=131359&view=diff
==============================================================================
--- polly/trunk/lib/CodeGeneration.cpp (original)
+++ polly/trunk/lib/CodeGeneration.cpp Sat May 14 14:02:39 2011
@@ -1263,7 +1263,6 @@
DominatorTree *DT;
ScalarEvolution *SE;
ScopDetection *SD;
- CloogInfo *C;
LoopInfo *LI;
TargetData *TD;
RegionInfo *RI;
@@ -1416,7 +1415,6 @@
Dependences *DP = &getAnalysis<Dependences>();
SE = &getAnalysis<ScalarEvolution>();
LI = &getAnalysis<LoopInfo>();
- C = &getAnalysis<CloogInfo>();
SD = &getAnalysis<ScopDetection>();
TD = &getAnalysis<TargetData>();
RI = &getAnalysis<RegionInfo>();
@@ -1462,7 +1460,8 @@
addOpenMPDefinitions(builder);
ClastStmtCodeGen CodeGen(S, *SE, DT, SD, DP, TD, builder);
- CodeGen.codegen(C->getClast());
+ CloogInfo &C = getAnalysis<CloogInfo>();
+ CodeGen.codegen(C.getClast());
parallelLoops.insert(parallelLoops.begin(),
CodeGen.getParallelLoops().begin(),
More information about the llvm-commits
mailing list