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: PR122270 #1937

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
16 changes: 8 additions & 8 deletions bench/boost/optimized/area_geo.ll
Original file line number Diff line number Diff line change
Expand Up @@ -162584,14 +162584,14 @@ _ZN5boost8geometry4math15sin_cos_degreesIdEEvRKT_RS3_S6_.exit123.sink.split: ; p
br label %_ZN5boost8geometry4math15sin_cos_degreesIdEEvRKT_RS3_S6_.exit123

_ZN5boost8geometry4math15sin_cos_degreesIdEEvRKT_RS3_S6_.exit123: ; preds = %_ZN5boost8geometry4math15sin_cos_degreesIdEEvRKT_RS3_S6_.exit123.sink.split, %173
%179 = call double @llvm.fabs.f64(double %69)
%179 = call noundef double @llvm.fabs.f64(double %69)
%180 = fcmp ogt double %179, 9.000000e+01
%.sroa.speculated222 = select i1 %180, double 9.000000e+01, double %69
%181 = fcmp oeq double %.sroa.speculated222, 0.000000e+00
br i1 %181, label %_ZN5boost8geometry4math11round_angleIdEET_RKS3_.exit, label %182

182: ; preds = %_ZN5boost8geometry4math15sin_cos_degreesIdEEvRKT_RS3_S6_.exit123
%183 = select i1 %180, double 9.000000e+01, double %179
%183 = call noundef double @llvm.fabs.f64(double %.sroa.speculated222)
%184 = fcmp olt double %183, 6.250000e-02
%185 = fadd double %183, -6.250000e-02
%186 = fadd double %185, 6.250000e-02
Expand All @@ -162603,14 +162603,14 @@ _ZN5boost8geometry4math15sin_cos_degreesIdEEvRKT_RS3_S6_.exit123: ; preds = %_ZN

_ZN5boost8geometry4math11round_angleIdEET_RKS3_.exit: ; preds = %_ZN5boost8geometry4math15sin_cos_degreesIdEEvRKT_RS3_S6_.exit123, %182
%.0.i = phi double [ %190, %182 ], [ 0.000000e+00, %_ZN5boost8geometry4math15sin_cos_degreesIdEEvRKT_RS3_S6_.exit123 ]
%191 = call double @llvm.fabs.f64(double %71)
%191 = call noundef double @llvm.fabs.f64(double %71)
%192 = fcmp ogt double %191, 9.000000e+01
%.sroa.speculated212 = select i1 %192, double 9.000000e+01, double %71
%193 = fcmp oeq double %.sroa.speculated212, 0.000000e+00
br i1 %193, label %_ZN5boost8geometry4math11round_angleIdEET_RKS3_.exit125, label %194

194: ; preds = %_ZN5boost8geometry4math11round_angleIdEET_RKS3_.exit
%195 = select i1 %192, double 9.000000e+01, double %191
%195 = call noundef double @llvm.fabs.f64(double %.sroa.speculated212)
%196 = fcmp olt double %195, 6.250000e-02
%197 = fadd double %195, -6.250000e-02
%198 = fadd double %197, 6.250000e-02
Expand Down Expand Up @@ -167026,14 +167026,14 @@ _ZN5boost8geometry4math15sin_cos_degreesIdEEvRKT_RS3_S6_.exit123.sink.split: ; p
br label %_ZN5boost8geometry4math15sin_cos_degreesIdEEvRKT_RS3_S6_.exit123

_ZN5boost8geometry4math15sin_cos_degreesIdEEvRKT_RS3_S6_.exit123: ; preds = %_ZN5boost8geometry4math15sin_cos_degreesIdEEvRKT_RS3_S6_.exit123.sink.split, %173
%179 = call double @llvm.fabs.f64(double %69)
%179 = call noundef double @llvm.fabs.f64(double %69)
%180 = fcmp ogt double %179, 9.000000e+01
%.sroa.speculated222 = select i1 %180, double 9.000000e+01, double %69
%181 = fcmp oeq double %.sroa.speculated222, 0.000000e+00
br i1 %181, label %_ZN5boost8geometry4math11round_angleIdEET_RKS3_.exit, label %182

182: ; preds = %_ZN5boost8geometry4math15sin_cos_degreesIdEEvRKT_RS3_S6_.exit123
%183 = select i1 %180, double 9.000000e+01, double %179
%183 = call noundef double @llvm.fabs.f64(double %.sroa.speculated222)
%184 = fcmp olt double %183, 6.250000e-02
%185 = fadd double %183, -6.250000e-02
%186 = fadd double %185, 6.250000e-02
Expand All @@ -167045,14 +167045,14 @@ _ZN5boost8geometry4math15sin_cos_degreesIdEEvRKT_RS3_S6_.exit123: ; preds = %_ZN

_ZN5boost8geometry4math11round_angleIdEET_RKS3_.exit: ; preds = %_ZN5boost8geometry4math15sin_cos_degreesIdEEvRKT_RS3_S6_.exit123, %182
%.0.i = phi double [ %190, %182 ], [ 0.000000e+00, %_ZN5boost8geometry4math15sin_cos_degreesIdEEvRKT_RS3_S6_.exit123 ]
%191 = call double @llvm.fabs.f64(double %71)
%191 = call noundef double @llvm.fabs.f64(double %71)
%192 = fcmp ogt double %191, 9.000000e+01
%.sroa.speculated212 = select i1 %192, double 9.000000e+01, double %71
%193 = fcmp oeq double %.sroa.speculated212, 0.000000e+00
br i1 %193, label %_ZN5boost8geometry4math11round_angleIdEET_RKS3_.exit125, label %194

194: ; preds = %_ZN5boost8geometry4math11round_angleIdEET_RKS3_.exit
%195 = select i1 %192, double 9.000000e+01, double %191
%195 = call noundef double @llvm.fabs.f64(double %.sroa.speculated212)
%196 = fcmp olt double %195, 6.250000e-02
%197 = fadd double %195, -6.250000e-02
%198 = fadd double %197, 6.250000e-02
Expand Down
8 changes: 4 additions & 4 deletions bench/boost/optimized/buffer_geo_spheroid.ll
Original file line number Diff line number Diff line change
Expand Up @@ -209272,14 +209272,14 @@ _ZN5boost8geometry4math15sin_cos_degreesIdEEvRKT_RS3_S6_.exit123.sink.split: ; p
br label %_ZN5boost8geometry4math15sin_cos_degreesIdEEvRKT_RS3_S6_.exit123

_ZN5boost8geometry4math15sin_cos_degreesIdEEvRKT_RS3_S6_.exit123: ; preds = %_ZN5boost8geometry4math15sin_cos_degreesIdEEvRKT_RS3_S6_.exit123.sink.split, %173
%179 = call double @llvm.fabs.f64(double %69)
%179 = call noundef double @llvm.fabs.f64(double %69)
%180 = fcmp ogt double %179, 9.000000e+01
%.sroa.speculated222 = select i1 %180, double 9.000000e+01, double %69
%181 = fcmp oeq double %.sroa.speculated222, 0.000000e+00
br i1 %181, label %_ZN5boost8geometry4math11round_angleIdEET_RKS3_.exit, label %182

182: ; preds = %_ZN5boost8geometry4math15sin_cos_degreesIdEEvRKT_RS3_S6_.exit123
%183 = select i1 %180, double 9.000000e+01, double %179
%183 = call noundef double @llvm.fabs.f64(double %.sroa.speculated222)
%184 = fcmp olt double %183, 6.250000e-02
%185 = fadd double %183, -6.250000e-02
%186 = fadd double %185, 6.250000e-02
Expand All @@ -209291,14 +209291,14 @@ _ZN5boost8geometry4math15sin_cos_degreesIdEEvRKT_RS3_S6_.exit123: ; preds = %_ZN

_ZN5boost8geometry4math11round_angleIdEET_RKS3_.exit: ; preds = %_ZN5boost8geometry4math15sin_cos_degreesIdEEvRKT_RS3_S6_.exit123, %182
%.0.i = phi double [ %190, %182 ], [ 0.000000e+00, %_ZN5boost8geometry4math15sin_cos_degreesIdEEvRKT_RS3_S6_.exit123 ]
%191 = call double @llvm.fabs.f64(double %71)
%191 = call noundef double @llvm.fabs.f64(double %71)
%192 = fcmp ogt double %191, 9.000000e+01
%.sroa.speculated212 = select i1 %192, double 9.000000e+01, double %71
%193 = fcmp oeq double %.sroa.speculated212, 0.000000e+00
br i1 %193, label %_ZN5boost8geometry4math11round_angleIdEET_RKS3_.exit125, label %194

194: ; preds = %_ZN5boost8geometry4math11round_angleIdEET_RKS3_.exit
%195 = select i1 %192, double 9.000000e+01, double %191
%195 = call noundef double @llvm.fabs.f64(double %.sroa.speculated212)
%196 = fcmp olt double %195, 6.250000e-02
%197 = fadd double %195, -6.250000e-02
%198 = fadd double %197, 6.250000e-02
Expand Down
112 changes: 53 additions & 59 deletions bench/bullet3/optimized/btHeightfieldTerrainShape.ll
Original file line number Diff line number Diff line change
Expand Up @@ -3356,29 +3356,27 @@ if.end: ; preds = %entry
%cond34 = sext i1 %cmp33 to i32
%cond36 = select i1 %cmp30, i32 %cond34, i32 1
%cmp37.not = icmp eq i32 %cond29, 0
%15 = tail call float @llvm.fabs.f32(float %div)
%16 = fdiv float 1.000000e+00, %15
%div40 = select i1 %cmp21, float 0x7FF0000000000000, float %16
%15 = tail call float @llvm.fabs.f32(float %rayDirectionFlatX.0)
%div40 = fdiv float 1.000000e+00, %15
%cond43 = select i1 %cmp37.not, float 0x416312CFE0000000, float %div40
%cmp44.not = icmp eq i32 %cond36, 0
%17 = tail call float @llvm.fabs.f32(float %div25)
%18 = fdiv float 1.000000e+00, %17
%div47 = select i1 %cmp21, float 0x7FF0000000000000, float %18
%16 = tail call float @llvm.fabs.f32(float %rayDirectionFlatZ.0)
%div47 = fdiv float 1.000000e+00, %16
%cond50 = select i1 %cmp44.not, float 0x416312CFE0000000, float %div47
br i1 %cmp37.not, label %if.end79, label %if.then52

if.then52: ; preds = %if.end
br i1 %cmp27, label %if.else65, label %if.then54

if.then54: ; preds = %if.then52
%19 = tail call noundef float @llvm.ceil.f32(float %10)
%sub64 = fsub float %19, %10
%17 = tail call noundef float @llvm.ceil.f32(float %10)
%sub64 = fsub float %17, %10
%mul = fmul float %div40, %sub64
br label %if.end79

if.else65: ; preds = %if.then52
%20 = tail call noundef float @llvm.floor.f32(float %10)
%sub75 = fsub float %10, %20
%18 = tail call noundef float @llvm.floor.f32(float %10)
%sub75 = fsub float %10, %18
%mul76 = fmul float %div40, %sub75
br label %if.end79

Expand All @@ -3390,23 +3388,23 @@ if.then81: ; preds = %if.end79
br i1 %cmp30, label %if.else95, label %if.then83

if.then83: ; preds = %if.then81
%21 = tail call noundef float @llvm.ceil.f32(float %13)
%sub93 = fsub float %21, %13
%19 = tail call noundef float @llvm.ceil.f32(float %13)
%sub93 = fsub float %19, %13
%mul94 = fmul float %div47, %sub93
br label %if.end109

