40 lines · plain
1; REQUIRES: asserts2; RUN: llc < %s -o /dev/null -stats 2>&1 | FileCheck %s -check-prefix=STATS3; Radar 102662724target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:32:64-v128:32:128-a0:0:32-n32-S32"5target triple = "thumbv7-apple-ios4.0.0"6; STATS-NOT: machine-sink7 8define i32 @foo(i32 %h, i32 %arg1) nounwind readonly ssp {9entry:10 br label %for.cond11 12for.cond: ; preds = %for.body, %entry13 %cmp = icmp slt i32 0, %h14 br i1 %cmp, label %for.body, label %if.end29915 16for.body: ; preds = %for.cond17 %cond0 = icmp ne i32 %arg1, 4218 %v.5 = select i1 %cond0, i32 undef, i32 019 %0 = load i8, ptr undef, align 120 %conv88 = zext i8 %0 to i3221 %sub89 = sub nsw i32 0, %conv8822 %cond1 = icmp ne i32 %arg1, 2323 %v.8 = select i1 %cond1, i32 undef, i32 %sub8924 %1 = load i8, ptr null, align 125 %conv108 = zext i8 %1 to i3226 %2 = load i8, ptr undef, align 127 %conv110 = zext i8 %2 to i3228 %sub111 = sub nsw i32 %conv108, %conv11029 %cmp112 = icmp slt i32 %sub111, 030 %sub115 = sub nsw i32 0, %sub11131 %abs = select i1 %cmp112, i32 %sub115, i32 %sub11132 %add95 = add i32 %v.5, %v.833 %add117 = add i32 %add95, %abs34 br i1 undef, label %for.cond, label %if.end29935 36if.end299: ; preds = %for.body, %for.cond37 %s.10 = phi i32 [ %add117, %for.body ], [ 0, %for.cond ]38 ret i32 %s.1039}40