[llvm-commits] [polly] r152793 - /polly/trunk/lib/CodeGeneration.cpp
Tobias Grosser
grosser at fim.uni-passau.de
Thu Mar 15 02:34:58 PDT 2012
Author: grosser
Date: Thu Mar 15 04:34:58 2012
New Revision: 152793
URL: http://llvm.org/viewvc/llvm-project?rev=152793&view=rev
Log:
CodeGen: Call isl_set_copy() within the loop
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=152793&r1=152792&r2=152793&view=diff
==============================================================================
--- polly/trunk/lib/CodeGeneration.cpp (original)
+++ polly/trunk/lib/CodeGeneration.cpp Thu Mar 15 04:34:58 2012
@@ -1465,8 +1465,7 @@
for (int i = 1; i < VectorWidth; i++)
IVS[i] = Builder.CreateAdd(IVS[i-1], StrideValue, "p_vector_iv");
- isl_set *ScatteringDomain =
- isl_set_copy(isl_set_from_cloog_domain(F->domain));
+ isl_set *Domain = isl_set_from_cloog_domain(F->domain);
// Add loop iv to symbols.
(*clastVars)[F->iterator] = LB;
@@ -1474,12 +1473,13 @@
const clast_stmt *Stmt = F->body;
while (Stmt) {
- codegen((const clast_user_stmt *)Stmt, &IVS, F->iterator, ScatteringDomain);
+ codegen((const clast_user_stmt *)Stmt, &IVS, F->iterator,
+ isl_set_copy(Domain));
Stmt = Stmt->next;
}
// Loop is finished, so remove its iv from the live symbols.
- isl_set_free(ScatteringDomain);
+ isl_set_free(Domain);
clastVars->erase(F->iterator);
}
More information about the llvm-commits
mailing list