forked from OSchip/llvm-project
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:
parent
142e56d157
commit
6f3d0633a4
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue