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
188 changes: 95 additions & 93 deletions bench/nuklear/optimized/unity.ll
Original file line number Diff line number Diff line change
Expand Up @@ -37849,7 +37849,7 @@ nk_layout_reset_min_row_height.exit: ; preds = %128, %138, %141
%or.cond.i415.not447 = or i1 %.not.i413, %.not6.i414
%174 = icmp eq ptr %1, null
%narrow.i416.not = or i1 %174, %or.cond.i415.not447
br i1 %narrow.i416.not, label %348, label %175
br i1 %narrow.i416.not, label %350, label %175

175: ; preds = %170
%176 = load float, ptr %99, align 4, !tbaa !900
Expand Down Expand Up @@ -38152,110 +38152,112 @@ nk_strlen.exit: ; preds = %.lr.ph.i.preheader4
%336 = tail call float %334(ptr %335, float noundef %322, ptr noundef nonnull %1, i32 noundef %.07.i.lcssa) #55
%337 = fadd float %319, 0.000000e+00
%338 = insertelement <2 x float> poison, float %337, i64 0
%339 = insertelement <2 x float> poison, float %332, i64 0
%340 = fmul float %..sroa.14.12.vec.extract.i, 5.000000e-01
%341 = fadd float %321, %340
%342 = load float, ptr %181, align 8, !tbaa !213
%343 = fmul float %342, 5.000000e-01
%344 = fsub float %341, %343
%.sroa.0.4.vec.insert28.i = insertelement <2 x float> %338, float %344, i64 1
%345 = fadd float %340, %343
%346 = fsub float %..sroa.14.12.vec.extract.i, %345
%347 = fcmp olt float %340, %346
%.178.i = select i1 %347, float %346, float %340
%.sroa.17.12.vec.insert52.i = insertelement <2 x float> %339, float %.178.i, i64 1
%339 = fcmp ogt float %332, 0.000000e+00
%340 = select i1 %339, float %332, float 0.000000e+00
%341 = insertelement <2 x float> poison, float %340, i64 0
%342 = fmul float %..sroa.14.12.vec.extract.i, 5.000000e-01
%343 = fadd float %321, %342
%344 = load float, ptr %181, align 8, !tbaa !213
%345 = fmul float %344, 5.000000e-01
%346 = fsub float %343, %345
%.sroa.0.4.vec.insert28.i = insertelement <2 x float> %338, float %346, i64 1
%347 = fadd float %342, %345
%348 = fsub float %..sroa.14.12.vec.extract.i, %347
%349 = fcmp olt float %342, %348
%.178.i = select i1 %349, float %348, float %342
%.sroa.17.12.vec.insert52.i = insertelement <2 x float> %341, float %.178.i, i64 1
tail call void @nk_draw_text(ptr noundef nonnull %32, <2 x float> %.sroa.0.4.vec.insert28.i, <2 x float> %.sroa.17.12.vec.insert52.i, ptr noundef nonnull %1, i32 noundef %.07.i.lcssa, ptr noundef nonnull %29, i32 %.sroa.5.0433, i32 %.sroa.9.0)
%.pre460 = load i32, ptr %97, align 4, !tbaa !910
br label %348

348: ; preds = %nk_strlen.exit, %170
%349 = phi i32 [ %.pre460, %nk_strlen.exit ], [ %18, %170 ]
%350 = and i32 %349, 34816
%or.cond397 = icmp eq i32 %350, 0
br i1 %or.cond397, label %351, label %373

351: ; preds = %348
%352 = load float, ptr %99, align 4, !tbaa !900
%.sroa.0.0.vec.insert = insertelement <2 x float> poison, float %352, i64 0
%353 = getelementptr inbounds nuw i8, ptr %16, i64 84
%354 = load float, ptr %353, align 4, !tbaa !902
%.sroa.7.8.vec.insert = insertelement <2 x float> poison, float %354, i64 0
%355 = getelementptr inbounds nuw i8, ptr %16, i64 80
%356 = load float, ptr %355, align 4, !tbaa !901
%357 = load float, ptr %135, align 8, !tbaa !918
%358 = fadd float %356, %357
%.sroa.0.4.vec.insert = insertelement <2 x float> %.sroa.0.0.vec.insert, float %358, i64 1
%359 = getelementptr inbounds nuw i8, ptr %16, i64 88
%360 = load float, ptr %359, align 4, !tbaa !904
%361 = fsub float %360, %357
%.sroa.7.12.vec.insert = insertelement <2 x float> %.sroa.7.8.vec.insert, float %361, i64 1
%362 = getelementptr inbounds nuw i8, ptr %0, i64 9464
%363 = load i32, ptr %362, align 8, !tbaa !933
switch i32 %363, label %373 [
i32 1, label %364
i32 2, label %366
i32 0, label %368
br label %350

366: ; preds = %nk_strlen.exit, %170
%351 = phi i32 [ %.pre460, %nk_strlen.exit ], [ %18, %170 ]
%352 = and i32 %351, 34816
%or.cond397 = icmp eq i32 %352, 0
br i1 %or.cond397, label %353, label %375

368: ; preds = %350
%354 = load float, ptr %99, align 4, !tbaa !900
%.sroa.0.0.vec.insert = insertelement <2 x float> poison, float %354, i64 0
%371 = getelementptr inbounds nuw i8, ptr %16, i64 84
%372 = load float, ptr %371, align 4, !tbaa !902
%.sroa.7.8.vec.insert = insertelement <2 x float> poison, float %356, i64 0
%357 = getelementptr inbounds nuw i8, ptr %16, i64 80
%358 = load float, ptr %357, align 4, !tbaa !901
%359 = load float, ptr %135, align 8, !tbaa !918
%360 = fadd float %358, %359
%.sroa.0.4.vec.insert = insertelement <2 x float> %.sroa.0.0.vec.insert, float %360, i64 1
%361 = getelementptr inbounds nuw i8, ptr %16, i64 88
%362 = load float, ptr %361, align 4, !tbaa !904
%363 = fsub float %362, %359
%.sroa.7.12.vec.insert = insertelement <2 x float> %.sroa.7.8.vec.insert, float %363, i64 1
%364 = getelementptr inbounds nuw i8, ptr %0, i64 9464
%365 = load i32, ptr %364, align 8, !tbaa !933
switch i32 %365, label %375 [
i32 1, label %366
i32 2, label %368
i32 0, label %370
]

364: ; preds = %351
%365 = getelementptr inbounds nuw i8, ptr %0, i64 9472
tail call void @nk_draw_image(ptr noundef nonnull %32, <2 x float> %.sroa.0.4.vec.insert, <2 x float> %.sroa.7.12.vec.insert, ptr noundef nonnull %365, i32 -1)
br label %373

366: ; preds = %351
%367 = getelementptr inbounds nuw i8, ptr %0, i64 9472
tail call void @nk_draw_nine_slice(ptr noundef nonnull %32, <2 x float> %.sroa.0.4.vec.insert, <2 x float> %.sroa.7.12.vec.insert, ptr noundef nonnull %367, i32 -1)
br label %373

368: ; preds = %351
%369 = getelementptr inbounds nuw i8, ptr %0, i64 9608
%370 = load float, ptr %369, align 8, !tbaa !934
%371 = getelementptr inbounds nuw i8, ptr %0, i64 9472
%372 = load i32, ptr %371, align 8
tail call void @nk_fill_rect(ptr noundef nonnull %32, <2 x float> %.sroa.0.4.vec.insert, <2 x float> %.sroa.7.12.vec.insert, float noundef %370, i32 %372)
br label %373

373: ; preds = %351, %364, %366, %368, %348
%374 = getelementptr inbounds nuw i8, ptr %31, i64 68
tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %374, ptr noundef nonnull align 8 dereferenceable(16) %98, i64 16, i1 false), !tbaa.struct !239
%375 = getelementptr inbounds nuw i8, ptr %16, i64 112
%376 = load float, ptr %374, align 4, !tbaa !935
%377 = getelementptr inbounds nuw i8, ptr %31, i64 72
%378 = load float, ptr %377, align 4, !tbaa !936
%379 = getelementptr inbounds nuw i8, ptr %31, i64 76
%380 = load float, ptr %379, align 4, !tbaa !937
%381 = fadd float %376, %380
%382 = getelementptr inbounds nuw i8, ptr %31, i64 80
%383 = load float, ptr %382, align 4, !tbaa !938
%384 = fadd float %378, %383
%385 = load float, ptr %375, align 4, !tbaa !122
%386 = fcmp olt float %385, %376
%..i = select i1 %386, float %376, float %385
373: ; preds = %353
%374 = getelementptr inbounds nuw i8, ptr %0, i64 9472
tail call void @nk_draw_image(ptr noundef nonnull %32, <2 x float> %.sroa.0.4.vec.insert, <2 x float> %.sroa.7.12.vec.insert, ptr noundef nonnull %367, i32 -1)
br label %375

368: ; preds = %368
%369 = getelementptr inbounds nuw i8, ptr %0, i64 9472
tail call void @nk_draw_nine_slice(ptr noundef nonnull %32, <2 x float> %.sroa.0.4.vec.insert, <2 x float> %.sroa.7.12.vec.insert, ptr noundef nonnull %369, i32 -1)
br label %375

370: ; preds = %368
%371 = getelementptr inbounds nuw i8, ptr %0, i64 9608
%372 = load float, ptr %371, align 8, !tbaa !934
%373 = getelementptr inbounds nuw i8, ptr %0, i64 9472
%374 = load i32, ptr %373, align 8
tail call void @nk_fill_rect(ptr noundef nonnull %32, <2 x float> %.sroa.0.4.vec.insert, <2 x float> %.sroa.7.12.vec.insert, float noundef %372, i32 %374)
br label %375

375: ; preds = %353, %366, %368, %370, %350
%376 = getelementptr inbounds nuw i8, ptr %31, i64 68
tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %376, ptr noundef nonnull align 8 dereferenceable(16) %98, i64 16, i1 false), !tbaa.struct !239
%377 = getelementptr inbounds nuw i8, ptr %16, i64 112
%378 = load float, ptr %376, align 4, !tbaa !935
%379 = getelementptr inbounds nuw i8, ptr %31, i64 72
%380 = load float, ptr %379, align 4, !tbaa !936
%381 = getelementptr inbounds nuw i8, ptr %31, i64 76
%382 = load float, ptr %381, align 4, !tbaa !937
%383 = fadd float %378, %382
%384 = getelementptr inbounds nuw i8, ptr %31, i64 80
%385 = load float, ptr %384, align 4, !tbaa !938
%386 = fadd float %380, %385
%387 = load float, ptr %377, align 4, !tbaa !122
%388 = fcmp olt float %387, %378
%..i = select i1 %388, float %378, float %387
%.sroa.0.0.vec.insert429 = insertelement <2 x float> poison, float %..i, i64 0
%387 = getelementptr inbounds nuw i8, ptr %16, i64 116
%388 = load float, ptr %387, align 4, !tbaa !124
%389 = fcmp olt float %388, %378
%390 = select i1 %389, float %378, float %388
%389 = fcmp olt float %388, %380
%390 = select i1 %389, float %380, float %388
%.sroa.0.4.vec.insert430 = insertelement <2 x float> %.sroa.0.0.vec.insert429, float %390, i64 1
%391 = getelementptr inbounds nuw i8, ptr %16, i64 120
%392 = load float, ptr %391, align 4, !tbaa !123
%393 = fadd float %385, %392
%394 = fcmp olt float %393, %381
%395 = select i1 %394, float %393, float %381
%393 = fadd float %387, %392
%394 = fcmp olt float %393, %383
%395 = select i1 %394, float %393, float %383
%396 = fsub float %395, %..i
%397 = getelementptr inbounds nuw i8, ptr %16, i64 124
%398 = load float, ptr %397, align 4, !tbaa !125
%399 = fadd float %388, %398
%400 = fcmp olt float %399, %384
%401 = select i1 %400, float %399, float %384
%400 = fcmp olt float %399, %386
%401 = select i1 %400, float %399, float %386
%402 = fsub float %401, %390
%403 = fcmp ogt float %396, 0.000000e+00
%404 = select i1 %403, float %396, float 0.000000e+00
%.sroa.6.8.vec.insert = insertelement <2 x float> poison, float %404, i64 0
%405 = fcmp ogt float %402, 0.000000e+00
%406 = select i1 %405, float %402, float 0.000000e+00
%.sroa.6.12.vec.insert = insertelement <2 x float> %.sroa.6.8.vec.insert, float %406, i64 1
store float %..i, ptr %375, align 8, !tbaa !86
store float %..i, ptr %377, align 8, !tbaa !86
store float %390, ptr %387, align 4, !tbaa !90
store float %404, ptr %391, align 8, !tbaa !91
store float %406, ptr %397, align 4, !tbaa !92
Expand All @@ -38264,7 +38266,7 @@ nk_strlen.exit: ; preds = %.lr.ph.i.preheader4
%.not.i.i427 = icmp eq ptr %408, null
br i1 %.not.i.i427, label %nk_push_scissor.exit, label %409

409: ; preds = %373
409: ; preds = %375
%410 = load ptr, ptr %32, align 8, !tbaa !93
%411 = getelementptr inbounds nuw i8, ptr %410, i64 64
%412 = load ptr, ptr %411, align 8, !tbaa !41
Expand Down Expand Up @@ -38293,17 +38295,17 @@ nk_strlen.exit: ; preds = %.lr.ph.i.preheader4
%430 = fptosi float %390 to i16
%431 = getelementptr inbounds nuw i8, ptr %408, i64 18
store i16 %430, ptr %431, align 2, !tbaa !102
%432 = fptoui float %404 to i16
%433 = getelementptr inbounds nuw i8, ptr %408, i64 20
store i16 %432, ptr %433, align 4, !tbaa !103
%434 = fptoui float %406 to i16
%435 = getelementptr inbounds nuw i8, ptr %408, i64 22
store i16 %434, ptr %435, align 2, !tbaa !104
%435 = getelementptr inbounds nuw i8, ptr %408, i64 20
store i16 %434, ptr %435, align 4, !tbaa !103
%436 = fptoui float %408 to i16
%437 = getelementptr inbounds nuw i8, ptr %410, i64 22
store i16 %436, ptr %437, align 2, !tbaa !104
br label %nk_push_scissor.exit

nk_push_scissor.exit: ; preds = %373, %409
store <2 x float> %.sroa.0.4.vec.insert430, ptr %374, align 4
store <2 x float> %.sroa.6.12.vec.insert, ptr %379, align 4
nk_push_scissor.exit: ; preds = %375, %409
store <2 x float> %.sroa.0.4.vec.insert430, ptr %376, align 4
store <2 x float> %.sroa.6.12.vec.insert, ptr %381, align 4
%436 = load i32, ptr %97, align 4, !tbaa !910
%437 = and i32 %436, 8192
%.not392 = icmp eq i32 %437, 0
Expand Down
2 changes: 1 addition & 1 deletion scripts/setup_pre_commit_patch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -euo pipefail
shopt -s inherit_errexit

export GITHUB_PATCH_ID="<user_name>/llvm-project/commit/<commit_hash>"
export GITHUB_PATCH_ID=llvm/llvm-project/pull/146736
export COMPTIME_MODE=0

# Please rebase manually
Expand Down