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
4 changes: 1 addition & 3 deletions bench/c3c/optimized/c_abi.ll
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,7 @@ define dso_local noundef zeroext i1 @abi_arg_is_indirect(ptr noundef readonly ca
unreachable

switch.lookup: ; preds = %1
%switch.cast = zext nneg i8 %4 to i9
%switch.downshift = lshr i9 128, %switch.cast
%switch.masked = trunc i9 %switch.downshift to i1
%switch.masked = icmp eq i8 %4, 7
ret i1 %switch.masked
}

Expand Down
16 changes: 4 additions & 12 deletions bench/libigl/optimized/closest_facet.ll
Original file line number Diff line number Diff line change
Expand Up @@ -51023,9 +51023,7 @@ _ZN4CGAL6HandleD2Ev.exit29: ; preds = %124, %128, %131, %1
br label %_ZN4CGAL6HandleD2Ev.exit33

_ZN4CGAL6HandleD2Ev.exit33: ; preds = %148, %152, %155, %158, %161, %_ZN4CGAL6HandleD2Ev.exit29
%switch.cast = trunc nuw i32 %switch.tableidx to i3
%switch.downshift = lshr exact i3 -4, %switch.cast
%switch.masked = trunc i3 %switch.downshift to i1
%switch.masked = icmp eq i32 %switch.tableidx, 2
call void @llvm.lifetime.end.p0(ptr nonnull %14)
%165 = load ptr, ptr %13, align 8, !tbaa !1216
call void @free(ptr noundef %165) #23
Expand Down Expand Up @@ -56455,9 +56453,7 @@ _ZN4CGAL6HandleD2Ev.exit29: ; preds = %121, %125, %128, %1
br label %_ZN4CGAL6HandleD2Ev.exit33

_ZN4CGAL6HandleD2Ev.exit33: ; preds = %145, %149, %152, %155, %158, %_ZN4CGAL6HandleD2Ev.exit29
%switch.cast = trunc nuw i32 %switch.tableidx to i3
%switch.downshift = lshr exact i3 -4, %switch.cast
%switch.masked = trunc i3 %switch.downshift to i1
%switch.masked = icmp eq i32 %switch.tableidx, 2
call void @llvm.lifetime.end.p0(ptr nonnull %14)
%162 = load ptr, ptr %13, align 8, !tbaa !1216
call void @free(ptr noundef %162) #23
Expand Down Expand Up @@ -57715,9 +57711,7 @@ _ZN4CGAL6HandleD2Ev.exit29: ; preds = %124, %128, %131, %1
br label %_ZN4CGAL6HandleD2Ev.exit33

_ZN4CGAL6HandleD2Ev.exit33: ; preds = %148, %152, %155, %158, %161, %_ZN4CGAL6HandleD2Ev.exit29
%switch.cast = trunc nuw i32 %switch.tableidx to i3
%switch.downshift = lshr exact i3 -4, %switch.cast
%switch.masked = trunc i3 %switch.downshift to i1
%switch.masked = icmp eq i32 %switch.tableidx, 2
call void @llvm.lifetime.end.p0(ptr nonnull %14)
%165 = load ptr, ptr %13, align 8, !tbaa !1216
call void @free(ptr noundef %165) #23
Expand Down Expand Up @@ -59031,9 +59025,7 @@ _ZN4CGAL6HandleD2Ev.exit29: ; preds = %121, %125, %128, %1
br label %_ZN4CGAL6HandleD2Ev.exit33

_ZN4CGAL6HandleD2Ev.exit33: ; preds = %145, %149, %152, %155, %158, %_ZN4CGAL6HandleD2Ev.exit29
%switch.cast = trunc nuw i32 %switch.tableidx to i3
%switch.downshift = lshr exact i3 -4, %switch.cast
%switch.masked = trunc i3 %switch.downshift to i1
%switch.masked = icmp eq i32 %switch.tableidx, 2
call void @llvm.lifetime.end.p0(ptr nonnull %14)
%162 = load ptr, ptr %13, align 8, !tbaa !1216
call void @free(ptr noundef %162) #23
Expand Down
12 changes: 3 additions & 9 deletions bench/lightgbm/optimized/c_api.ll
Original file line number Diff line number Diff line change
Expand Up @@ -45465,15 +45465,9 @@ define linkonce_odr void @_ZNK8LightGBM7Booster15CreatePredictorEiiiiRKNS_6Confi

