44 lines · plain
1; RUN: opt %loadNPMPolly -S '-passes=polly<no-default-opts>' < %s | FileCheck %s2;3; The SCEV expression in this test case refers to a sequence of sdiv4; instructions, which are part of different bbs in the SCoP. When code5; generating the parameter expressions, the code that is generated by the SCEV6; expander has still references to the in-scop instructions, which was invalid.7;8; CHECK: polly.start9;10target triple = "x86_64-unknown-linux-gnu"11 12define void @_vorbis_apply_window(ptr %d, i64 %param) {13entry:14 %0 = load ptr, ptr undef, align 815 %div23.neg = sdiv i64 0, -416 %sub24 = add i64 0, %div23.neg17 br label %for.cond.30.preheader18 19for.cond.30.preheader: ; preds = %for.body, %entry20 %sext = shl i64 %sub24, 3221 %conv48.74 = ashr exact i64 %sext, 3222 %div43 = sdiv i64 %param, 223 %cmp49.75 = icmp slt i64 %conv48.74, 024 br i1 %cmp49.75, label %for.body.51.lr.ph, label %for.cond.60.preheader25 26for.body.51.lr.ph: ; preds = %for.cond.30.preheader27 %div44 = sdiv i64 %div43, 228 %sub45 = add nsw i64 %div44, 429496729529 %1 = trunc i64 %sub45 to i3230 %2 = sext i32 %1 to i6431 br label %for.body.5132 33for.cond.60.preheader: ; preds = %for.body.51, %for.cond.30.preheader34 ret void35 36for.body.51: ; preds = %for.body.51, %for.body.51.lr.ph37 %indvars.iv86 = phi i64 [ %2, %for.body.51.lr.ph ], [ poison, %for.body.51 ]38 %arrayidx53 = getelementptr inbounds float, ptr %0, i64 %indvars.iv8639 %3 = load float, ptr %arrayidx53, align 440 %mul56 = fmul float %3, undef41 store float %mul56, ptr %d, align 442 br i1 false, label %for.body.51, label %for.cond.60.preheader43}44