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: PR112011 #1483

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
8 changes: 4 additions & 4 deletions bench/assimp/optimized/Exporter.cpp.ll
Original file line number Diff line number Diff line change
Expand Up @@ -7830,12 +7830,12 @@ entry:
%conv = sitofp i32 %currentStep to float
%conv2 = sitofp i32 %numberOfSteps to float
%div = fdiv float %conv, %conv2
%cond = select i1 %tobool.not, float 1.000000e+00, float %div
%0 = tail call float @llvm.fmuladd.f32(float %cond, float 5.000000e-01, float 5.000000e-01)
%0 = tail call float @llvm.fmuladd.f32(float %div, float 5.000000e-01, float 5.000000e-01)
%1 = select i1 %tobool.not, float 1.000000e+00, float %0
%vtable = load ptr, ptr %this, align 8
%vfn = getelementptr inbounds i8, ptr %vtable, i64 16
%1 = load ptr, ptr %vfn, align 8
%call = tail call noundef zeroext i1 %1(ptr noundef nonnull align 8 dereferenceable(8) %this, float noundef %0)
%2 = load ptr, ptr %vfn, align 8
%call = tail call noundef zeroext i1 %2(ptr noundef nonnull align 8 dereferenceable(8) %this, float noundef %1)
ret void
}

Expand Down
10 changes: 5 additions & 5 deletions bench/darktable/optimized/introspection_atrous.c.ll
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ define void @process(ptr noundef %0, ptr nocapture noundef readonly %1, ptr noun
%45 = fcmp reassoc nsz arcp contract afn ogt float %44, 5.130000e+02
%46 = fmul reassoc nsz arcp contract afn float %43, 0x3FB99999A0000000
%47 = fadd reassoc nsz arcp contract afn float %46, -5.000000e-01
%48 = select i1 %45, float 2.560000e+02, float %47
%49 = tail call reassoc nsz arcp contract afn noundef float @llvm.log2.f32(float %48)
%48 = tail call reassoc nsz arcp contract afn float @llvm.log2.f32(float %47)
%49 = select i1 %45, float 8.000000e+00, float %48
%50 = fdiv reassoc nsz arcp contract afn float 2.500000e+00, %38
%51 = fadd reassoc nsz arcp contract afn float %50, -5.000000e-01
%52 = tail call reassoc nsz arcp contract afn noundef float @llvm.log2.f32(float %51)
Expand Down Expand Up @@ -663,15 +663,15 @@ define internal fastcc range(i32 -2147483648, 2147483646) i32 @get_scales(ptr no
%27 = fcmp reassoc nsz arcp contract afn ogt float %26, 5.130000e+02
%28 = fmul reassoc nsz arcp contract afn float %25, 0x3FB99999A0000000
%29 = fadd reassoc nsz arcp contract afn float %28, -5.000000e-01
%30 = select i1 %27, float 2.560000e+02, float %29
%31 = tail call reassoc nsz arcp contract afn noundef float @llvm.log2.f32(float %30)
%30 = tail call reassoc nsz arcp contract afn float @llvm.log2.f32(float %29)
%31 = fdiv reassoc nsz arcp contract afn float 1.000000e+00, %30
%32 = fmul reassoc nsz arcp contract afn float %.104.val, 5.000000e-01
%33 = getelementptr inbounds i8, ptr %3, i64 8
%34 = getelementptr inbounds i8, ptr %3, i64 16
%35 = getelementptr inbounds i8, ptr %3, i64 32
%36 = getelementptr inbounds i8, ptr %3, i64 40
%37 = getelementptr inbounds i8, ptr %3, i64 24
%38 = fdiv reassoc nsz arcp contract afn float 1.000000e+00, %31
%38 = select i1 %27, float 1.250000e-01, float %31
%invariant.op = fmul reassoc nsz arcp contract afn float %38, -7.000000e+00
%39 = fdiv reassoc nsz arcp contract afn float 1.000000e+00, %17
br label %40
Expand Down
12 changes: 6 additions & 6 deletions bench/darktable/optimized/introspection_bilateral.cc.ll
Original file line number Diff line number Diff line change
Expand Up @@ -964,9 +964,9 @@ define linkonce_odr hidden void @_ZN20PermutohedralLatticeILi5ELi4EEC2Emmm(ptr n
%25 = fpext float %24 to double
%26 = fcmp reassoc nsz arcp contract afn olt double %25, 1.000000e-01
%27 = fmul reassoc nsz arcp contract afn double %25, 2.000000e-02
%28 = select i1 %26, double 2.000000e-03, double %27
%29 = tail call reassoc nsz arcp contract afn double @llvm.log10.f64(double %28)
%30 = tail call reassoc nsz arcp contract afn double @llvm.pow.f64(double 1.800000e+00, double %29)
%28 = tail call reassoc nsz arcp contract afn double @llvm.log10.f64(double %27)
%29 = tail call reassoc nsz arcp contract afn double @llvm.pow.f64(double 1.800000e+00, double %28)
%30 = select i1 %26, double 0x3FCA323591D23FB1, double %29
%31 = uitofp i64 %1 to double
%32 = fmul reassoc nsz arcp contract afn double %30, %31
%33 = fptoui double %32 to i64
Expand Down Expand Up @@ -2988,9 +2988,9 @@ define void @tiling_callback(ptr nocapture noundef readnone %0, ptr nocapture no
%51 = fpext float %50 to double
%52 = fcmp reassoc nsz arcp contract afn olt double %51, 1.000000e-01
%53 = fmul reassoc nsz arcp contract afn double %51, 2.000000e-02
%54 = select i1 %52, double 2.000000e-03, double %53
%55 = tail call reassoc nsz arcp contract afn double @llvm.log10.f64(double %54)
%56 = tail call reassoc nsz arcp contract afn double @llvm.pow.f64(double 1.800000e+00, double %55)
%54 = tail call reassoc nsz arcp contract afn double @llvm.log10.f64(double %53)
%55 = tail call reassoc nsz arcp contract afn double @llvm.pow.f64(double 1.800000e+00, double %54)
%56 = select i1 %52, double 0x3FCA323591D23FB1, double %55
%57 = uitofp i64 %38 to double
%58 = fmul reassoc nsz arcp contract afn double %56, %57
%59 = fptoui double %58 to i64
Expand Down
16 changes: 8 additions & 8 deletions bench/darktable/optimized/introspection_denoiseprofile.c.ll
Original file line number Diff line number Diff line change
Expand Up @@ -8102,29 +8102,29 @@ define internal fastcc void @backtransform_v2(ptr nocapture noundef %0, i32 noun
%245 = fcmp reassoc nsz arcp contract afn ogt <4 x float> %244, zeroinitializer
%246 = extractelement <4 x i1> %245, i64 0
%247 = extractelement <4 x float> %244, i64 0
%248 = select reassoc nsz arcp contract afn i1 %246, float %247, float 0.000000e+00
%249 = tail call reassoc nsz arcp contract afn float @llvm.sqrt.f32(float %248)
%248 = tail call reassoc nsz arcp contract afn float @llvm.sqrt.f32(float %247)
%249 = select i1 %246, float %248, float 0.000000e+00
%250 = extractelement <4 x float> %242, i64 0
%251 = fadd reassoc nsz arcp contract afn float %249, %250
%252 = fmul reassoc nsz arcp contract afn float %251, %34
%253 = extractelement <4 x i1> %245, i64 1
%254 = extractelement <4 x float> %244, i64 1
%255 = select reassoc nsz arcp contract afn i1 %253, float %254, float 0.000000e+00
%256 = tail call reassoc nsz arcp contract afn float @llvm.sqrt.f32(float %255)
%255 = tail call reassoc nsz arcp contract afn float @llvm.sqrt.f32(float %254)
%256 = select i1 %253, float %255, float 0.000000e+00
%257 = extractelement <4 x float> %242, i64 1
%258 = fadd reassoc nsz arcp contract afn float %256, %257
%259 = fmul reassoc nsz arcp contract afn float %258, %35
%260 = extractelement <4 x i1> %245, i64 2
%261 = extractelement <4 x float> %244, i64 2
%262 = select reassoc nsz arcp contract afn i1 %260, float %261, float 0.000000e+00
%263 = tail call reassoc nsz arcp contract afn float @llvm.sqrt.f32(float %262)
%262 = tail call reassoc nsz arcp contract afn float @llvm.sqrt.f32(float %261)
%263 = select i1 %260, float %262, float 0.000000e+00
%264 = extractelement <4 x float> %242, i64 2
%265 = fadd reassoc nsz arcp contract afn float %263, %264
%266 = fmul reassoc nsz arcp contract afn float %265, %36
%267 = extractelement <4 x i1> %245, i64 3
%268 = extractelement <4 x float> %244, i64 3
%269 = select reassoc nsz arcp contract afn i1 %267, float %268, float 0.000000e+00
%270 = tail call reassoc nsz arcp contract afn float @llvm.sqrt.f32(float %269)
%269 = tail call reassoc nsz arcp contract afn float @llvm.sqrt.f32(float %268)
%270 = select i1 %267, float %269, float 0.000000e+00
%271 = extractelement <4 x float> %242, i64 3
%272 = tail call reassoc nsz arcp contract afn float @llvm.pow.f32(float %252, float %14)
%273 = tail call reassoc nsz arcp contract afn float @llvm.pow.f32(float %259, float %19)
Expand Down
49 changes: 25 additions & 24 deletions bench/harfbuzz/optimized/harfbuzz.cc.ll
Original file line number Diff line number Diff line change
Expand Up @@ -101977,12 +101977,13 @@ if.end: ; preds = %if.end9.i.i.i
%tobool.not.i.i.i = icmp eq i32 %items_len, 0
%5 = tail call range(i32 0, 33) i32 @llvm.ctlz.i32(i32 %items_len, i1 true)
%6 = trunc nuw nsw i32 %5 to i16
%7 = xor i16 %6, 31
%conv5.i.i = select i1 %tobool.not.i.i.i, i16 0, i16 %7
%7 = shl nuw nsw i16 %6, 8
%8 = xor i16 %7, 7936
%entrySelector.i.i = getelementptr inbounds i8, ptr %this, i64 4
%ref.tmp.sroa.0.0.insert.insert.i4.i.i = shl nuw nsw i16 %conv5.i.i, 8
%ref.tmp.sroa.0.0.insert.insert.i4.i.i = select i1 %tobool.not.i.i.i, i16 0, i16 %8
store i16 %ref.tmp.sroa.0.0.insert.insert.i4.i.i, ptr %entrySelector.i.i, align 1
%add.i.i.i.i = zext nneg i16 %conv5.i.i to i32
%rev.i.i = lshr exact i16 %ref.tmp.sroa.0.0.insert.insert.i4.i.i, 8
%add.i.i.i.i = zext nneg i16 %rev.i.i to i32
%mul.i.i = shl i32 16, %add.i.i.i.i
%conv9.i.i = trunc i32 %mul.i.i to i16
%searchRange.i.i = getelementptr inbounds i8, ptr %this, i64 2
Expand All @@ -101992,10 +101993,10 @@ if.end: ; preds = %if.end9.i.i.i
%add.i.i10.i.i = and i32 %mul.i.i, 65520
%cmp.i.i = icmp ugt i32 %mul11.i.i, %add.i.i10.i.i
%sub17.i.i = sub i32 %mul11.i.i, %mul.i.i
%8 = trunc i32 %sub17.i.i to i16
%cond.i.i = select i1 %cmp.i.i, i16 %8, i16 0
%9 = trunc i32 %sub17.i.i to i16
%10 = tail call i16 @llvm.bswap.i16(i16 %9)
%rangeShift.i.i = getelementptr inbounds i8, ptr %this, i64 6
%ref.tmp.sroa.0.0.insert.insert.i16.i.i = tail call i16 @llvm.bswap.i16(i16 %cond.i.i)
%ref.tmp.sroa.0.0.insert.insert.i16.i.i = select i1 %cmp.i.i, i16 %10, i16 0
store i16 %ref.tmp.sroa.0.0.insert.insert.i16.i.i, ptr %rangeShift.i.i, align 1
%cmp.not.i.i = icmp ult i32 %items_len, 65536
%.pre = load i32, ptr %errors.i.i.i, align 4
Expand All @@ -102012,25 +102013,25 @@ _ZN22hb_serialize_context_t12check_assignIN2OT15BinSearchHeaderINS1_7IntTypeItLj

if.end.i.i: ; preds = %_ZN22hb_serialize_context_t12check_assignIN2OT15BinSearchHeaderINS1_7IntTypeItLj2EEEEERjEEbRT_OT0_20hb_serialize_error_t.exit
%arrayidx3.i.i.i.i = getelementptr inbounds i8, ptr %this, i64 1
%9 = load i8, ptr %arrayidx3.i.i.i.i, align 1
%10 = load i8, ptr %this, align 1
%conv.i.i.i.i = zext i8 %10 to i64
%11 = shl nuw nsw i64 %conv.i.i.i.i, 12
%conv4.i.i.i.i = zext i8 %9 to i64
%12 = shl nuw nsw i64 %conv4.i.i.i.i, 4
%mul.i = or disjoint i64 %12, %11
%11 = load i8, ptr %arrayidx3.i.i.i.i, align 1
%12 = load i8, ptr %this, align 1
%conv.i.i.i.i = zext i8 %12 to i64
%13 = shl nuw nsw i64 %conv.i.i.i.i, 12
%conv4.i.i.i.i = zext i8 %11 to i64
%14 = shl nuw nsw i64 %conv4.i.i.i.i, 4
%mul.i = or disjoint i64 %14, %13
%add.i = or disjoint i64 %mul.i, 8
%add.ptr.i = getelementptr inbounds i8, ptr %this, i64 %add.i
%13 = load ptr, ptr %head.i.i, align 8
%15 = load ptr, ptr %head.i.i, align 8
%sub.ptr.lhs.cast.i = ptrtoint ptr %add.ptr.i to i64
%sub.ptr.rhs.cast.i = ptrtoint ptr %13 to i64
%sub.ptr.rhs.cast.i = ptrtoint ptr %15 to i64
%sub.ptr.sub.i = sub i64 %sub.ptr.lhs.cast.i, %sub.ptr.rhs.cast.i
%cmp.i.i5 = icmp ugt i64 %sub.ptr.sub.i, 2147483647
br i1 %cmp.i.i5, label %if.then3.i.i, label %lor.lhs.false.i.i

lor.lhs.false.i.i: ; preds = %if.end.i.i
%14 = load ptr, ptr %tail.i.i.i, align 8
%sub.ptr.lhs.cast.i.i6 = ptrtoint ptr %14 to i64
%16 = load ptr, ptr %tail.i.i.i, align 8
%sub.ptr.lhs.cast.i.i6 = ptrtoint ptr %16 to i64
%sub.ptr.sub.i.i7 = sub i64 %sub.ptr.lhs.cast.i.i6, %sub.ptr.rhs.cast.i
%cmp2.i.i = icmp slt i64 %sub.ptr.sub.i.i7, %sub.ptr.sub.i
br i1 %cmp2.i.i, label %if.then3.i.i, label %if.end5.i.i
Expand All @@ -102040,24 +102041,24 @@ if.then3.i.i: ; preds = %lor.lhs.false.i.i,
br label %return

if.end5.i.i: ; preds = %lor.lhs.false.i.i
%tobool.not.i.i.i8 = icmp ne ptr %add.ptr.i, %13
%tobool.not.i.i.i8 = icmp ne ptr %add.ptr.i, %15
%or.cond.not.i.i = and i1 %clear, %tobool.not.i.i.i8
br i1 %or.cond.not.i.i, label %if.end.i.i.i10, label %if.end9.i.i

if.end.i.i.i10: ; preds = %if.end5.i.i
tail call void @llvm.memset.p0.i64(ptr align 1 %13, i8 0, i64 %sub.ptr.sub.i, i1 false)
tail call void @llvm.memset.p0.i64(ptr align 1 %15, i8 0, i64 %sub.ptr.sub.i, i1 false)
%.pre.i.i = load ptr, ptr %head.i.i, align 8
br label %if.end9.i.i

if.end9.i.i: ; preds = %if.end.i.i.i10, %if.end5.i.i
%15 = phi ptr [ %.pre.i.i, %if.end.i.i.i10 ], [ %13, %if.end5.i.i ]
%add.ptr.i.i9 = getelementptr inbounds i8, ptr %15, i64 %sub.ptr.sub.i
%17 = phi ptr [ %.pre.i.i, %if.end.i.i.i10 ], [ %15, %if.end5.i.i ]
%add.ptr.i.i9 = getelementptr inbounds i8, ptr %17, i64 %sub.ptr.sub.i
store ptr %add.ptr.i.i9, ptr %head.i.i, align 8
%16 = icmp ne ptr %15, null
%18 = icmp ne ptr %17, null
br label %return

return: ; preds = %_ZN22hb_serialize_context_t12check_assignIN2OT15BinSearchHeaderINS1_7IntTypeItLj2EEEEERjEEbRT_OT0_20hb_serialize_error_t.exit.thread, %if.end9.i.i, %if.end9.i.i.i, %if.then3.i.i, %_ZN22hb_serialize_context_t12check_assignIN2OT15BinSearchHeaderINS1_7IntTypeItLj2EEEEERjEEbRT_OT0_20hb_serialize_error_t.exit, %if.then3.i.i.i, %entry
%retval.0 = phi i1 [ false, %entry ], [ false, %if.then3.i.i.i ], [ false, %_ZN22hb_serialize_context_t12check_assignIN2OT15BinSearchHeaderINS1_7IntTypeItLj2EEEEERjEEbRT_OT0_20hb_serialize_error_t.exit ], [ false, %if.then3.i.i ], [ false, %if.end9.i.i.i ], [ %16, %if.end9.i.i ], [ false, %_ZN22hb_serialize_context_t12check_assignIN2OT15BinSearchHeaderINS1_7IntTypeItLj2EEEEERjEEbRT_OT0_20hb_serialize_error_t.exit.thread ]
%retval.0 = phi i1 [ false, %entry ], [ false, %if.then3.i.i.i ], [ false, %_ZN22hb_serialize_context_t12check_assignIN2OT15BinSearchHeaderINS1_7IntTypeItLj2EEEEERjEEbRT_OT0_20hb_serialize_error_t.exit ], [ false, %if.then3.i.i ], [ false, %if.end9.i.i.i ], [ %18, %if.end9.i.i ], [ false, %_ZN22hb_serialize_context_t12check_assignIN2OT15BinSearchHeaderINS1_7IntTypeItLj2EEEEERjEEbRT_OT0_20hb_serialize_error_t.exit.thread ]
ret i1 %retval.0
}

Expand Down
Loading