26: ; preds = %19, %11, %7
%27 = icmp ult i32 %4, 4
%switch.cast = trunc nuw i32 %4 to i4
%switch.downshift = lshr i4 2, %switch.cast
%switch.masked = trunc i4 %switch.downshift to i1
%switch.cast17 = trunc nuw i32 %4 to i4
%switch.downshift19 = lshr exact i4 -8, %switch.cast17
%switch.masked20 = trunc i4 %switch.downshift19 to i1
%switch.cast21 = trunc nuw i32 %4 to i4
%switch.downshift23 = lshr i4 4, %switch.cast21
%switch.masked24 = trunc i4 %switch.downshift23 to i1
%switch.masked = icmp eq i32 %4, 1
%switch.masked20 = icmp eq i32 %4, 3
%switch.masked24 = icmp eq i32 %4, 2
%.015 = select i1 %27, i1 %switch.masked, i1 false
%.014 = select i1 %27, i1 %switch.masked20, i1 false
%.0 = select i1 %27, i1 %switch.masked24, i1 false
Expand Down
15 changes: 7 additions & 8 deletions bench/llvm/optimized/CGObjCMac.ll
Original file line number Diff line number Diff line change
Expand Up @@ -20594,9 +20594,8 @@ switch.lookup: ; preds = %_ZNK5clang8QualType
%switch.tableidx = add nsw i32 %99, -1
%switch.idx.cast = trunc i32 %switch.tableidx to i1
%switch.offset = xor i1 %switch.idx.cast, true
%switch.cast = trunc i32 %switch.tableidx to i3
%switch.downshift = lshr i3 3, %switch.cast
%switch.masked = trunc i3 %switch.downshift to i1
%100 = and i32 %switch.tableidx, 6
%switch.masked = icmp eq i32 %100, 0
br label %_ZL20GetGCAttrTypeForTypeRN5clang10ASTContextENS_8QualTypeEb.exit

