34 lines · plain
1; RUN: opt %loadNPMPolly -disable-output '-passes=polly-custom<simplify>' -polly-print-simplify -aa-pipeline=basic-aa < %s < %s | FileCheck %s2;3; Simple test for the existence of the Simplify pass.4;5; for (int j = 0; j < n; j += 1)6; A[0] = 0.0;7;8define void @func(i32 %n, ptr noalias nonnull %A) {9entry:10 br label %for11 12for:13 %j = phi i32 [0, %entry], [%j.inc, %inc]14 %j.cmp = icmp slt i32 %j, %n15 br i1 %j.cmp, label %body, label %exit16 17 body:18 store double 0.0, ptr %A19 br label %inc20 21inc:22 %j.inc = add nuw nsw i32 %j, 123 br label %for24 25exit:26 br label %return27 28return:29 ret void30}31 32 33; CHECK: SCoP could not be simplified34