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
8 changes: 4 additions & 4 deletions bench/arrow/optimized/row_internal.cc.ll
Original file line number Diff line number Diff line change
Expand Up @@ -495,18 +495,18 @@ land.lhs.true: ; preds = %for.body46
%44 = load i32, ptr %fixed_length, align 4
%45 = tail call range(i32 1, 33) i32 @llvm.ctpop.i32(i32 %44)
%or.cond = icmp ult i32 %45, 2
br i1 %or.cond, label %if.end, label %lor.lhs.false.i
br i1 %or.cond, label %if.end, label %_ZN5arrow7compute16RowTableMetadata21padding_for_alignmentEjiRKNS0_17KeyColumnMetadataE.exit

lor.lhs.false.i: ; preds = %land.lhs.true
_ZN5arrow7compute16RowTableMetadata21padding_for_alignmentEjiRKNS0_17KeyColumnMetadataE.exit: ; preds = %land.lhs.true
%46 = load i32, ptr %string_alignment, align 4
%sub.i.i = sub nsw i32 0, %offset_within_row.0120
%sub4.i.i = add nsw i32 %46, -1
%and.i.i = and i32 %sub4.i.i, %sub.i.i
%add = add i32 %and.i.i, %offset_within_row.0120
br label %if.end

if.end: ; preds = %lor.lhs.false.i, %land.lhs.true, %for.body46
%offset_within_row.1 = phi i32 [ %add, %lor.lhs.false.i ], [ %offset_within_row.0120, %land.lhs.true ], [ %offset_within_row.0120, %for.body46 ]
if.end: ; preds = %_ZN5arrow7compute16RowTableMetadata21padding_for_alignmentEjiRKNS0_17KeyColumnMetadataE.exit, %land.lhs.true, %for.body46
%offset_within_row.1 = phi i32 [ %add, %_ZN5arrow7compute16RowTableMetadata21padding_for_alignmentEjiRKNS0_17KeyColumnMetadataE.exit ], [ %offset_within_row.0120, %land.lhs.true ], [ %offset_within_row.0120, %for.body46 ]
%47 = load ptr, ptr %column_offsets, align 8
%add.ptr.i106 = getelementptr inbounds i32, ptr %47, i64 %indvars.iv131
store i32 %offset_within_row.1, ptr %add.ptr.i106, align 4
Expand Down
3 changes: 1 addition & 2 deletions bench/chibicc/optimized/tokenize.ll
Original file line number Diff line number Diff line change
Expand Up @@ -1756,8 +1756,7 @@ for.body: ; preds = %entry, %for.cond
br i1 %cmp.i, label %if.then, label %for.cond

if.then: ; preds = %for.body
%call4 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %0) #29
%conv5 = trunc i64 %call4 to i32
%conv5 = trunc i64 %call.i to i32
br label %return

for.end: ; preds = %for.cond
Expand Down
43 changes: 21 additions & 22 deletions bench/cjson/optimized/cJSON.c.ll
Original file line number Diff line number Diff line change
Expand Up @@ -285,30 +285,29 @@ define ptr @cJSON_SetValuestring(ptr noundef %0, ptr noundef readonly %1) local_
br i1 %19, label %cJSON_strdup.exit.thread, label %20

20: ; preds = %18
%21 = tail call i64 @strlen(ptr noundef nonnull readonly dereferenceable(1) %1) #32
%22 = add i64 %21, 1
%23 = load ptr, ptr @global_hooks, align 8
%24 = tail call ptr %23(i64 noundef %22) #31
%25 = icmp eq ptr %24, null
br i1 %25, label %cJSON_strdup.exit.thread, label %26

26: ; preds = %20
tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %24, ptr nonnull readonly align 1 %1, i64 %22, i1 false)
%27 = load ptr, ptr %9, align 8
%.not23 = icmp eq ptr %27, null
br i1 %.not23, label %30, label %28

28: ; preds = %26
%29 = load ptr, ptr getelementptr inbounds (i8, ptr @global_hooks, i64 8), align 8
tail call void %29(ptr noundef nonnull %27) #31
br label %30

30: ; preds = %28, %26
store ptr %24, ptr %9, align 8
%21 = add i64 %13, 1
%22 = load ptr, ptr @global_hooks, align 8
%23 = tail call ptr %22(i64 noundef %21) #31
%24 = icmp eq ptr %23, null
br i1 %24, label %cJSON_strdup.exit.thread, label %25

25: ; preds = %20
tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %23, ptr nonnull readonly align 1 %1, i64 %21, i1 false)
%26 = load ptr, ptr %9, align 8
%.not23 = icmp eq ptr %26, null
br i1 %.not23, label %29, label %27

27: ; preds = %25
%28 = load ptr, ptr getelementptr inbounds (i8, ptr @global_hooks, i64 8), align 8
tail call void %28(ptr noundef nonnull %26) #31
br label %29

29: ; preds = %27, %25
store ptr %23, ptr %9, align 8
br label %cJSON_strdup.exit.thread

cJSON_strdup.exit.thread: ; preds = %20, %18, %8, %2, %4, %30, %15
%.0 = phi ptr [ %17, %15 ], [ %24, %30 ], [ null, %4 ], [ null, %2 ], [ null, %8 ], [ null, %18 ], [ null, %20 ]
cJSON_strdup.exit.thread: ; preds = %20, %18, %8, %2, %4, %29, %15
%.0 = phi ptr [ %17, %15 ], [ %23, %29 ], [ null, %4 ], [ null, %2 ], [ null, %8 ], [ null, %18 ], [ null, %20 ]
ret ptr %.0
}

Expand Down
Loading