if.else95: ; preds = %if.then81
%22 = tail call noundef float @llvm.floor.f32(float %13)
%sub105 = fsub float %13, %22
%20 = tail call noundef float @llvm.floor.f32(float %13)
%sub105 = fsub float %13, %20
%mul106 = fmul float %div47, %sub105
br label %if.end109

if.end109: ; preds = %if.end79, %if.then83, %if.else95
%paramCrossZ.0 = phi float [ %mul94, %if.then83 ], [ %mul106, %if.else95 ], [ 0x416312CFE0000000, %if.end79 ]
%23 = tail call noundef float @llvm.floor.f32(float %10)
%conv115 = fptosi float %23 to i32
%24 = tail call noundef float @llvm.floor.f32(float %13)
%conv121 = fptosi float %24 to i32
%21 = tail call noundef float @llvm.floor.f32(float %10)
%conv115 = fptosi float %21 to i32
%22 = tail call noundef float @llvm.floor.f32(float %13)
%conv121 = fptosi float %22 to i32
%cmp123 = fcmp oeq float %paramCrossX.0, 0.000000e+00
br i1 %cmp123, label %if.then124, label %if.end130

Expand Down Expand Up @@ -3535,29 +3533,27 @@ if.end: ; preds = %entry
%cond34 = sext i1 %cmp33 to i32
%cond36 = select i1 %cmp30, i32 %cond34, i32 1
%cmp37.not = icmp eq i32 %cond29, 0
%15 = tail call float @llvm.fabs.f32(float %div)
%16 = fdiv float 1.000000e+00, %15
%div40 = select i1 %cmp21, float 0x7FF0000000000000, float %16
%15 = tail call float @llvm.fabs.f32(float %rayDirectionFlatX.0)
%div40 = fdiv float 1.000000e+00, %15
%cond43 = select i1 %cmp37.not, float 0x416312CFE0000000, float %div40
%cmp44.not = icmp eq i32 %cond36, 0
%17 = tail call float @llvm.fabs.f32(float %div25)
%18 = fdiv float 1.000000e+00, %17
%div47 = select i1 %cmp21, float 0x7FF0000000000000, float %18
%16 = tail call float @llvm.fabs.f32(float %rayDirectionFlatZ.0)
%div47 = fdiv float 1.000000e+00, %16
%cond50 = select i1 %cmp44.not, float 0x416312CFE0000000, float %div47
br i1 %cmp37.not, label %if.end79, label %if.then52

if.then52: ; preds = %if.end
br i1 %cmp27, label %if.else65, label %if.then54

if.then54: ; preds = %if.then52
%19 = tail call noundef float @llvm.ceil.f32(float %10)
%sub64 = fsub float %19, %10
%17 = tail call noundef float @llvm.ceil.f32(float %10)
%sub64 = fsub float %17, %10
%mul = fmul float %div40, %sub64
br label %if.end79

if.else65: ; preds = %if.then52
%20 = tail call noundef float @llvm.floor.f32(float %10)
%sub75 = fsub float %10, %20
%18 = tail call noundef float @llvm.floor.f32(float %10)
%sub75 = fsub float %10, %18
%mul76 = fmul float %div40, %sub75
br label %if.end79

Expand All @@ -3569,24 +3565,24 @@ if.then81: ; preds = %if.end79
br i1 %cmp30, label %if.else95, label %if.then83

if.then83: ; preds = %if.then81
%21 = tail call noundef float @llvm.ceil.f32(float %13)
%sub93 = fsub float %21, %13
%19 = tail call noundef float @llvm.ceil.f32(float %13)
%sub93 = fsub float %19, %13
%mul94 = fmul float %div47, %sub93
br label %if.end109

if.else95: ; preds = %if.then81
%22 = tail call noundef float @llvm.floor.f32(float %13)
%sub105 = fsub float %13, %22
%20 = tail call noundef float @llvm.floor.f32(float %13)
%sub105 = fsub float %13, %20
%mul106 = fmul float %div47, %sub105
br label %if.end109

