; ModuleID = 'bugpoint-reduced-simplified.bc'
source_filename = "foo"targetdatalayout = "e-m:m-p:32:32-i8:8:32-i16:16:32-i64:64-n32-S64"targettriple = "mipsel-unknown-linux-none"; Function Attrs: nobuiltin nounwinddefinevoid@entry() #0 {
Entry:
%a = alloca <3 x i9>, align8store <3 x i9> <i98, i916, i924>, <3 x i9>* %a, align8%0 = load <3 x i9>, <3 x i9>* %a, align8callfastccvoid@hash(<3 x i9> %0)
retvoid
}
; Function Attrs: nobuiltin nounwinddefineinternalfastccvoid@hash(<3 x i9>) unnamed_addr #0 {
Entry:
%array = alloca [3 x i9], align2%x = alloca <3 x i9>, align8store <3 x i9> %0, <3 x i9>* %x, align8%1 = load <3 x i9>, <3 x i9>* %x, align8%2 = getelementptrinbounds [3 x i9], [3 x i9]* %array, i320, i320%3 = extractelement <3 x i9> %1, i320storei9%3, i9*%2%4 = getelementptrinbounds [3 x i9], [3 x i9]* %array, i320, i321%5 = extractelement <3 x i9> %1, i321storei9%5, i9*%4%6 = getelementptrinbounds [3 x i9], [3 x i9]* %array, i320, i322%7 = extractelement <3 x i9> %1, i322storei9%7, i9*%6%8 = getelementptrinbounds [3 x i9], [3 x i9]* %array, i320, i320%9 = loadi9, i9*%8, align2%10 = icmpnei9%9, 8bri1%10, label%Then, label%Else
Then: ; preds = %Entrycallvoid@llvm.debugtrap()
brlabel%EndIf
Else: ; preds = %Entrybrlabel%EndIf
EndIf: ; preds = %Else, %Then%11 = getelementptrinbounds [3 x i9], [3 x i9]* %array, i320, i321%12 = loadi9, i9*%11, align2%13 = icmpnei9%12, 16bri1%13, label%Then1, label%Else2
Then1: ; preds = %EndIfcallvoid@llvm.debugtrap()
brlabel%EndIf3
Else2: ; preds = %EndIfbrlabel%EndIf3
EndIf3: ; preds = %Else2, %Then1%14 = getelementptrinbounds [3 x i9], [3 x i9]* %array, i320, i322%15 = loadi9, i9*%14, align2%16 = icmpnei9%15, 24bri1%16, label%Then4, label%Else5
Then4: ; preds = %EndIf3callvoid@llvm.debugtrap()
brlabel%EndIf6
Else5: ; preds = %EndIf3brlabel%EndIf6
EndIf6: ; preds = %Else5, %Then4retvoid
}
; Function Attrs: nounwinddeclarevoid@llvm.debugtrap() #1attributes #0 = { nobuiltinnounwind"no-frame-pointer-elim"="true""no-frame-pointer-elim-non-leaf" }
attributes #1 = { nounwind }
!llvm.module.flags = !{!0, !1}
!llvm.dbg.cu = !{!2}
!0 = !{i322, !"Debug Info Version", i323}
!1 = !{i322, !"Dwarf Version", i324}
!2 = distinct !DICompileUnit(language: DW_LANG_C99, file: !3, producer: "zig 0.5.0", isOptimized: false, runtimeVersion: 0, emissionKind: NoDebug, enums: !4)
!3 = !DIFile(filename: "foo", directory: "/tmp")
!4 = !{}
EDIT:: Here are the reduced and failing test cases.