summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Grosser <grosser@fim.uni-passau.de>2012-03-15 09:34:58 +0000
committerTobias Grosser <grosser@fim.uni-passau.de>2012-03-15 09:34:58 +0000
commit00d898d6b0ff3d9ce2d97d78f1b80b865d84c616 (patch)
tree00f70174fe366a2a45c85545bdd1a23954b51379
parent2da263e3b6b45b23b2f53ef1c4018990b65bdf8f (diff)
downloadbcm5719-llvm-00d898d6b0ff3d9ce2d97d78f1b80b865d84c616.tar.gz
bcm5719-llvm-00d898d6b0ff3d9ce2d97d78f1b80b865d84c616.zip
CodeGen: Call isl_set_copy() within the loop
llvm-svn: 152793
-rw-r--r--polly/lib/CodeGeneration.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/polly/lib/CodeGeneration.cpp b/polly/lib/CodeGeneration.cpp
index 4d8abbcb03d..b7be56eadb5 100644
--- a/polly/lib/CodeGeneration.cpp
+++ b/polly/lib/CodeGeneration.cpp
@@ -1465,8 +1465,7 @@ void ClastStmtCodeGen::codegenForVector(const clast_for *F) {
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 @@ void ClastStmtCodeGen::codegenForVector(const clast_for *F) {
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);
}
OpenPOWER on IntegriCloud