Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pre-commit: test PR76367 #45

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
299 changes: 148 additions & 151 deletions bench/abseil-cpp/optimized/iostream_state_saver_test.cc.ll

Large diffs are not rendered by default.

53 changes: 25 additions & 28 deletions bench/arrow/optimized/double-to-string.cc.ll
Original file line number Diff line number Diff line change
Expand Up @@ -765,8 +765,8 @@ if.then: ; preds = %entry
if.then.i: ; preds = %if.then
%infinity_symbol_.i = getelementptr inbounds %"class.arrow_vendored::double_conversion::DoubleToStringConverter", ptr %this, i64 0, i32 1
%4 = load ptr, ptr %infinity_symbol_.i, align 8
%cmp.i11 = icmp eq ptr %4, null
br i1 %cmp.i11, label %return, label %if.end.i
%cmp.i12 = icmp eq ptr %4, null
br i1 %cmp.i12, label %return, label %if.end.i

if.end.i: ; preds = %if.then.i
%cmp3.i = fcmp olt double %value, 0.000000e+00
Expand Down Expand Up @@ -830,16 +830,13 @@ return.sink.split.i: ; preds = %if.end12.i, %if.end
br label %return

if.end: ; preds = %entry
%cmp = icmp sgt i32 %requested_digits, 100
br i1 %cmp, label %return, label %if.end4
%cmp = icmp slt i32 %requested_digits, 101
%14 = tail call double @llvm.fabs.f64(double %value)
%or.cond = fcmp ult double %14, 0x4C63E9E4E4C2F344
%or.cond10 = and i1 %cmp, %or.cond
br i1 %or.cond10, label %if.end8, label %return

if.end4: ; preds = %if.end
%cmp5 = fcmp oge double %value, 0x4C63E9E4E4C2F344
%cmp6 = fcmp ole double %value, 0xCC63E9E4E4C2F344
%or.cond = or i1 %cmp5, %cmp6
br i1 %or.cond, label %return, label %if.end8

if.end8: ; preds = %if.end4
if.end8: ; preds = %if.end
%cmp.not.i = icmp slt i64 %0, 0
%fneg.i = fneg double %value
%v.addr.0.i = select i1 %cmp.not.i, double %fneg.i, double %value
Expand All @@ -860,40 +857,40 @@ if.end10.i: ; preds = %if.end8

_ZN14arrow_vendored17double_conversionL20DtoaToBignumDtoaModeENS0_23DoubleToStringConverter8DtoaModeE.exit.i: ; preds = %if.end10.i
call void @_ZN14arrow_vendored17double_conversion10BignumDtoaEdNS0_14BignumDtoaModeEiNS0_6VectorIcEEPiS4_(double noundef %v.addr.0.i, i32 noundef 2, i32 noundef %requested_digits, ptr nonnull %decimal_rep, i32 161, ptr noundef nonnull %decimal_rep_length, ptr noundef nonnull %decimal_point)
%14 = load i32, ptr %decimal_rep_length, align 4
%idxprom.i.i = sext i32 %14 to i64
%15 = load i32, ptr %decimal_rep_length, align 4
%idxprom.i.i = sext i32 %15 to i64
%arrayidx.i26.i = getelementptr inbounds i8, ptr %decimal_rep, i64 %idxprom.i.i
store i8 0, ptr %arrayidx.i26.i, align 1
br label %_ZN14arrow_vendored17double_conversion23DoubleToStringConverter13DoubleToAsciiEdNS1_8DtoaModeEiPciPbPiS5_.exit

_ZN14arrow_vendored17double_conversion23DoubleToStringConverter13DoubleToAsciiEdNS1_8DtoaModeEiPciPbPiS5_.exit: ; preds = %if.then7.i, %if.end10.i, %_ZN14arrow_vendored17double_conversionL20DtoaToBignumDtoaModeENS0_23DoubleToStringConverter8DtoaModeE.exit.i
%15 = load i32, ptr %this, align 8
%and = and i32 %15, 8
%16 = load i32, ptr %this, align 8
%and = and i32 %16, 8
%cmp9.not = icmp eq i32 %and, 0
%cmp10 = fcmp une double %value, 0.000000e+00
%brmerge = select i1 %cmp10, i1 true, i1 %cmp9.not
%or.cond10 = select i1 %cmp.not.i, i1 %brmerge, i1 false
br i1 %or.cond10, label %if.then13, label %if.end14
%or.cond11 = select i1 %cmp.not.i, i1 %brmerge, i1 false
br i1 %or.cond11, label %if.then13, label %if.end14

