Add an additional input argument according to chanages of function polly::createLoop.

Contributed-by:  Yabin Hu <yabin.hwu@gmail.com>
llvm-svn: 168964
This commit is contained in:
Tobias Grosser 2012-11-30 00:39:49 +00:00
parent 142e56d157
commit 6f3d0633a4
1 changed files with 2 additions and 1 deletions

View File

@ -707,7 +707,8 @@ void ClastStmtCodeGen::codegenForGPGPU(const clast_for *F) {
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));