1; RUN: opt < %s -analyze -enable-new-pm=0 -delinearize 2; RUN: opt < %s -passes='print<delinearization>' -disable-output 3target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 4target triple = "x86_64-unknown-linux-gnu" 5 6define void @foo(double* %Ey) { 7entry: 8 br i1 undef, label %for.cond55.preheader, label %for.end324 9 10for.cond55.preheader: 11 %iz.069 = phi i64 [ %inc323, %for.inc322 ], [ 0, %entry ] 12 br i1 undef, label %for.cond58.preheader, label %for.inc322 13 14for.cond58.preheader: 15 %iy.067 = phi i64 [ %inc320, %for.end ], [ 0, %for.cond55.preheader ] 16 br i1 undef, label %for.body60, label %for.end 17 18for.body60: 19 %ix.062 = phi i64 [ %inc, %for.body60 ], [ 0, %for.cond58.preheader ] 20 %0 = mul i64 %iz.069, undef 21 %tmp5 = add i64 %iy.067, %0 22 %tmp6 = mul i64 %tmp5, undef 23 %arrayidx69.sum = add i64 undef, %tmp6 24 %arrayidx70 = getelementptr inbounds double, double* %Ey, i64 %arrayidx69.sum 25 %1 = load double, double* %arrayidx70, align 8 26 %inc = add nsw i64 %ix.062, 1 27 br i1 false, label %for.body60, label %for.end 28 29for.end: 30 %inc320 = add nsw i64 %iy.067, 1 31 br i1 undef, label %for.cond58.preheader, label %for.inc322 32 33for.inc322: 34 %inc323 = add nsw i64 %iz.069, 1 35 br i1 undef, label %for.cond55.preheader, label %for.end324 36 37for.end324: 38 ret void 39} 40