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

Tobias Grosser grosser at fim.uni-passau.de
Thu Nov 29 16:39:49 PST 2012


Author: grosser
Date: Thu Nov 29 18:39:49 2012
New Revision: 168964

URL: http://llvm.org/viewvc/llvm-project?rev=168964&view=rev
Log:
Add an additional input argument according to chanages of function polly::createLoop.

Contributed-by:  Yabin Hu <yabin.hwu at gmail.com>

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=168964&r1=168963&r2=168964&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/CodeGeneration.cpp (original)
+++ polly/trunk/lib/CodeGen/CodeGeneration.cpp Thu Nov 29 18:39:49 2012
@@ -707,7 +707,8 @@
     LowerBound = ExpGen.codegen(InnerFor->LB, IntPtrTy);
     UpperBound = ExpGen.codegen(InnerFor->UB, IntPtrTy);
     Stride = Builder.getInt(APInt_from_MPZ(InnerFor->stride));
-    IV = createLoop(LowerBound, UpperBound, Stride, Builder, P, AfterBB);
+    IV = createLoop(LowerBound, UpperBound, Stride, Builder, P, AfterBB,
+                    CmpInst::ICMP_SLE);
     const Value *OldIV_ = Statement->getInductionVariableForDimension(2);
     Value *OldIV = const_cast<Value *>(OldIV_);
     VMap.insert(std::make_pair<Value*, Value*>(OldIV, IV));





More information about the llvm-commits mailing list