Skip to content
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
44 changes: 20 additions & 24 deletions bench/libigl/optimized/coplanar.ll
Original file line number Diff line number Diff line change
Expand Up @@ -8235,17 +8235,17 @@ _ZN5boost14multiprecision8backends12eval_is_zeroILm512ELm0ELNS0_16cpp_integer_ty
%49 = load i8, ptr %48, align 2, !range !81
%50 = trunc nuw i8 %49 to i1
%or.cond.i.i.i.i = select i1 %36, i1 true, i1 %50
br i1 %or.cond.i.i.i.i, label %56, label %51
br i1 %or.cond.i.i.i.i, label %55, label %50

51: ; preds = %46
%52 = getelementptr inbounds nuw i8, ptr %13, i64 8
%53 = load ptr, ptr %52, align 8
%54 = load i64, ptr %13, align 16
%55 = shl i64 %54, 3
call void @_ZdlPvm(ptr noundef %53, i64 noundef %55) #32
br label %56
56: ; preds = %46
%51 = getelementptr inbounds nuw i8, ptr %13, i64 8
%52 = load ptr, ptr %51, align 8
%53 = load i64, ptr %13, align 16
%54 = shl i64 %53, 3
call void @_ZdlPvm(ptr noundef %52, i64 noundef %54) #32
br label %55

56: ; preds = %51, %46
55: ; preds = %50, %_ZN4CGAL4signINS_9cpp_floatEEENS_22Real_embeddable_traitsIT_E3Sgn11result_typeERKS3_.exit.i
call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %13) #26
%57 = getelementptr inbounds nuw i8, ptr %22, i64 73
%58 = load i8, ptr %57, align 1, !tbaa !67, !range !81, !noundef !82
Expand All @@ -8256,15 +8256,15 @@ _ZN5boost14multiprecision8backends12eval_is_zeroILm512ELm0ELNS0_16cpp_integer_ty
%or.cond.i.i.i = select i1 %59, i1 true, i1 %62
br i1 %or.cond.i.i.i, label %_ZN4CGAL9cpp_floatD2Ev.exit, label %63

63: ; preds = %56
63: ; preds = %55
%64 = getelementptr inbounds nuw i8, ptr %22, i64 8
%65 = load ptr, ptr %64, align 8
%66 = load i64, ptr %22, align 16
%67 = shl i64 %66, 3
call void @_ZdlPvm(ptr noundef %65, i64 noundef %67) #32
br label %_ZN4CGAL9cpp_floatD2Ev.exit

_ZN4CGAL9cpp_floatD2Ev.exit: ; preds = %56, %63
_ZN4CGAL9cpp_floatD2Ev.exit: ; preds = %55, %63
call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %22) #26
%68 = getelementptr inbounds nuw i8, ptr %21, i64 73
%69 = load i8, ptr %68, align 1, !tbaa !67, !range !81, !noundef !82
Expand Down Expand Up @@ -8417,9 +8417,8 @@ _ZN4CGAL9cpp_floatD2Ev.exit48: ; preds = %_ZN4CGAL9cpp_floatD
br label %_ZN4CGAL9cpp_floatD2Ev.exit50

_ZN4CGAL9cpp_floatD2Ev.exit50: ; preds = %_ZN4CGAL9cpp_floatD2Ev.exit48, %151
%.0.i.i.i.i.i.i.i.i = call noundef i32 @llvm.scmp.i32.i32(i32 %47, i32 0)
call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %14) #26
ret i32 %.0.i.i.i.i.i.i.i.i
ret i32 %46

156: ; preds = %12
%157 = landingpad { ptr, i32 }
Expand Down Expand Up @@ -8482,7 +8481,7 @@ _ZN4CGAL9cpp_floatD2Ev.exit50: ; preds = %_ZN4CGAL9cpp_floatD
br label %_ZN4CGAL9cpp_floatD2Ev.exit52

_ZN4CGAL9cpp_floatD2Ev.exit52: ; preds = %180, %172, %170
%.pn = phi { ptr, i32 } [ %171, %170 ], [ %173, %172 ], [ %173, %180 ]
%.pn = phi { ptr, i32 } [ %171, %169 ], [ %173, %171 ], [ %173, %179 ]
call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %22) #26
%185 = getelementptr inbounds nuw i8, ptr %21, i64 73
%186 = load i8, ptr %185, align 1, !tbaa !67, !range !81, !noundef !82
Expand All @@ -8502,7 +8501,7 @@ _ZN4CGAL9cpp_floatD2Ev.exit52: ; preds = %180, %172, %170
br label %_ZN4CGAL9cpp_floatD2Ev.exit54