if.end109: ; preds = %if.end79, %if.then83, %if.else95
%paramCrossZ.0 = phi float [ %mul94, %if.then83 ], [ %mul106, %if.else95 ], [ 0x416312CFE0000000, %if.end79 ]
%23 = tail call noundef float @llvm.floor.f32(float %10)
%conv115 = fptosi float %23 to i32
%21 = tail call noundef float @llvm.floor.f32(float %10)
%conv115 = fptosi float %21 to i32
store i32 %conv115, ptr %rs, align 4
%24 = tail call noundef float @llvm.floor.f32(float %13)
%conv121 = fptosi float %24 to i32
%22 = tail call noundef float @llvm.floor.f32(float %13)
%conv121 = fptosi float %22 to i32
%z = getelementptr inbounds nuw i8, ptr %rs, i64 4
store i32 %conv121, ptr %z, align 4
%cmp123 = fcmp oeq float %paramCrossX.0, 0.000000e+00
Expand Down Expand Up @@ -3617,7 +3613,7 @@ if.then136: ; preds = %if.then133
br label %if.end140

if.end140: ; preds = %if.then133, %if.then136, %if.end130
%25 = phi i32 [ %sub138, %if.then136 ], [ %conv121, %if.then133 ], [ %conv121, %if.end130 ]
%23 = phi i32 [ %sub138, %if.then136 ], [ %conv121, %if.then133 ], [ %conv121, %if.end130 ]
%paramCrossZ.1 = phi float [ %add134, %if.then136 ], [ %add134, %if.then133 ], [ %paramCrossZ.0, %if.end130 ]
%prev_x = getelementptr inbounds nuw i8, ptr %rs, i64 8
%prev_z = getelementptr inbounds nuw i8, ptr %rs, i64 12
Expand All @@ -3627,12 +3623,12 @@ if.end140: ; preds = %if.then133, %if.the

while.body: ; preds = %if.else166, %if.end140
%paramCrossZ.265 = phi float [ 0.000000e+00, %if.end140 ], [ %paramCrossZ.2.sink, %if.else166 ]
%26 = phi i32 [ %25, %if.end140 ], [ %27, %if.else166 ]
%24 = phi i32 [ %23, %if.end140 ], [ %25, %if.else166 ]
%conv11563 = phi i32 [ %conv11561, %if.end140 ], [ %conv11562, %if.else166 ]
%paramCrossX.2 = phi float [ %paramCrossX.1, %if.end140 ], [ %paramCrossX.3, %if.else166 ]
%paramCrossZ.2 = phi float [ %paramCrossZ.1, %if.end140 ], [ %paramCrossZ.3, %if.else166 ]
store i32 %conv11563, ptr %prev_x, align 4
store i32 %26, ptr %prev_z, align 4
store i32 %24, ptr %prev_z, align 4
store float %paramCrossZ.265, ptr %prevParam, align 4
%cmp148 = fcmp olt float %paramCrossX.2, %paramCrossZ.2
br i1 %cmp148, label %if.then149, label %if.else154
Expand All @@ -3644,14 +3640,14 @@ if.then149: ; preds = %while.body
br label %if.end159

if.else154: ; preds = %while.body
%add156 = add nsw i32 %26, %cond36
%add156 = add nsw i32 %24, %cond36
store i32 %add156, ptr %z, align 4
%add158 = fadd float %cond50, %paramCrossZ.2
br label %if.end159

