[llvm-commits] [polly] r153871 - /polly/trunk/lib/CodeGen/CodeGeneration.cpp

Tobias Grosser grosser at fim.uni-passau.de
Mon Apr 2 05:26:14 PDT 2012


Author: grosser
Date: Mon Apr  2 07:26:13 2012
New Revision: 153871

URL: http://llvm.org/viewvc/llvm-project?rev=153871&view=rev
Log:
CodeGen: Some style improvements

Modified:
    polly/trunk/lib/CodeGen/CodeGeneration.cpp

Modified: polly/trunk/lib/CodeGen/CodeGeneration.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/CodeGeneration.cpp?rev=153871&r1=153870&r2=153871&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/CodeGeneration.cpp (original)
+++ polly/trunk/lib/CodeGen/CodeGeneration.cpp Mon Apr  2 07:26:13 2012
@@ -1080,20 +1080,21 @@
   ClastVars[a->LHS] = V;
 }
 
-void ClastStmtCodeGen::codegen(const clast_assignment *a, ScopStmt *Statement,
-                               unsigned Dimension, int vectorDim,
+void ClastStmtCodeGen::codegen(const clast_assignment *A, ScopStmt *Stmt,
+                               unsigned Dim, int VectorDim,
                                std::vector<ValueMapT> *VectorVMap) {
-  Value *RHS = ExpGen.codegen(a->RHS, getIntPtrTy());
-
-  assert(!a->LHS && "Statement assignments do not have left hand side");
   const PHINode *PN;
-  PN = Statement->getInductionVariableForDimension(Dimension);
-  const Value *V = PN;
+  Value *RHS;
+
+  assert(!A->LHS && "Statement assignments do not have left hand side");
+
+  RHS = ExpGen.codegen(A->RHS, getIntPtrTy());
+  PN = Stmt->getInductionVariableForDimension(Dim);
 
   if (VectorVMap)
-    (*VectorVMap)[vectorDim][V] = RHS;
+    (*VectorVMap)[VectorDim][PN] = RHS;
 
-  ValueMap[V] = RHS;
+  ValueMap[PN] = RHS;
 }
 
 void ClastStmtCodeGen::codegenSubstitutions(const clast_stmt *Assignment,





More information about the llvm-commits mailing list