_ZN4CGAL9cpp_floatD2Ev.exit54: ; preds = %191, %_ZN4CGAL9cpp_floatD2Ev.exit52, %168
%.pn.pn = phi { ptr, i32 } [ %169, %168 ], [ %.pn, %_ZN4CGAL9cpp_floatD2Ev.exit52 ], [ %.pn, %191 ]
%.pn.pn = phi { ptr, i32 } [ %169, %167 ], [ %.pn, %_ZN4CGAL9cpp_floatD2Ev.exit52 ], [ %.pn, %190 ]
call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %21) #26
%196 = getelementptr inbounds nuw i8, ptr %20, i64 73
%197 = load i8, ptr %196, align 1, !tbaa !67, !range !81, !noundef !82
Expand All @@ -8522,7 +8521,7 @@ _ZN4CGAL9cpp_floatD2Ev.exit54: ; preds = %191, %_ZN4CGAL9cpp_
br label %_ZN4CGAL9cpp_floatD2Ev.exit56

_ZN4CGAL9cpp_floatD2Ev.exit56: ; preds = %202, %_ZN4CGAL9cpp_floatD2Ev.exit54, %166
%.pn.pn.pn = phi { ptr, i32 } [ %167, %166 ], [ %.pn.pn, %_ZN4CGAL9cpp_floatD2Ev.exit54 ], [ %.pn.pn, %202 ]
%.pn.pn.pn = phi { ptr, i32 } [ %167, %165 ], [ %.pn.pn, %_ZN4CGAL9cpp_floatD2Ev.exit54 ], [ %.pn.pn, %201 ]
call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %20) #26
%207 = getelementptr inbounds nuw i8, ptr %19, i64 73
%208 = load i8, ptr %207, align 1, !tbaa !67, !range !81, !noundef !82
Expand All @@ -8542,7 +8541,7 @@ _ZN4CGAL9cpp_floatD2Ev.exit56: ; preds = %202, %_ZN4CGAL9cpp_
br label %_ZN4CGAL9cpp_floatD2Ev.exit58

_ZN4CGAL9cpp_floatD2Ev.exit58: ; preds = %213, %_ZN4CGAL9cpp_floatD2Ev.exit56, %164
%.pn.pn.pn.pn = phi { ptr, i32 } [ %165, %164 ], [ %.pn.pn.pn, %_ZN4CGAL9cpp_floatD2Ev.exit56 ], [ %.pn.pn.pn, %213 ]
%.pn.pn.pn.pn = phi { ptr, i32 } [ %165, %163 ], [ %.pn.pn.pn, %_ZN4CGAL9cpp_floatD2Ev.exit56 ], [ %.pn.pn.pn, %212 ]
call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %19) #26
%218 = getelementptr inbounds nuw i8, ptr %18, i64 73
%219 = load i8, ptr %218, align 1, !tbaa !67, !range !81, !noundef !82
Expand All @@ -8562,7 +8561,7 @@ _ZN4CGAL9cpp_floatD2Ev.exit58: ; preds = %213, %_ZN4CGAL9cpp_
br label %_ZN4CGAL9cpp_floatD2Ev.exit60

_ZN4CGAL9cpp_floatD2Ev.exit60: ; preds = %224, %_ZN4CGAL9cpp_floatD2Ev.exit58, %162
%.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %163, %162 ], [ %.pn.pn.pn.pn, %_ZN4CGAL9cpp_floatD2Ev.exit58 ], [ %.pn.pn.pn.pn, %224 ]
%.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %163, %161 ], [ %.pn.pn.pn.pn, %_ZN4CGAL9cpp_floatD2Ev.exit58 ], [ %.pn.pn.pn.pn, %223 ]
call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %18) #26
%229 = getelementptr inbounds nuw i8, ptr %17, i64 73
%230 = load i8, ptr %229, align 1, !tbaa !67, !range !81, !noundef !82
Expand All @@ -8582,7 +8581,7 @@ _ZN4CGAL9cpp_floatD2Ev.exit60: ; preds = %224, %_ZN4CGAL9cpp_
br label %_ZN4CGAL9cpp_floatD2Ev.exit62

