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

Tobias Grosser grosser at fim.uni-passau.de
Fri Mar 23 05:20:33 PDT 2012


Author: grosser
Date: Fri Mar 23 07:20:32 2012
New Revision: 153330

URL: http://llvm.org/viewvc/llvm-project?rev=153330&view=rev
Log:
CodeGen: Simplify Variable Names

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=153330&r1=153329&r2=153330&view=diff
==============================================================================
--- polly/trunk/lib/CodeGeneration.cpp (original)
+++ polly/trunk/lib/CodeGeneration.cpp Fri Mar 23 07:20:32 2012
@@ -1211,7 +1211,7 @@
 }
 
 void ClastStmtCodeGen::codegenForOpenMP(const clast_for *For) {
-  Value *Stride, *LowerBound, *UpperBound, *IV;
+  Value *Stride, *LB, *UB, *IV;
   BasicBlock::iterator LoopBody;
   IntegerType *IntPtrTy = getIntPtrTy();
   SetVector<Value*> Values;
@@ -1221,13 +1221,12 @@
 
   Stride = Builder.getInt(APInt_from_MPZ(For->stride));
   Stride = Builder.CreateSExtOrBitCast(Stride, IntPtrTy);
-  LowerBound = ExpGen.codegen(For->LB, IntPtrTy);
-  UpperBound = ExpGen.codegen(For->UB, IntPtrTy);
+  LB = ExpGen.codegen(For->LB, IntPtrTy);
+  UB = ExpGen.codegen(For->UB, IntPtrTy);
 
   Values = getOMPValues();
 
-  IV = OMPGen.createParallelLoop(LowerBound, UpperBound, Stride, Values, VMap,
-                                 &LoopBody);
+  IV = OMPGen.createParallelLoop(LB, UB, Stride, Values, VMap, &LoopBody);
   BasicBlock::iterator AfterLoop = Builder.GetInsertPoint();
   Builder.SetInsertPoint(LoopBody);
 





More information about the llvm-commits mailing list