if.then13: ; preds = %_ZN14arrow_vendored17double_conversion23DoubleToStringConverter13DoubleToAsciiEdNS1_8DtoaModeEiPciPbPiS5_.exit
%position_.i = getelementptr inbounds %"class.arrow_vendored::double_conversion::StringBuilder", ptr %result_builder, i64 0, i32 1
%16 = load i32, ptr %position_.i, align 8
%inc.i = add nsw i32 %16, 1
%17 = load i32, ptr %position_.i, align 8
%inc.i = add nsw i32 %17, 1
store i32 %inc.i, ptr %position_.i, align 8
%17 = load ptr, ptr %result_builder, align 8
%idxprom.i.i13 = sext i32 %16 to i64
%arrayidx.i.i14 = getelementptr inbounds i8, ptr %17, i64 %idxprom.i.i13
store i8 45, ptr %arrayidx.i.i14, align 1
%18 = load ptr, ptr %result_builder, align 8
%idxprom.i.i14 = sext i32 %17 to i64
%arrayidx.i.i15 = getelementptr inbounds i8, ptr %18, i64 %idxprom.i.i14
store i8 45, ptr %arrayidx.i.i15, align 1
br label %if.end14

if.end14: ; preds = %if.then13, %_ZN14arrow_vendored17double_conversion23DoubleToStringConverter13DoubleToAsciiEdNS1_8DtoaModeEiPciPbPiS5_.exit
%18 = load i32, ptr %decimal_rep_length, align 4
%19 = load i32, ptr %decimal_point, align 4
call void @_ZNK14arrow_vendored17double_conversion23DoubleToStringConverter27CreateDecimalRepresentationEPKciiiPNS0_13StringBuilderE(ptr noundef nonnull align 8 dereferenceable(48) %this, ptr noundef nonnull %decimal_rep, i32 noundef %18, i32 noundef %19, i32 noundef %requested_digits, ptr noundef %result_builder)
%19 = load i32, ptr %decimal_rep_length, align 4
%20 = load i32, ptr %decimal_point, align 4
call void @_ZNK14arrow_vendored17double_conversion23DoubleToStringConverter27CreateDecimalRepresentationEPKciiiPNS0_13StringBuilderE(ptr noundef nonnull align 8 dereferenceable(48) %this, ptr noundef nonnull %decimal_rep, i32 noundef %19, i32 noundef %20, i32 noundef %requested_digits, ptr noundef %result_builder)
br label %return

return: ; preds = %return.sink.split.i, %if.then9.i, %if.end7.i, %if.then.i, %if.end4, %if.end, %if.end14
%retval.0 = phi i1 [ true, %if.end14 ], [ false, %if.end ], [ false, %if.end4 ], [ false, %if.then.i ], [ false, %if.then9.i ], [ false, %if.end7.i ], [ true, %return.sink.split.i ]
return: ; preds = %return.sink.split.i, %if.then9.i, %if.end7.i, %if.then.i, %if.end, %if.end14
%retval.0 = phi i1 [ true, %if.end14 ], [ false, %if.end ], [ false, %if.then.i ], [ false, %if.then9.i ], [ false, %if.end7.i ], [ true, %return.sink.split.i ]
ret i1 %retval.0
}

Expand Down
110 changes: 49 additions & 61 deletions bench/assimp/optimized/Assimp.cpp.ll
Original file line number Diff line number Diff line change
Expand Up @@ -4924,135 +4924,123 @@ define linkonce_odr hidden noundef zeroext i1 @_ZNK12aiMatrix4x4tIfE10IsIdentity
entry:
%a2 = getelementptr inbounds %class.aiMatrix4x4t, ptr %this, i64 0, i32 1
%0 = load float, ptr %a2, align 4
%cmp = fcmp ugt float %0, 0x3F847AE140000000
%cmp3 = fcmp ult float %0, 0xBF847AE140000000
%or.cond = or i1 %cmp, %cmp3
%1 = tail call float @llvm.fabs.f32(float %0)
%or.cond = fcmp ugt float %1, 0x3F847AE140000000
br i1 %or.cond, label %land.end, label %land.lhs.true4