_ZN4CGAL9cpp_floatD2Ev.exit62: ; preds = %235, %_ZN4CGAL9cpp_floatD2Ev.exit60, %160
%.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %161, %160 ], [ %.pn.pn.pn.pn.pn, %_ZN4CGAL9cpp_floatD2Ev.exit60 ], [ %.pn.pn.pn.pn.pn, %235 ]
%.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %161, %159 ], [ %.pn.pn.pn.pn.pn, %_ZN4CGAL9cpp_floatD2Ev.exit60 ], [ %.pn.pn.pn.pn.pn, %234 ]
call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %17) #26
%240 = getelementptr inbounds nuw i8, ptr %16, i64 73
%241 = load i8, ptr %240, align 1, !tbaa !67, !range !81, !noundef !82
Expand All @@ -8602,7 +8601,7 @@ _ZN4CGAL9cpp_floatD2Ev.exit62: ; preds = %235, %_ZN4CGAL9cpp_
br label %_ZN4CGAL9cpp_floatD2Ev.exit64

_ZN4CGAL9cpp_floatD2Ev.exit64: ; preds = %246, %_ZN4CGAL9cpp_floatD2Ev.exit62, %158
%.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %159, %158 ], [ %.pn.pn.pn.pn.pn.pn, %_ZN4CGAL9cpp_floatD2Ev.exit62 ], [ %.pn.pn.pn.pn.pn.pn, %246 ]
%.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %159, %157 ], [ %.pn.pn.pn.pn.pn.pn, %_ZN4CGAL9cpp_floatD2Ev.exit62 ], [ %.pn.pn.pn.pn.pn.pn, %245 ]
call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %16) #26
%251 = getelementptr inbounds nuw i8, ptr %15, i64 73
%252 = load i8, ptr %251, align 1, !tbaa !67, !range !81, !noundef !82
Expand All @@ -8622,7 +8621,7 @@ _ZN4CGAL9cpp_floatD2Ev.exit64: ; preds = %246, %_ZN4CGAL9cpp_
br label %_ZN4CGAL9cpp_floatD2Ev.exit66