100: ; preds = %_ZNK5clang8QualType15getObjCLifetimeEv.exit.i
Expand All @@ -20611,7 +20610,7 @@ switch.lookup: ; preds = %_ZNK5clang8QualType
%105 = load ptr, ptr %104, align 16, !tbaa !971
%106 = getelementptr inbounds nuw i8, ptr %105, i64 16
%107 = load i8, ptr %106, align 16
switch i8 %107, label %108 [
switch i8 %107, label %109 [
i8 33, label %_ZL20GetGCAttrTypeForTypeRN5clang10ASTContextENS_8QualTypeEb.exit
i8 11, label %_ZL20GetGCAttrTypeForTypeRN5clang10ASTContextENS_8QualTypeEb.exit
]
Expand Down Expand Up @@ -20640,7 +20639,7 @@ _ZNK5clang4Type5getAsINS_11PointerTypeEEEPKT_v.exit: ; preds = %116
br i1 %.not14.not.i, label %_ZL20GetGCAttrTypeForTypeRN5clang10ASTContextENS_8QualTypeEb.exit, label %_ZNK5clang4Type5getAsINS_11PointerTypeEEEPKT_v.exit.thread24

_ZNK5clang4Type5getAsINS_11PointerTypeEEEPKT_v.exit.thread24: ; preds = %113, %_ZNK5clang4Type5getAsINS_11PointerTypeEEEPKT_v.exit
%.1.i27 = phi ptr [ %118, %_ZNK5clang4Type5getAsINS_11PointerTypeEEEPKT_v.exit ], [ %101, %113 ]
%.1.i27 = phi ptr [ %118, %_ZNK5clang4Type5getAsINS_11PointerTypeEEEPKT_v.exit ], [ %101, %114 ]
%119 = getelementptr inbounds nuw i8, ptr %.1.i27, i64 32
%.sroa.0.0.copyload.i.i = load i64, ptr %119, align 16, !tbaa !394
br label %tailrecurse.i
Expand All @@ -20649,8 +20648,8 @@ _ZL20GetGCAttrTypeForTypeRN5clang10ASTContextENS_8QualTypeEb.exit.loopexit: ; pr
br label %_ZL20GetGCAttrTypeForTypeRN5clang10ASTContextENS_8QualTypeEb.exit

_ZL20GetGCAttrTypeForTypeRN5clang10ASTContextENS_8QualTypeEb.exit: ; preds = %116, %100, %.thread40.i, %.thread40.i, %108, %_ZNK5clang4Type5getAsINS_11PointerTypeEEEPKT_v.exit, %_ZNK5clang8QualType14isObjCGCStrongEv.exit.i, %_ZL20GetGCAttrTypeForTypeRN5clang10ASTContextENS_8QualTypeEb.exit.loopexit, %switch.lookup
%120 = phi i1 [ %switch.offset, %switch.lookup ], [ true, %_ZNK5clang8QualType14isObjCGCStrongEv.exit.i ], [ true, %116 ], [ true, %100 ], [ false, %.thread40.i ], [ true, %108 ], [ true, %_ZNK5clang4Type5getAsINS_11PointerTypeEEEPKT_v.exit ], [ false, %.thread40.i ], [ false, %_ZL20GetGCAttrTypeForTypeRN5clang10ASTContextENS_8QualTypeEb.exit.loopexit ]
%121 = phi i1 [ %switch.masked, %switch.lookup ], [ false, %_ZNK5clang8QualType14isObjCGCStrongEv.exit.i ], [ true, %_ZNK5clang4Type5getAsINS_11PointerTypeEEEPKT_v.exit ], [ true, %108 ], [ true, %.thread40.i ], [ true, %.thread40.i ], [ true, %100 ], [ true, %116 ], [ true, %_ZL20GetGCAttrTypeForTypeRN5clang10ASTContextENS_8QualTypeEb.exit.loopexit ]
%120 = phi i1 [ %switch.offset, %switch.lookup ], [ true, %_ZNK5clang8QualType14isObjCGCStrongEv.exit.i ], [ true, %117 ], [ true, %101 ], [ false, %.thread40.i ], [ true, %109 ], [ true, %_ZNK5clang4Type5getAsINS_11PointerTypeEEEPKT_v.exit ], [ false, %.thread40.i ], [ false, %_ZL20GetGCAttrTypeForTypeRN5clang10ASTContextENS_8QualTypeEb.exit.loopexit ]
%121 = phi i1 [ %switch.masked, %switch.lookup ], [ false, %_ZNK5clang8QualType14isObjCGCStrongEv.exit.i ], [ true, %_ZNK5clang4Type5getAsINS_11PointerTypeEEEPKT_v.exit ], [ true, %109 ], [ true, %.thread40.i ], [ true, %.thread40.i ], [ true, %101 ], [ true, %117 ], [ true, %_ZL20GetGCAttrTypeForTypeRN5clang10ASTContextENS_8QualTypeEb.exit.loopexit ]
%122 = getelementptr inbounds nuw i8, ptr %0, i64 24
%123 = load i8, ptr %122, align 8, !tbaa !1413, !range !1011, !noundef !1012
%124 = trunc nuw i8 %123 to i1
Expand All @@ -20675,7 +20674,7 @@ _ZL20GetGCAttrTypeForTypeRN5clang10ASTContextENS_8QualTypeEb.exit: ; preds = %11
br label %_ZN4llvm23SmallVectorTemplateBaseIN12_GLOBAL__N_18IvarInfoELb1EE9push_backES2_.exit67

_ZN4llvm23SmallVectorTemplateBaseIN12_GLOBAL__N_18IvarInfoELb1EE9push_backES2_.exit67: ; preds = %125, %131
%.val2.i64 = phi i32 [ %128, %125 ], [ %.val2.pre.i63, %131 ]
%.val2.i64 = phi i32 [ %128, %126 ], [ %.val2.pre.i63, %132 ]
%.val.i65 = load ptr, ptr %126, align 8, !tbaa !352
%135 = zext i32 %.val2.i64 to i64
%136 = getelementptr inbounds nuw %"struct.(anonymous namespace)::IvarInfo", ptr %.val.i65, i64 %135
Expand Down
8 changes: 2 additions & 6 deletions bench/meshlab/optimized/alignset.ll
Original file line number Diff line number Diff line change
Expand Up @@ -3576,12 +3576,8 @@ switch.lookup: ; preds = %58
%switch.cast89 = trunc nuw i32 %61 to i8
%switch.downshift91 = lshr i8 -21, %switch.cast89
%switch.masked92 = trunc i8 %switch.downshift91 to i1
%switch.cast93 = trunc nuw i32 %61 to i8
%switch.downshift95 = lshr i8 64, %switch.cast93
%switch.masked96 = trunc i8 %switch.downshift95 to i1
%switch.cast97 = trunc nuw i32 %61 to i8
%switch.downshift99 = lshr exact i8 -128, %switch.cast97
%switch.masked100 = trunc i8 %switch.downshift99 to i1
%switch.masked96 = icmp eq i32 %61, 6
%switch.masked100 = icmp eq i32 %61, 7
br label %66

66: ; preds = %switch.lookup, %58
Expand Down
28 changes: 7 additions & 21 deletions bench/nix/optimized/primops.ll
Original file line number Diff line number Diff line change
Expand Up @@ -94657,9 +94657,7 @@ define linkonce_odr noundef zeroext i1 @_ZNK3nix15IsIntEqMatcherPIiE10gmock_Impl
unreachable

switch.lookup: ; preds = %3
%switch.cast = trunc nuw i32 %switch.tableidx to i16
%switch.downshift = lshr i16 1, %switch.cast
%switch.masked = trunc nuw i16 %switch.downshift to i1
%switch.masked = icmp eq i32 %switch.tableidx, 0
%7 = getelementptr inbounds nuw i8, ptr %1, i64 8
%8 = load i64, ptr %7, align 8
%9 = getelementptr inbounds nuw i8, ptr %0, i64 8
Expand Down Expand Up @@ -105037,9 +105035,7 @@ define linkonce_odr noundef zeroext i1 @_ZNK3nix14IsFalseMatcher10gmock_ImplIRKN
unreachable

switch.lookup: ; preds = %3
%switch.cast = trunc nuw i32 %switch.tableidx to i16
%switch.downshift = lshr i16 2, %switch.cast
%switch.masked = trunc i16 %switch.downshift to i1
%switch.masked = icmp eq i32 %switch.tableidx, 1
%7 = getelementptr inbounds nuw i8, ptr %1, i64 8
%8 = load i8, ptr %7, align 8
%9 = and i8 %8, 1
Expand Down Expand Up @@ -105277,9 +105273,7 @@ define linkonce_odr noundef zeroext i1 @_ZNK3nix14IsAttrsMatcher10gmock_ImplIRKN
unreachable

switch.lookup: ; preds = %3
%switch.cast = trunc nuw i32 %switch.tableidx to i16
%switch.downshift = lshr i16 32, %switch.cast
%switch.masked = trunc i16 %switch.downshift to i1
%switch.masked = icmp eq i32 %switch.tableidx, 5
ret i1 %switch.masked
}

Expand Down Expand Up @@ -105512,9 +105506,7 @@ define linkonce_odr noundef zeroext i1 @_ZNK3nix13IsTrueMatcher10gmock_ImplIRKNS
unreachable

switch.lookup: ; preds = %3
%switch.cast = trunc nuw i32 %switch.tableidx to i16
%switch.downshift = lshr i16 2, %switch.cast
%switch.masked = trunc i16 %switch.downshift to i1
%switch.masked = icmp eq i32 %switch.tableidx, 1
%7 = getelementptr inbounds nuw i8, ptr %1, i64 8
%8 = load i8, ptr %7, align 8
%9 = trunc i8 %8 to i1
Expand Down Expand Up @@ -108243,9 +108235,7 @@ define linkonce_odr noundef zeroext i1 @_ZNK3nix15IsStringMatcher10gmock_ImplIRK
unreachable

switch.lookup: ; preds = %3
%switch.cast = trunc nuw i32 %switch.tableidx to i16
%switch.downshift = lshr i16 4, %switch.cast
%switch.masked = trunc i16 %switch.downshift to i1
%switch.masked = icmp eq i32 %switch.tableidx, 2
ret i1 %switch.masked
}

Expand Down Expand Up @@ -109215,9 +109205,7 @@ define linkonce_odr noundef zeroext i1 @_ZNK3nix17IsFloatEqMatcherPIdE10gmock_Im
unreachable

switch.lookup: ; preds = %3
%switch.cast = trunc nuw i32 %switch.tableidx to i16
%switch.downshift = lshr exact i16 -32768, %switch.cast
%switch.masked = trunc i16 %switch.downshift to i1
%switch.masked = icmp eq i32 %switch.tableidx, 15
%7 = getelementptr inbounds nuw i8, ptr %1, i64 8
%8 = load double, ptr %7, align 8
%9 = getelementptr inbounds nuw i8, ptr %0, i64 8
Expand Down Expand Up @@ -120008,9 +119996,7 @@ define linkonce_odr noundef zeroext i1 @_ZNK3nix13IsNullMatcher10gmock_ImplIRKNS
unreachable

switch.lookup: ; preds = %3
%switch.cast = trunc nuw i32 %switch.tableidx to i16
%switch.downshift = lshr i16 16, %switch.cast
%switch.masked = trunc i16 %switch.downshift to i1
%switch.masked = icmp eq i32 %switch.tableidx, 4
ret i1 %switch.masked
}

Expand Down
20 changes: 5 additions & 15 deletions bench/nix/optimized/trivial.ll
Original file line number Diff line number Diff line change
Expand Up @@ -27914,9 +27914,7 @@ define linkonce_odr noundef zeroext i1 @_ZNK3nix13IsTrueMatcher10gmock_ImplIRKNS
unreachable

switch.lookup: ; preds = %3
%switch.cast = trunc nuw i32 %switch.tableidx to i16
%switch.downshift = lshr i16 2, %switch.cast
%switch.masked = trunc i16 %switch.downshift to i1
%switch.masked = icmp eq i32 %switch.tableidx, 1
%7 = getelementptr inbounds nuw i8, ptr %1, i64 8
%8 = load i8, ptr %7, align 8
%9 = trunc i8 %8 to i1
Expand Down Expand Up @@ -28533,9 +28531,7 @@ define linkonce_odr noundef zeroext i1 @_ZNK3nix14IsFalseMatcher10gmock_ImplIRKN
unreachable

switch.lookup: ; preds = %3
%switch.cast = trunc nuw i32 %switch.tableidx to i16
%switch.downshift = lshr i16 2, %switch.cast
%switch.masked = trunc i16 %switch.downshift to i1
%switch.masked = icmp eq i32 %switch.tableidx, 1
%7 = getelementptr inbounds nuw i8, ptr %1, i64 8
%8 = load i8, ptr %7, align 8
%9 = and i8 %8, 1
Expand Down Expand Up @@ -28773,9 +28769,7 @@ define linkonce_odr noundef zeroext i1 @_ZNK3nix13IsNullMatcher10gmock_ImplIRKNS
unreachable

switch.lookup: ; preds = %3
%switch.cast = trunc nuw i32 %switch.tableidx to i16
%switch.downshift = lshr i16 16, %switch.cast
%switch.masked = trunc i16 %switch.downshift to i1
%switch.masked = icmp eq i32 %switch.tableidx, 4
ret i1 %switch.masked
}

Expand Down Expand Up @@ -29008,9 +29002,7 @@ define linkonce_odr noundef zeroext i1 @_ZNK3nix15IsIntEqMatcherPIiE10gmock_Impl
unreachable

switch.lookup: ; preds = %3
%switch.cast = trunc nuw i32 %switch.tableidx to i16
%switch.downshift = lshr i16 1, %switch.cast
%switch.masked = trunc nuw i16 %switch.downshift to i1
%switch.masked = icmp eq i32 %switch.tableidx, 0
%7 = getelementptr inbounds nuw i8, ptr %1, i64 8
%8 = load i64, ptr %7, align 8
%9 = getelementptr inbounds nuw i8, ptr %0, i64 8
Expand Down Expand Up @@ -38835,9 +38827,7 @@ define linkonce_odr noundef zeroext i1 @_ZNK3nix17IsFloatEqMatcherPIdE10gmock_Im
unreachable

switch.lookup: ; preds = %3
%switch.cast = trunc nuw i32 %switch.tableidx to i16
%switch.downshift = lshr exact i16 -32768, %switch.cast
%switch.masked = trunc i16 %switch.downshift to i1
%switch.masked = icmp eq i32 %switch.tableidx, 15
%7 = getelementptr inbounds nuw i8, ptr %1, i64 8
%8 = load double, ptr %7, align 8
%9 = getelementptr inbounds nuw i8, ptr %0, i64 8
Expand Down
26 changes: 9 additions & 17 deletions bench/ocio/optimized/GammaOpData.ll
Original file line number Diff line number Diff line change
Expand Up @@ -3106,43 +3106,35 @@ define hidden noundef zeroext i1 @_ZNK19OpenColorIO_v2_5dev11GammaOpData10mayCom

7: ; preds = %2
%8 = icmp ult i32 %6, 10
br i1 %8, label %switch.lookup, label %15
%switch.masked = icmp ult i32 %6, 6
%spec.select = select i1 %8, i1 %switch.masked, i1 false
br label %switch.lookup

9: ; preds = %2
%10 = and i32 %4, -2
switch i32 %10, label %15 [
switch i32 %10, label %switch.lookup [
i32 2, label %11
i32 4, label %13
]

11: ; preds = %9
%12 = icmp ult i32 %6, 10
br i1 %12, label %switch.lookup18, label %15
%switch.masked22 = icmp ult i32 %6, 4
%spec.select28 = select i1 %12, i1 %switch.masked22, i1 false
br label %switch.lookup

13: ; preds = %9
%14 = icmp ult i32 %6, 10
br i1 %14, label %switch.lookup23, label %15

switch.lookup: ; preds = %7
%switch.cast = trunc nuw i32 %6 to i10
%switch.downshift = lshr i10 63, %switch.cast
%switch.masked = trunc i10 %switch.downshift to i1
br label %15

switch.lookup18: ; preds = %11
%switch.cast19 = trunc nuw i32 %6 to i10
%switch.downshift21 = lshr i10 15, %switch.cast19
%switch.masked22 = trunc i10 %switch.downshift21 to i1
br label %15

switch.lookup23: ; preds = %13
%switch.cast24 = trunc nuw i32 %6 to i10
%switch.downshift26 = lshr i10 51, %switch.cast24
%switch.masked27 = trunc i10 %switch.downshift26 to i1
br label %15

15: ; preds = %9, %7, %11, %13, %switch.lookup23, %switch.lookup18, %switch.lookup
%.0 = phi i1 [ %switch.masked, %switch.lookup ], [ %switch.masked22, %switch.lookup18 ], [ %switch.masked27, %switch.lookup23 ], [ false, %13 ], [ false, %11 ], [ false, %7 ], [ false, %9 ]
15: ; preds = %11, %7, %9, %13, %switch.lookup23
%.0 = phi i1 [ %switch.masked27, %switch.lookup23 ], [ false, %13 ], [ false, %9 ], [ %spec.select, %7 ], [ %spec.select28, %11 ]
ret i1 %.0
}

Expand Down
Loading