land.lhs.true4: ; preds = %entry
%a3 = getelementptr inbounds %class.aiMatrix4x4t, ptr %this, i64 0, i32 2
%1 = load float, ptr %a3, align 4
%cmp5 = fcmp ugt float %1, 0x3F847AE140000000
%cmp8 = fcmp ult float %1, 0xBF847AE140000000
%or.cond16 = or i1 %cmp5, %cmp8
%2 = load float, ptr %a3, align 4
%3 = tail call float @llvm.fabs.f32(float %2)
%or.cond16 = fcmp ugt float %3, 0x3F847AE140000000
br i1 %or.cond16, label %land.end, label %land.lhs.true9

land.lhs.true9: ; preds = %land.lhs.true4
%a4 = getelementptr inbounds %class.aiMatrix4x4t, ptr %this, i64 0, i32 3
%2 = load float, ptr %a4, align 4
%cmp10 = fcmp ugt float %2, 0x3F847AE140000000
%cmp13 = fcmp ult float %2, 0xBF847AE140000000
%or.cond17 = or i1 %cmp10, %cmp13
%4 = load float, ptr %a4, align 4
%5 = tail call float @llvm.fabs.f32(float %4)
%or.cond17 = fcmp ugt float %5, 0x3F847AE140000000
br i1 %or.cond17, label %land.end, label %land.lhs.true14

land.lhs.true14: ; preds = %land.lhs.true9
%b1 = getelementptr inbounds %class.aiMatrix4x4t, ptr %this, i64 0, i32 4
%3 = load float, ptr %b1, align 4
%cmp15 = fcmp ugt float %3, 0x3F847AE140000000
%cmp18 = fcmp ult float %3, 0xBF847AE140000000
%or.cond18 = or i1 %cmp15, %cmp18
%6 = load float, ptr %b1, align 4
%7 = tail call float @llvm.fabs.f32(float %6)
%or.cond18 = fcmp ugt float %7, 0x3F847AE140000000
br i1 %or.cond18, label %land.end, label %land.lhs.true19

land.lhs.true19: ; preds = %land.lhs.true14
%b3 = getelementptr inbounds %class.aiMatrix4x4t, ptr %this, i64 0, i32 6
%4 = load float, ptr %b3, align 4
%cmp20 = fcmp ugt float %4, 0x3F847AE140000000
%cmp23 = fcmp ult float %4, 0xBF847AE140000000
%or.cond19 = or i1 %cmp20, %cmp23
%8 = load float, ptr %b3, align 4
%9 = tail call float @llvm.fabs.f32(float %8)
%or.cond19 = fcmp ugt float %9, 0x3F847AE140000000
br i1 %or.cond19, label %land.end, label %land.lhs.true24

land.lhs.true24: ; preds = %land.lhs.true19
%b4 = getelementptr inbounds %class.aiMatrix4x4t, ptr %this, i64 0, i32 7
%5 = load float, ptr %b4, align 4
%cmp25 = fcmp ugt float %5, 0x3F847AE140000000
%cmp28 = fcmp ult float %5, 0xBF847AE140000000
%or.cond20 = or i1 %cmp25, %cmp28
%10 = load float, ptr %b4, align 4
%11 = tail call float @llvm.fabs.f32(float %10)
%or.cond20 = fcmp ugt float %11, 0x3F847AE140000000
br i1 %or.cond20, label %land.end, label %land.lhs.true29

land.lhs.true29: ; preds = %land.lhs.true24
%c1 = getelementptr inbounds %class.aiMatrix4x4t, ptr %this, i64 0, i32 8
%6 = load float, ptr %c1, align 4
%cmp30 = fcmp ugt float %6, 0x3F847AE140000000
%cmp33 = fcmp ult float %6, 0xBF847AE140000000
%or.cond21 = or i1 %cmp30, %cmp33
%12 = load float, ptr %c1, align 4
%13 = tail call float @llvm.fabs.f32(float %12)
%or.cond21 = fcmp ugt float %13, 0x3F847AE140000000
br i1 %or.cond21, label %land.end, label %land.lhs.true34