_ZN4CGAL9cpp_floatD2Ev.exit66: ; preds = %257, %_ZN4CGAL9cpp_floatD2Ev.exit64, %156
%.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %157, %156 ], [ %.pn.pn.pn.pn.pn.pn.pn, %_ZN4CGAL9cpp_floatD2Ev.exit64 ], [ %.pn.pn.pn.pn.pn.pn.pn, %257 ]
%.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %157, %155 ], [ %.pn.pn.pn.pn.pn.pn.pn, %_ZN4CGAL9cpp_floatD2Ev.exit64 ], [ %.pn.pn.pn.pn.pn.pn.pn, %256 ]
call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %15) #26
%262 = getelementptr inbounds nuw i8, ptr %14, i64 73
%263 = load i8, ptr %262, align 1, !tbaa !67, !range !81, !noundef !82
Expand Down Expand Up @@ -10117,9 +10116,6 @@ declare i64 @llvm.umin.i64(i64, i64) #30
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.uadd.with.overflow.i64(i64, i64) #30

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare range(i32 -1, 2) i32 @llvm.scmp.i32.i32(i32, i32) #30

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(errnomem: write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
Expand Down
58 changes: 27 additions & 31 deletions bench/pingora-rs/optimized/3xykeu3ahcx95h5cpflh1bahm.ll
Original file line number Diff line number Diff line change
Expand Up @@ -11955,20 +11955,16 @@ define noundef range(i8 -1, 2) i8 @"_ZN82_$LT$pingora_core..protocols..l4..socke
tail call void @llvm.experimental.noalias.scope.decl(metadata !1122)
%16 = load i16, ptr %15, align 4, !range !945, !alias.scope !1119, !noalias !1122, !noundef !7
%17 = load i16, ptr %14, align 4, !range !945, !alias.scope !1122, !noalias !1119, !noundef !7
%18 = icmp eq i16 %16, %17
br i1 %18, label %19, label %21

19: ; preds = %13
%20 = trunc nuw i16 %16 to i1
br i1 %20, label %25, label %86
%18 = sub nsw i16 %16, %17
%19 = trunc nsw i16 %18 to i8
%20 = icmp eq i16 %16, %17
br i1 %20, label %21, label %"_ZN69_$LT$core..net..socket_addr..SocketAddr$u20$as$u20$core..cmp..Ord$GT$3cmp17hac1a1c15e4fde12dE.exit"

21: ; preds = %13
%22 = zext nneg i16 %17 to i64
%23 = zext nneg i16 %16 to i64
%24 = tail call i8 @llvm.scmp.i8.i64(i64 %23, i64 %22)
br label %"_ZN69_$LT$core..net..socket_addr..SocketAddr$u20$as$u20$core..cmp..Ord$GT$3cmp17hac1a1c15e4fde12dE.exit"
%22 = trunc nuw i16 %16 to i1
br i1 %22, label %23, label %84

25: ; preds = %19
25: ; preds = %21
%26 = getelementptr inbounds nuw i8, ptr %0, i64 8
%27 = getelementptr inbounds nuw i8, ptr %1, i64 8
tail call void @llvm.experimental.noalias.scope.decl(metadata !1124)
Expand Down Expand Up @@ -12001,19 +11997,19 @@ define noundef range(i8 -1, 2) i8 @"_ZN82_$LT$pingora_core..protocols..l4..socke
%35 = tail call i16 @llvm.bswap.i16(i16 %.sroa.108.0.copyload.i.i.i)
store i16 %28, ptr %4, align 2, !noalias !1134
%36 = getelementptr inbounds nuw i8, ptr %4, i64 2
store i16 %27, ptr %34, align 2, !noalias !1134
%35 = getelementptr inbounds nuw i8, ptr %4, i64 4
store i16 %28, ptr %35, align 2, !noalias !1134
%36 = getelementptr inbounds nuw i8, ptr %4, i64 6
store i16 %29, ptr %36, align 2, !noalias !1134
%37 = getelementptr inbounds nuw i8, ptr %4, i64 4
%37 = getelementptr inbounds nuw i8, ptr %4, i64 8
store i16 %30, ptr %37, align 2, !noalias !1134
%38 = getelementptr inbounds nuw i8, ptr %4, i64 6
%38 = getelementptr inbounds nuw i8, ptr %4, i64 10
store i16 %31, ptr %38, align 2, !noalias !1134
%39 = getelementptr inbounds nuw i8, ptr %4, i64 8
%39 = getelementptr inbounds nuw i8, ptr %4, i64 12
store i16 %32, ptr %39, align 2, !noalias !1134
%40 = getelementptr inbounds nuw i8, ptr %4, i64 10
%40 = getelementptr inbounds nuw i8, ptr %4, i64 14
store i16 %33, ptr %40, align 2, !noalias !1134
%41 = getelementptr inbounds nuw i8, ptr %4, i64 12
store i16 %34, ptr %41, align 2, !noalias !1134
%42 = getelementptr inbounds nuw i8, ptr %4, i64 14
store i16 %35, ptr %42, align 2, !noalias !1134
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3), !noalias !1134
%.sroa.017.0.copyload.i.i.i = load i16, ptr %27, align 4, !alias.scope !1136, !noalias !1135
%.sroa.418.0..sroa_idx.i.i.i = getelementptr inbounds nuw i8, ptr %1, i64 10
Expand All @@ -12040,25 +12036,25 @@ define noundef range(i8 -1, 2) i8 @"_ZN82_$LT$pingora_core..protocols..l4..socke
%50 = tail call i16 @llvm.bswap.i16(i16 %.sroa.1024.0.copyload.i.i.i)
store i16 %43, ptr %3, align 2, !noalias !1134
%51 = getelementptr inbounds nuw i8, ptr %3, i64 2
store i16 %42, ptr %49, align 2, !noalias !1134
%50 = getelementptr inbounds nuw i8, ptr %3, i64 4
store i16 %43, ptr %50, align 2, !noalias !1134
%51 = getelementptr inbounds nuw i8, ptr %3, i64 6
store i16 %44, ptr %51, align 2, !noalias !1134
%52 = getelementptr inbounds nuw i8, ptr %3, i64 4
%52 = getelementptr inbounds nuw i8, ptr %3, i64 8
store i16 %45, ptr %52, align 2, !noalias !1134
%53 = getelementptr inbounds nuw i8, ptr %3, i64 6
%53 = getelementptr inbounds nuw i8, ptr %3, i64 10
store i16 %46, ptr %53, align 2, !noalias !1134
%54 = getelementptr inbounds nuw i8, ptr %3, i64 8
%54 = getelementptr inbounds nuw i8, ptr %3, i64 12
store i16 %47, ptr %54, align 2, !noalias !1134
%55 = getelementptr inbounds nuw i8, ptr %3, i64 10
%55 = getelementptr inbounds nuw i8, ptr %3, i64 14
store i16 %48, ptr %55, align 2, !noalias !1134
%56 = getelementptr inbounds nuw i8, ptr %3, i64 12
store i16 %49, ptr %56, align 2, !noalias !1134
%57 = getelementptr inbounds nuw i8, ptr %3, i64 14
store i16 %50, ptr %57, align 2, !noalias !1134
tail call void @llvm.experimental.noalias.scope.decl(metadata !1137)
tail call void @llvm.experimental.noalias.scope.decl(metadata !1140)
br label %58