if.end159: ; preds = %if.else154, %if.then149
%paramCrossZ.2.sink = phi float [ %paramCrossX.2, %if.then149 ], [ %paramCrossZ.2, %if.else154 ]
%27 = phi i32 [ %26, %if.then149 ], [ %add156, %if.else154 ]
%25 = phi i32 [ %24, %if.then149 ], [ %add156, %if.else154 ]
%conv11562 = phi i32 [ %add151, %if.then149 ], [ %conv11563, %if.else154 ]
%paramCrossX.3 = phi float [ %add153, %if.then149 ], [ %paramCrossX.2, %if.else154 ]
%paramCrossZ.3 = phi float [ %paramCrossZ.2, %if.then149 ], [ %add158, %if.else154 ]
Expand Down Expand Up @@ -4186,29 +4182,27 @@ if.end: ; preds = %entry
%cond34 = sext i1 %cmp33 to i32
%cond36 = select i1 %cmp30, i32 %cond34, i32 1
%cmp37.not = icmp eq i32 %cond29, 0
%15 = tail call float @llvm.fabs.f32(float %div)
%16 = fdiv float 1.000000e+00, %15
%div40 = select i1 %cmp21, float 0x7FF0000000000000, float %16
%15 = tail call float @llvm.fabs.f32(float %rayDirectionFlatX.0)
%div40 = fdiv float 1.000000e+00, %15
%cond43 = select i1 %cmp37.not, float 0x416312CFE0000000, float %div40
%cmp44.not = icmp eq i32 %cond36, 0
%17 = tail call float @llvm.fabs.f32(float %div25)
%18 = fdiv float 1.000000e+00, %17
%div47 = select i1 %cmp21, float 0x7FF0000000000000, float %18
%16 = tail call float @llvm.fabs.f32(float %rayDirectionFlatZ.0)
%div47 = fdiv float 1.000000e+00, %16
%cond50 = select i1 %cmp44.not, float 0x416312CFE0000000, float %div47
br i1 %cmp37.not, label %if.end79, label %if.then52

if.then52: ; preds = %if.end
br i1 %cmp27, label %if.else65, label %if.then54

if.then54: ; preds = %if.then52
%19 = tail call noundef float @llvm.ceil.f32(float %10)
%sub64 = fsub float %19, %10
%17 = tail call noundef float @llvm.ceil.f32(float %10)
%sub64 = fsub float %17, %10
%mul = fmul float %div40, %sub64
br label %if.end79

if.else65: ; preds = %if.then52
%20 = tail call noundef float @llvm.floor.f32(float %10)
%sub75 = fsub float %10, %20
%18 = tail call noundef float @llvm.floor.f32(float %10)
%sub75 = fsub float %10, %18
%mul76 = fmul float %div40, %sub75
br label %if.end79

Expand All @@ -4220,23 +4214,23 @@ if.then81: ; preds = %if.end79
br i1 %cmp30, label %if.else95, label %if.then83

if.then83: ; preds = %if.then81
%21 = tail call noundef float @llvm.ceil.f32(float %13)
%sub93 = fsub float %21, %13
%19 = tail call noundef float @llvm.ceil.f32(float %13)
%sub93 = fsub float %19, %13
%mul94 = fmul float %div47, %sub93
br label %if.end109

if.else95: ; preds = %if.then81
%22 = tail call noundef float @llvm.floor.f32(float %13)
%sub105 = fsub float %13, %22
%20 = tail call noundef float @llvm.floor.f32(float %13)
%sub105 = fsub float %13, %20
%mul106 = fmul float %div47, %sub105
br label %if.end109

if.end109: ; preds = %if.end79, %if.then83, %if.else95
%paramCrossZ.0 = phi float [ %mul94, %if.then83 ], [ %mul106, %if.else95 ], [ 0x416312CFE0000000, %if.end79 ]
%23 = tail call noundef float @llvm.floor.f32(float %10)
%conv115 = fptosi float %23 to i32
%24 = tail call noundef float @llvm.floor.f32(float %13)
%conv121 = fptosi float %24 to i32
%21 = tail call noundef float @llvm.floor.f32(float %10)
%conv115 = fptosi float %21 to i32
%22 = tail call noundef float @llvm.floor.f32(float %13)
%conv121 = fptosi float %22 to i32
%cmp123 = fcmp oeq float %paramCrossX.0, 0.000000e+00
br i1 %cmp123, label %if.then124, label %if.end130

Expand Down
Loading