land.lhs.true34: ; preds = %land.lhs.true29
%c2 = getelementptr inbounds %class.aiMatrix4x4t, ptr %this, i64 0, i32 9
%7 = load float, ptr %c2, align 4
%cmp35 = fcmp ugt float %7, 0x3F847AE140000000
%cmp38 = fcmp ult float %7, 0xBF847AE140000000
%or.cond22 = or i1 %cmp35, %cmp38
%14 = load float, ptr %c2, align 4
%15 = tail call float @llvm.fabs.f32(float %14)
%or.cond22 = fcmp ugt float %15, 0x3F847AE140000000
br i1 %or.cond22, label %land.end, label %land.lhs.true39

land.lhs.true39: ; preds = %land.lhs.true34
%c4 = getelementptr inbounds %class.aiMatrix4x4t, ptr %this, i64 0, i32 11
%8 = load float, ptr %c4, align 4
%cmp40 = fcmp ugt float %8, 0x3F847AE140000000
%cmp43 = fcmp ult float %8, 0xBF847AE140000000
%or.cond23 = or i1 %cmp40, %cmp43
%16 = load float, ptr %c4, align 4
%17 = tail call float @llvm.fabs.f32(float %16)
%or.cond23 = fcmp ugt float %17, 0x3F847AE140000000
br i1 %or.cond23, label %land.end, label %land.lhs.true44

land.lhs.true44: ; preds = %land.lhs.true39
%d1 = getelementptr inbounds %class.aiMatrix4x4t, ptr %this, i64 0, i32 12
%9 = load float, ptr %d1, align 4
%cmp45 = fcmp ugt float %9, 0x3F847AE140000000
%cmp48 = fcmp ult float %9, 0xBF847AE140000000
%or.cond24 = or i1 %cmp45, %cmp48
%18 = load float, ptr %d1, align 4
%19 = tail call float @llvm.fabs.f32(float %18)
%or.cond24 = fcmp ugt float %19, 0x3F847AE140000000
br i1 %or.cond24, label %land.end, label %land.lhs.true49

land.lhs.true49: ; preds = %land.lhs.true44
%d2 = getelementptr inbounds %class.aiMatrix4x4t, ptr %this, i64 0, i32 13
%10 = load float, ptr %d2, align 4
%cmp50 = fcmp ugt float %10, 0x3F847AE140000000
%cmp53 = fcmp ult float %10, 0xBF847AE140000000
%or.cond25 = or i1 %cmp50, %cmp53
%20 = load float, ptr %d2, align 4
%21 = tail call float @llvm.fabs.f32(float %20)
%or.cond25 = fcmp ugt float %21, 0x3F847AE140000000
br i1 %or.cond25, label %land.end, label %land.lhs.true54

land.lhs.true54: ; preds = %land.lhs.true49
%d3 = getelementptr inbounds %class.aiMatrix4x4t, ptr %this, i64 0, i32 14
%11 = load float, ptr %d3, align 4
%cmp55 = fcmp ugt float %11, 0x3F847AE140000000
%cmp58 = fcmp ult float %11, 0xBF847AE140000000
%or.cond26 = or i1 %cmp55, %cmp58
%22 = load float, ptr %d3, align 4
%23 = tail call float @llvm.fabs.f32(float %22)
%or.cond26 = fcmp ugt float %23, 0x3F847AE140000000
br i1 %or.cond26, label %land.end, label %land.lhs.true59

land.lhs.true59: ; preds = %land.lhs.true54
%12 = load float, ptr %this, align 4
%cmp60 = fcmp ugt float %12, 0x3FF028F5C0000000
%cmp63 = fcmp ult float %12, 0x3FEFAE1480000000
%24 = load float, ptr %this, align 4
%cmp60 = fcmp ugt float %24, 0x3FF028F5C0000000
%cmp63 = fcmp ult float %24, 0x3FEFAE1480000000
%or.cond27 = or i1 %cmp60, %cmp63
br i1 %or.cond27, label %land.end, label %land.lhs.true64

