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
45 changes: 23 additions & 22 deletions bench/ffmpeg/optimized/8svx.ll
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ thread-pre-split: ; preds = %50, %4
br label %91

91: ; preds = %91, %80
%.023.i = phi ptr [ %82, %80 ], [ %115, %91 ]
%.023.i = phi ptr [ %82, %80 ], [ %112, %91 ]
%.01422.i = phi i8 [ %90, %80 ], [ %.0.i19.i, %91 ]
%.01521.i = phi ptr [ %87, %80 ], [ %93, %91 ]
%.01620.i = phi i32 [ %spec.select, %80 ], [ %92, %91 ]
Expand All @@ -238,27 +238,22 @@ thread-pre-split: ; preds = %50, %4
%100 = load i8, ptr %99, align 1, !tbaa !41
%101 = sext i8 %100 to i32
%102 = add nsw i32 %101, %95
%.not.i.i = icmp ult i32 %102, 256
%isnotneg.i.i = icmp sgt i32 %102, -1
%103 = sext i1 %isnotneg.i.i to i8
%104 = trunc nuw i32 %102 to i8
%.0.i.i = select i1 %.not.i.i, i8 %104, i8 %103
%105 = getelementptr inbounds nuw i8, ptr %.023.i, i64 1
store i8 %.0.i.i, ptr %.023.i, align 1, !tbaa !41
%106 = zext i8 %.0.i.i to i32
%107 = lshr i32 %96, 4
%108 = zext nneg i32 %107 to i64
%109 = getelementptr inbounds nuw i8, ptr %89, i64 %108
%110 = load i8, ptr %109, align 1, !tbaa !41
%111 = sext i8 %110 to i32
%112 = add nsw i32 %106, %111
%.not.i17.i = icmp ult i32 %112, 256
%isnotneg.i18.i = icmp sgt i32 %112, -1
%113 = sext i1 %isnotneg.i18.i to i8
%114 = trunc nuw i32 %112 to i8
%.0.i19.i = select i1 %.not.i17.i, i8 %114, i8 %113
%115 = getelementptr inbounds nuw i8, ptr %.023.i, i64 2
store i8 %.0.i19.i, ptr %105, align 1, !tbaa !41
%103 = tail call i32 @llvm.smax.i32(i32 %102, i32 0)
%.0.i20.i = tail call i32 @llvm.umin.i32(i32 %103, i32 255)
%.0.i.i = trunc nuw i32 %.0.i20.i to i8
%104 = getelementptr inbounds nuw i8, ptr %.025.i, i64 1
store i8 %.0.i.i, ptr %.025.i, align 1, !tbaa !41
%105 = lshr i32 %96, 4
%106 = zext nneg i32 %105 to i64
%107 = getelementptr inbounds nuw i8, ptr %89, i64 %106
%108 = load i8, ptr %107, align 1, !tbaa !41
%109 = sext i8 %108 to i32
%110 = add nsw i32 %.0.i20.i, %109
%111 = tail call i32 @llvm.smax.i32(i32 %110, i32 0)
%.0.i1921.i = tail call i32 @llvm.umin.i32(i32 %111, i32 255)
%.0.i19.i = trunc nuw i32 %.0.i1921.i to i8
%112 = getelementptr inbounds nuw i8, ptr %.025.i, i64 2
store i8 %.0.i19.i, ptr %104, align 1, !tbaa !41
%.not.i = icmp eq i32 %92, 0
br i1 %.not.i, label %delta_decode.exit, label %91, !llvm.loop !50

Expand Down Expand Up @@ -312,6 +307,12 @@ declare void @llvm.memcpy.p0.p0.i64(ptr noalias writeonly captures(none), ptr no

declare i32 @ff_get_buffer(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umin.i32(i32, i32) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #4

Expand Down
15 changes: 8 additions & 7 deletions bench/ffmpeg/optimized/af_volume.ll
Original file line number Diff line number Diff line change
Expand Up @@ -787,13 +787,11 @@ define internal void @scale_samples_u8(ptr noundef writeonly captures(none) %0,
%14 = lshr i64 %13, 8
%15 = trunc i64 %14 to i32
%16 = add i32 %15, 128
%.not.i = icmp ult i32 %16, 256
%isnotneg.i = icmp sgt i32 %16, -1
%17 = sext i1 %isnotneg.i to i8
%18 = trunc nuw i32 %16 to i8
%.0.i = select i1 %.not.i, i8 %18, i8 %17
%19 = getelementptr inbounds nuw i8, ptr %0, i64 %indvars.iv
store i8 %.0.i, ptr %19, align 1, !tbaa !81
%17 = tail call i32 @llvm.smax.i32(i32 %16, i32 0)
%.0.i7 = tail call i32 @llvm.umin.i32(i32 %17, i32 255)
%.0.i = trunc nuw i32 %.0.i7 to i8
%18 = getelementptr inbounds nuw i8, ptr %0, i64 %indvars.iv
store i8 %.0.i, ptr %18, align 1, !tbaa !81
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
br i1 %exitcond.not, label %._crit_edge, label %7, !llvm.loop !83
Expand Down Expand Up @@ -1005,6 +1003,9 @@ declare i32 @llvm.smax.i32(i32, i32) #7
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #7

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umin.i32(i32, i32) #7

attributes #0 = { cold nounwind optsize uwtable "min-legal-vector-width"="0" "no-signed-zeros-fp-math"="true" "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 #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-signed-zeros-fp-math"="true" "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 = { "no-signed-zeros-fp-math"="true" "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" }
Expand Down
Loading