; LLVM IR from FedericaPaoli1/stm32-speech-recognition-and-traduction :: Drivers/CMSIS/DSP/Source/TransformFunctions (arm_rfft_fast_f64)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.arm_rfft_fast_instance_f64 = type { %struct.arm_cfft_instance_f64, i16, ptr }
%struct.arm_cfft_instance_f64 = type { i16, ptr, ptr, i16 }

; Function Attrs: nounwind uwtable
define dso_local void @stage_rfft_f64(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #2
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.arm_rfft_fast_instance_f64, ptr %23, i32 0, i32 2
  %25 = load ptr, ptr %24, align 8, !tbaa !9
  store ptr %25, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #2
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %26, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #2
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %27, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #2
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.arm_rfft_fast_instance_f64, ptr %28, i32 0, i32 0
  %30 = getelementptr inbounds %struct.arm_cfft_instance_f64, ptr %29, i32 0, i32 0
  %31 = load i16, ptr %30, align 8, !tbaa !13
  %32 = zext i16 %31 to i32
  %33 = sub nsw i32 %32, 1
  store i32 %33, ptr %7, align 4, !tbaa !14
  %34 = load ptr, ptr %12, align 8, !tbaa !5
  %35 = getelementptr inbounds double, ptr %34, i64 0
  %36 = load double, ptr %35, align 8, !tbaa !16
  store double %36, ptr %15, align 8, !tbaa !16
  %37 = load ptr, ptr %12, align 8, !tbaa !5
  %38 = getelementptr inbounds double, ptr %37, i64 1
  %39 = load double, ptr %38, align 8, !tbaa !16
  store double %39, ptr %16, align 8, !tbaa !16
  %40 = load ptr, ptr %11, align 8, !tbaa !5
  %41 = getelementptr inbounds double, ptr %40, i64 0
  %42 = load double, ptr %41, align 8, !tbaa !16
  store double %42, ptr %13, align 8, !tbaa !16
  %43 = load ptr, ptr %11, align 8, !tbaa !5
  %44 = getelementptr inbounds double, ptr %43, i64 1
  %45 = load double, ptr %44, align 8, !tbaa !16
  store double %45, ptr %14, align 8, !tbaa !16
  %46 = load ptr, ptr %10, align 8, !tbaa !5
  %47 = getelementptr inbounds double, ptr %46, i32 1
  store ptr %47, ptr %10, align 8, !tbaa !5
  %48 = load double, ptr %46, align 8, !tbaa !16
  store double %48, ptr %8, align 8, !tbaa !16
  %49 = load ptr, ptr %10, align 8, !tbaa !5
  %50 = getelementptr inbounds double, ptr %49, i32 1
  store ptr %50, ptr %10, align 8, !tbaa !5
  %51 = load double, ptr %49, align 8, !tbaa !16
  store double %51, ptr %9, align 8, !tbaa !16
  %52 = load double, ptr %15, align 8, !tbaa !16
  %53 = load double, ptr %13, align 8, !tbaa !16
  %54 = fadd double %52, %53
  store double %54, ptr %17, align 8, !tbaa !16
  %55 = load double, ptr %16, align 8, !tbaa !16
  %56 = load double, ptr %14, align 8, !tbaa !16
  %57 = fadd double %55, %56
  store double %57, ptr %18, align 8, !tbaa !16
  %58 = load double, ptr %17, align 8, !tbaa !16
  %59 = load double, ptr %18, align 8, !tbaa !16
  %60 = fadd double %58, %59
  %61 = fmul double 5.000000e-01, %60
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = getelementptr inbounds double, ptr %62, i32 1
  store ptr %63, ptr %6, align 8, !tbaa !5
  store double %61, ptr %62, align 8, !tbaa !16
  %64 = load double, ptr %17, align 8, !tbaa !16
  %65 = load double, ptr %18, align 8, !tbaa !16
  %66 = fsub double %64, %65
  %67 = fmul double 5.000000e-01, %66
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = getelementptr inbounds double, ptr %68, i32 1
  store ptr %69, ptr %6, align 8, !tbaa !5
  store double %67, ptr %68, align 8, !tbaa !16
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = load i32, ptr %7, align 4, !tbaa !14
  %72 = mul i32 2, %71
  %73 = zext i32 %72 to i64
  %74 = getelementptr inbounds double, ptr %70, i64 %73
  store ptr %74, ptr %12, align 8, !tbaa !5
  %75 = load ptr, ptr %11, align 8, !tbaa !5
  %76 = getelementptr inbounds double, ptr %75, i64 2
  store ptr %76, ptr %11, align 8, !tbaa !5
  br label %77

77:                                               ; preds = %140, %3
  %78 = load ptr, ptr %12, align 8, !tbaa !5
  %79 = getelementptr inbounds double, ptr %78, i64 1
  %80 = load double, ptr %79, align 8, !tbaa !16
  store double %80, ptr %16, align 8, !tbaa !16
  %81 = load ptr, ptr %12, align 8, !tbaa !5
  %82 = getelementptr inbounds double, ptr %81, i64 0
  %83 = load double, ptr %82, align 8, !tbaa !16
  store double %83, ptr %15, align 8, !tbaa !16
  %84 = load ptr, ptr %11, align 8, !tbaa !5
  %85 = getelementptr inbounds double, ptr %84, i64 0
  %86 = load double, ptr %85, align 8, !tbaa !16
  store double %86, ptr %13, align 8, !tbaa !16
  %87 = load ptr, ptr %11, align 8, !tbaa !5
  %88 = getelementptr inbounds double, ptr %87, i64 1
  %89 = load double, ptr %88, align 8, !tbaa !16
  store double %89, ptr %14, align 8, !tbaa !16
  %90 = load ptr, ptr %10, align 8, !tbaa !5
  %91 = getelementptr inbounds double, ptr %90, i32 1
  store ptr %91, ptr %10, align 8, !tbaa !5
  %92 = load double, ptr %90, align 8, !tbaa !16
  store double %92, ptr %8, align 8, !tbaa !16
  %93 = load ptr, ptr %10, align 8, !tbaa !5
  %94 = getelementptr inbounds double, ptr %93, i32 1
  store ptr %94, ptr %10, align 8, !tbaa !5
  %95 = load double, ptr %93, align 8, !tbaa !16
  store double %95, ptr %9, align 8, !tbaa !16
  %96 = load double, ptr %15, align 8, !tbaa !16
  %97 = load double, ptr %13, align 8, !tbaa !16
  %98 = fsub double %96, %97
  store double %98, ptr %17, align 8, !tbaa !16
  %99 = load double, ptr %16, align 8, !tbaa !16
  %100 = load double, ptr %14, align 8, !tbaa !16
  %101 = fadd double %99, %100
  store double %101, ptr %18, align 8, !tbaa !16
  %102 = load double, ptr %8, align 8, !tbaa !16
  %103 = load double, ptr %17, align 8, !tbaa !16
  %104 = fmul double %102, %103
  store double %104, ptr %19, align 8, !tbaa !16
  %105 = load double, ptr %9, align 8, !tbaa !16
  %106 = load double, ptr %17, align 8, !tbaa !16
  %107 = fmul double %105, %106
  store double %107, ptr %20, align 8, !tbaa !16
  %108 = load double, ptr %8, align 8, !tbaa !16
  %109 = load double, ptr %18, align 8, !tbaa !16
  %110 = fmul double %108, %109
  store double %110, ptr %21, align 8, !tbaa !16
  %111 = load double, ptr %9, align 8, !tbaa !16
  %112 = load double, ptr %18, align 8, !tbaa !16
  %113 = fmul double %111, %112
  store double %113, ptr %22, align 8, !tbaa !16
  %114 = load double, ptr %13, align 8, !tbaa !16
  %115 = load double, ptr %15, align 8, !tbaa !16
  %116 = fadd double %114, %115
  %117 = load double, ptr %19, align 8, !tbaa !16
  %118 = fadd double %116, %117
  %119 = load double, ptr %22, align 8, !tbaa !16
  %120 = fadd double %118, %119
  %121 = fmul double 5.000000e-01, %120
  %122 = load ptr, ptr %6, align 8, !tbaa !5
  %123 = getelementptr inbounds double, ptr %122, i32 1
  store ptr %123, ptr %6, align 8, !tbaa !5
  store double %121, ptr %122, align 8, !tbaa !16
  %124 = load double, ptr %14, align 8, !tbaa !16
  %125 = load double, ptr %16, align 8, !tbaa !16
  %126 = fsub double %124, %125
  %127 = load double, ptr %20, align 8, !tbaa !16
  %128 = fadd double %126, %127
  %129 = load double, ptr %21, align 8, !tbaa !16
  %130 = fsub double %128, %129
  %131 = fmul double 5.000000e-01, %130
  %132 = load ptr, ptr %6, align 8, !tbaa !5
  %133 = getelementptr inbounds double, ptr %132, i32 1
  store ptr %133, ptr %6, align 8, !tbaa !5
  store double %131, ptr %132, align 8, !tbaa !16
  %134 = load ptr, ptr %11, align 8, !tbaa !5
  %135 = getelementptr inbounds double, ptr %134, i64 2
  store ptr %135, ptr %11, align 8, !tbaa !5
  %136 = load ptr, ptr %12, align 8, !tbaa !5
  %137 = getelementptr inbounds double, ptr %136, i64 -2
  store ptr %137, ptr %12, align 8, !tbaa !5
  %138 = load i32, ptr %7, align 4, !tbaa !14
  %139 = add i32 %138, -1
  store i32 %139, ptr %7, align 4, !tbaa !14
  br label %140

140:                                              ; preds = %77
  %141 = load i32, ptr %7, align 4, !tbaa !14
  %142 = icmp ugt i32 %141, 0
  br i1 %142, label %77, label %143, !llvm.loop !18

143:                                              ; preds = %140
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #2
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 40}
!10 = !{!"", !11, i64 0, !12, i64 32, !6, i64 40}
!11 = !{!"", !12, i64 0, !6, i64 8, !6, i64 16, !12, i64 24}
!12 = !{!"short", !7, i64 0}
!13 = !{!10, !12, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"double", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) uwtable
define dso_local void @stage_rfft_f64(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #0 {
  %4 = getelementptr inbounds i8, ptr %0, i64 40
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %6 = load i16, ptr %0, align 8, !tbaa !12
  %7 = zext i16 %6 to i32
  %8 = add nsw i32 %7, -1
  %9 = load double, ptr %1, align 8, !tbaa !13
  %10 = getelementptr inbounds i8, ptr %1, i64 8
  %11 = load double, ptr %10, align 8, !tbaa !13
  %12 = fadd double %9, %9
  %13 = fadd double %11, %11
  %14 = fadd double %12, %13
  %15 = fmul double %14, 5.000000e-01
  %16 = getelementptr inbounds i8, ptr %2, i64 8
  store double %15, ptr %2, align 8, !tbaa !13
  %17 = fsub double %12, %13
  %18 = fmul double %17, 5.000000e-01
  store double %18, ptr %16, align 8, !tbaa !13
  %19 = shl nsw i32 %8, 1
  %20 = zext i32 %19 to i64
  %21 = getelementptr inbounds double, ptr %1, i64 %20
  %22 = add nsw i32 %7, -2
  %23 = zext i32 %22 to i64
  %24 = add nuw nsw i64 %23, 1
  %min.iters.check = icmp ult i32 %22, 5
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %3
  %scevgep = getelementptr i8, ptr %2, i64 16
  %25 = add nsw i32 %7, -2
  %26 = zext i32 %25 to i64
  %27 = shl nuw nsw i64 %26, 4
  %28 = add nuw nsw i64 %27, 32
  %scevgep60 = getelementptr i8, ptr %2, i64 %28
  %scevgep61 = getelementptr i8, ptr %1, i64 16
  %scevgep62 = getelementptr i8, ptr %1, i64 %28
  %29 = shl nuw nsw i64 %20, 3
  %30 = sub nsw i64 %29, %27
  %scevgep63 = getelementptr i8, ptr %1, i64 %30
  %31 = getelementptr i8, ptr %1, i64 %29
  %scevgep65 = getelementptr i8, ptr %5, i64 16
  %scevgep66 = getelementptr i8, ptr %5, i64 %28
  %bound0 = icmp ult ptr %scevgep, %scevgep62
  %bound1 = icmp ult ptr %scevgep61, %scevgep60
  %found.conflict = and i1 %bound0, %bound1
  %bound067 = icmp ugt ptr %31, %2
  %bound168 = icmp ult ptr %scevgep63, %scevgep60
  %found.conflict69 = and i1 %bound067, %bound168
  %conflict.rdx = or i1 %found.conflict, %found.conflict69
  %bound070 = icmp ult ptr %scevgep, %scevgep66
  %bound171 = icmp ult ptr %scevgep65, %scevgep60
  %found.conflict72 = and i1 %bound070, %bound171
  %conflict.rdx73 = or i1 %conflict.rdx, %found.conflict72
  br i1 %conflict.rdx73, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %24, 8589934590
  %32 = shl nuw nsw i64 %n.vec, 4
  %ind.end = getelementptr i8, ptr %5, i64 %32
  %33 = shl nuw nsw i64 %n.vec, 4
  %ind.end74 = getelementptr i8, ptr %1, i64 %33
  %34 = mul nsw i64 %n.vec, -16
  %ind.end76 = getelementptr i8, ptr %21, i64 %34
  %.cast = trunc i64 %n.vec to i32
  %ind.end78 = sub i32 %8, %.cast
  %35 = shl nuw nsw i64 %n.vec, 4
  %ind.end80 = getelementptr i8, ptr %2, i64 %35
  %invariant.gep = getelementptr i8, ptr %1, i64 16
  %invariant.gep93 = getelementptr i8, ptr %5, i64 16
  %invariant.gep95 = getelementptr i8, ptr %2, i64 16
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = shl i64 %index, 4
  %offset.idx82 = shl i64 %index, 4
  %offset.idx84 = mul i64 %index, -16
  %next.gep85 = getelementptr i8, ptr %21, i64 %offset.idx84
  %36 = getelementptr i8, ptr %21, i64 %offset.idx84
  %next.gep86 = getelementptr i8, ptr %36, i64 -16
  %offset.idx87 = shl i64 %index, 4
  %gep = getelementptr i8, ptr %invariant.gep, i64 %offset.idx82
  %gep94 = getelementptr i8, ptr %invariant.gep93, i64 %offset.idx
  %37 = getelementptr inbounds i8, ptr %next.gep85, i64 8
  %38 = getelementptr i8, ptr %36, i64 -8
  %39 = load double, ptr %37, align 8, !tbaa !13, !alias.scope !15
  %40 = load double, ptr %38, align 8, !tbaa !13, !alias.scope !15
  %41 = insertelement <2 x double> poison, double %39, i64 0
  %42 = insertelement <2 x double> %41, double %40, i64 1
  %43 = load double, ptr %next.gep85, align 8, !tbaa !13, !alias.scope !15
  %44 = load double, ptr %next.gep86, align 8, !tbaa !13, !alias.scope !15
  %45 = insertelement <2 x double> poison, double %43, i64 0
  %46 = insertelement <2 x double> %45, double %44, i64 1
  %wide.vec = load <4 x double>, ptr %gep, align 8, !tbaa !13
  %strided.vec = shufflevector <4 x double> %wide.vec, <4 x double> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec89 = shufflevector <4 x double> %wide.vec, <4 x double> poison, <2 x i32> <i32 1, i32 3>
  %wide.vec90 = load <4 x double>, ptr %gep94, align 8, !tbaa !13
  %strided.vec91 = shufflevector <4 x double> %wide.vec90, <4 x double> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec92 = shufflevector <4 x double> %wide.vec90, <4 x double> poison, <2 x i32> <i32 1, i32 3>
  %47 = fsub <2 x double> %46, %strided.vec
  %48 = fadd <2 x double> %42, %strided.vec89
  %49 = fmul <2 x double> %47, %strided.vec91
  %50 = fmul <2 x double> %47, %strided.vec92
  %51 = fmul <2 x double> %strided.vec91, %48
  %52 = fmul <2 x double> %48, %strided.vec92
  %53 = fadd <2 x double> %46, %strided.vec
  %54 = fadd <2 x double> %53, %49
  %55 = fadd <2 x double> %54, %52
  %56 = fmul <2 x double> %55, <double 5.000000e-01, double 5.000000e-01>
  %57 = fsub <2 x double> %strided.vec89, %42
  %58 = fadd <2 x double> %57, %50
  %59 = fsub <2 x double> %58, %51
  %60 = fmul <2 x double> %59, <double 5.000000e-01, double 5.000000e-01>
  %gep96 = getelementptr i8, ptr %invariant.gep95, i64 %offset.idx87
  %interleaved.vec = shufflevector <2 x double> %56, <2 x double> %60, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
  store <4 x double> %interleaved.vec, ptr %gep96, align 8, !tbaa !13
  %index.next = add nuw i64 %index, 2
  %61 = icmp eq i64 %index.next, %n.vec
  br i1 %61, label %middle.block, label %vector.body, !llvm.loop !18

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %24, %n.vec
  br i1 %cmp.n, label %.loopexit, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %3
  %.pn.ph = phi ptr [ %5, %vector.memcheck ], [ %5, %3 ], [ %ind.end, %middle.block ]
  %.pn59.ph = phi ptr [ %1, %vector.memcheck ], [ %1, %3 ], [ %ind.end74, %middle.block ]
  %.055.ph = phi ptr [ %21, %vector.memcheck ], [ %21, %3 ], [ %ind.end76, %middle.block ]
  %.054.ph = phi i32 [ %8, %vector.memcheck ], [ %8, %3 ], [ %ind.end78, %middle.block ]
  %.pn58.ph = phi ptr [ %2, %vector.memcheck ], [ %2, %3 ], [ %ind.end80, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %.pn = phi ptr [ %.057, %scalar.ph ], [ %.pn.ph, %scalar.ph.preheader ]
  %.pn59 = phi ptr [ %.056, %scalar.ph ], [ %.pn59.ph, %scalar.ph.preheader ]
  %.055 = phi ptr [ %80, %scalar.ph ], [ %.055.ph, %scalar.ph.preheader ]
  %.054 = phi i32 [ %81, %scalar.ph ], [ %.054.ph, %scalar.ph.preheader ]
  %.pn58 = phi ptr [ %.0, %scalar.ph ], [ %.pn58.ph, %scalar.ph.preheader ]
  %.056 = getelementptr inbounds i8, ptr %.pn59, i64 16
  %.0 = getelementptr inbounds i8, ptr %.pn58, i64 16
  %.057 = getelementptr inbounds i8, ptr %.pn, i64 16
  %62 = load <2 x double>, ptr %.055, align 8, !tbaa !13
  %63 = load <2 x double>, ptr %.056, align 8, !tbaa !13
  %64 = load <2 x double>, ptr %.057, align 8, !tbaa !13
  %65 = fsub <2 x double> %62, %63
  %66 = fadd <2 x double> %62, %63
  %67 = shufflevector <2 x double> %65, <2 x double> poison, <2 x i32> zeroinitializer
  %68 = fmul <2 x double> %67, %64
  %69 = shufflevector <2 x double> %66, <2 x double> poison, <2 x i32> <i32 1, i32 1>
  %70 = fmul <2 x double> %69, %64
  %71 = shufflevector <2 x double> %70, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %72 = fadd <2 x double> %63, %62
  %73 = fsub <2 x double> %63, %62
  %74 = shufflevector <2 x double> %72, <2 x double> %73, <2 x i32> <i32 0, i32 3>
  %75 = fadd <2 x double> %74, %68
  %76 = fadd <2 x double> %75, %71
  %77 = fsub <2 x double> %75, %71
  %78 = shufflevector <2 x double> %76, <2 x double> %77, <2 x i32> <i32 0, i32 3>
  %79 = fmul <2 x double> %78, <double 5.000000e-01, double 5.000000e-01>
  store <2 x double> %79, ptr %.0, align 8, !tbaa !13
  %80 = getelementptr inbounds i8, ptr %.055, i64 -16
  %81 = add i32 %.054, -1
  %.not = icmp eq i32 %81, 0
  br i1 %.not, label %.loopexit, label %scalar.ph, !llvm.loop !22

.loopexit:                                        ; preds = %scalar.ph, %middle.block
  ret void
}

attributes #0 = { nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "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" }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !11, i64 40}
!6 = !{!"", !7, i64 0, !8, i64 32, !11, i64 40}
!7 = !{!"", !8, i64 0, !11, i64 8, !11, i64 16, !8, i64 24}
!8 = !{!"short", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!6, !8, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !9, i64 0}
!15 = !{!16}
!16 = distinct !{!16, !17}
!17 = distinct !{!17, !"LVerDomain"}
!18 = distinct !{!18, !19, !20, !21}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!"llvm.loop.isvectorized", i32 1}
!21 = !{!"llvm.loop.unroll.runtime.disable"}
!22 = distinct !{!22, !19, !20}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopLoadEliminationPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,VectorCombinePass