Changeset View
Changeset View
Standalone View
Standalone View
llvm/test/Transforms/LoopVectorize/scev-exitlim-crash.ll
Show All 12 Lines | |||||
; CHECK: vector.body | ; CHECK: vector.body | ||||
define void @fn1() #0 { | define void @fn1() #0 { | ||||
entry: | entry: | ||||
br label %for.cond | br label %for.cond | ||||
for.cond: ; preds = %for.cond, %entry | for.cond: ; preds = %for.cond, %entry | ||||
%i.0 = phi i32 [ undef, %entry ], [ %inc, %for.cond ] | %i.0 = phi i32 [ undef, %entry ], [ %inc, %for.cond ] | ||||
%cmp = icmp slt i32 %i.0, 0 | %cmp = icmp slt i32 %i.0, 0 | ||||
%call = tail call i32 @fn2(double fadd (double fsub (double undef, double undef), double 1.000000e+00)) #2 | %fsub = fsub double undef, undef | ||||
%fadd = fadd double %fsub, 1.000000e+00 | |||||
%call = tail call i32 @fn2(double %fadd) #2 | |||||
%inc = add nsw i32 %i.0, 1 | %inc = add nsw i32 %i.0, 1 | ||||
br i1 %cmp, label %for.cond, label %for.cond4.preheader | br i1 %cmp, label %for.cond, label %for.cond4.preheader | ||||
for.cond4.preheader: ; preds = %for.cond | for.cond4.preheader: ; preds = %for.cond | ||||
%call.lcssa = phi i32 [ %call, %for.cond ] | %call.lcssa = phi i32 [ %call, %for.cond ] | ||||
%cmp514 = icmp sgt i32 %call.lcssa, 0 | %cmp514 = icmp sgt i32 %call.lcssa, 0 | ||||
br i1 %cmp514, label %for.cond7.preheader.lr.ph, label %for.end26 | br i1 %cmp514, label %for.cond7.preheader.lr.ph, label %for.end26 | ||||
▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines |