diff options
Diffstat (limited to 'polly/lib/CodeGen/CodeGeneration.cpp')
-rw-r--r-- | polly/lib/CodeGen/CodeGeneration.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/polly/lib/CodeGen/CodeGeneration.cpp b/polly/lib/CodeGen/CodeGeneration.cpp index f1d1487b6f2..804ff9f7ce9 100644 --- a/polly/lib/CodeGen/CodeGeneration.cpp +++ b/polly/lib/CodeGen/CodeGeneration.cpp @@ -448,7 +448,8 @@ void ClastStmtCodeGen::codegenForSequential(const clast_for *f) { UpperBound = ExpGen.codegen(f->UB, IntPtrTy); Stride = Builder.getInt(APInt_from_MPZ(f->stride)); - IV = createLoop(LowerBound, UpperBound, Stride, Builder, P, AfterBB); + IV = createLoop(LowerBound, UpperBound, Stride, Builder, P, AfterBB, + CmpInst::ICMP_SLE); // Add loop iv to symbols. ClastVars[f->iterator] = IV; |