land.lhs.true64: ; preds = %land.lhs.true59
%b2 = getelementptr inbounds %class.aiMatrix4x4t, ptr %this, i64 0, i32 5
%13 = load float, ptr %b2, align 4
%cmp65 = fcmp ugt float %13, 0x3FF028F5C0000000
%cmp68 = fcmp ult float %13, 0x3FEFAE1480000000
%25 = load float, ptr %b2, align 4
%cmp65 = fcmp ugt float %25, 0x3FF028F5C0000000
%cmp68 = fcmp ult float %25, 0x3FEFAE1480000000
%or.cond28 = or i1 %cmp65, %cmp68
br i1 %or.cond28, label %land.end, label %land.lhs.true69

land.lhs.true69: ; preds = %land.lhs.true64
%c3 = getelementptr inbounds %class.aiMatrix4x4t, ptr %this, i64 0, i32 10
%14 = load float, ptr %c3, align 4
%cmp70 = fcmp ugt float %14, 0x3FF028F5C0000000
%cmp73 = fcmp ult float %14, 0x3FEFAE1480000000
%26 = load float, ptr %c3, align 4
%cmp70 = fcmp ugt float %26, 0x3FF028F5C0000000
%cmp73 = fcmp ult float %26, 0x3FEFAE1480000000
%or.cond29 = or i1 %cmp70, %cmp73
br i1 %or.cond29, label %land.end, label %land.lhs.true74

land.lhs.true74: ; preds = %land.lhs.true69
%d4 = getelementptr inbounds %class.aiMatrix4x4t, ptr %this, i64 0, i32 15
%15 = load float, ptr %d4, align 4
%cmp75 = fcmp ugt float %15, 0x3FF028F5C0000000
%27 = load float, ptr %d4, align 4
%cmp75 = fcmp ugt float %27, 0x3FF028F5C0000000
br i1 %cmp75, label %land.end, label %land.rhs

land.rhs: ; preds = %land.lhs.true74
%cmp77 = fcmp oge float %15, 0x3FEFAE1480000000
%cmp77 = fcmp oge float %27, 0x3FEFAE1480000000
br label %land.end

land.end: ; preds = %land.rhs, %land.lhs.true74, %land.lhs.true69, %land.lhs.true64, %land.lhs.true59, %land.lhs.true54, %land.lhs.true49, %land.lhs.true44, %land.lhs.true39, %land.lhs.true34, %land.lhs.true29, %land.lhs.true24, %land.lhs.true19, %land.lhs.true14, %land.lhs.true9, %land.lhs.true4, %entry
%16 = phi i1 [ false, %land.lhs.true74 ], [ false, %land.lhs.true69 ], [ false, %land.lhs.true64 ], [ false, %land.lhs.true59 ], [ false, %land.lhs.true54 ], [ false, %land.lhs.true49 ], [ false, %land.lhs.true44 ], [ false, %land.lhs.true39 ], [ false, %land.lhs.true34 ], [ false, %land.lhs.true29 ], [ false, %land.lhs.true24 ], [ false, %land.lhs.true19 ], [ false, %land.lhs.true14 ], [ false, %land.lhs.true9 ], [ false, %land.lhs.true4 ], [ false, %entry ], [ %cmp77, %land.rhs ]
ret i1 %16
%28 = phi i1 [ false, %land.lhs.true74 ], [ false, %land.lhs.true69 ], [ false, %land.lhs.true64 ], [ false, %land.lhs.true59 ], [ false, %land.lhs.true54 ], [ false, %land.lhs.true49 ], [ false, %land.lhs.true44 ], [ false, %land.lhs.true39 ], [ false, %land.lhs.true34 ], [ false, %land.lhs.true29 ], [ false, %land.lhs.true24 ], [ false, %land.lhs.true19 ], [ false, %land.lhs.true14 ], [ false, %land.lhs.true9 ], [ false, %land.lhs.true4 ], [ false, %entry ], [ %cmp77, %land.rhs ]
ret i1 %28
}

; Function Attrs: mustprogress uwtable
Expand Down
Loading