58: ; preds = %64, %25
%.sroa.01.0.i.i.i.i = phi i64 [ 0, %25 ], [ %65, %64 ]
%.sroa.01.0.i.i.i.i = phi i64 [ 0, %23 ], [ %65, %62 ]
%exitcond.not.i.i.i.i = icmp eq i64 %.sroa.01.0.i.i.i.i, 8
br i1 %exitcond.not.i.i.i.i, label %"_ZN63_$LT$core..net..ip_addr..Ipv6Addr$u20$as$u20$core..cmp..Ord$GT$3cmp17hc9e4bb486f8f927cE.exit.thread.i.i", label %64

Expand Down Expand Up @@ -12111,7 +12107,7 @@ define noundef range(i8 -1, 2) i8 @"_ZN82_$LT$pingora_core..protocols..l4..socke
%85 = tail call i8 @llvm.ucmp.i8.i32(i32 %72, i32 %74)
br label %"_ZN69_$LT$core..net..socket_addr..SocketAddr$u20$as$u20$core..cmp..Ord$GT$3cmp17hac1a1c15e4fde12dE.exit"

86: ; preds = %19
86: ; preds = %21
%87 = getelementptr inbounds nuw i8, ptr %0, i64 6
%88 = getelementptr inbounds nuw i8, ptr %1, i64 6
tail call void @llvm.experimental.noalias.scope.decl(metadata !1146)
Expand All @@ -12133,8 +12129,8 @@ define noundef range(i8 -1, 2) i8 @"_ZN82_$LT$pingora_core..protocols..l4..socke
%99 = tail call i8 @llvm.scmp.i8.i64(i64 %98, i64 0)
br label %"_ZN69_$LT$core..net..socket_addr..SocketAddr$u20$as$u20$core..cmp..Ord$GT$3cmp17hac1a1c15e4fde12dE.exit"

"_ZN69_$LT$core..net..socket_addr..SocketAddr$u20$as$u20$core..cmp..Ord$GT$3cmp17hac1a1c15e4fde12dE.exit": ; preds = %97, %91, %84, %78, %76, %"_ZN63_$LT$core..net..ip_addr..Ipv6Addr$u20$as$u20$core..cmp..Ord$GT$3cmp17hc9e4bb486f8f927cE.exit.i.i", %21, %11, %110, %111, %109, %12
%.sroa.0.1 = phi i8 [ -1, %12 ], [ 1, %11 ], [ %112, %111 ], [ %., %110 ], [ 1, %109 ], [ %24, %21 ], [ %83, %78 ], [ %85, %84 ], [ %77, %76 ], [ %69, %"_ZN63_$LT$core..net..ip_addr..Ipv6Addr$u20$as$u20$core..cmp..Ord$GT$3cmp17hc9e4bb486f8f927cE.exit.i.i" ], [ %96, %91 ], [ %99, %97 ]
"_ZN69_$LT$core..net..socket_addr..SocketAddr$u20$as$u20$core..cmp..Ord$GT$3cmp17hac1a1c15e4fde12dE.exit": ; preds = %97, %91, %84, %78, %76, %"_ZN63_$LT$core..net..ip_addr..Ipv6Addr$u20$as$u20$core..cmp..Ord$GT$3cmp17hc9e4bb486f8f927cE.exit.i.i", %13, %11, %108, %109, %107, %12
%.sroa.0.1 = phi i8 [ -1, %12 ], [ 1, %11 ], [ %112, %109 ], [ %., %108 ], [ 1, %107 ], [ %19, %13 ], [ %81, %76 ], [ %85, %82 ], [ %75, %74 ], [ %69, %"_ZN63_$LT$core..net..ip_addr..Ipv6Addr$u20$as$u20$core..cmp..Ord$GT$3cmp17hc9e4bb486f8f927cE.exit.i.i" ], [ %96, %89 ], [ %97, %95 ]
ret i8 %.sroa.0.1

100: ; preds = %11
Expand Down
Loading