xref: /llvm-project/polly/test/ScopInfo/do-not-model-error-block-accesses.ll (revision e1f056f692d869708c1898d9d65a69ac5584a0ed)
1; RUN: opt %loadNPMPolly '-passes=print<polly-function-scops>' -disable-output < %s
2
3; Check that we do not crash on this input. Earlier this indeed crashed as
4; we tried to model the access functions in an error block.
5
6target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
7
8; Function Attrs: nounwind uwtable
9define void @FORMAT3_4() #0 {
10entry:
11  br label %entry.split
12
13entry.split:                                      ; preds = %entry
14  br i1 false, label %if.end.38, label %if.else
15
16if.else:                                          ; preds = %entry.split
17  call void (i32, i32, ptr, ...) @BYTES_TO_BITS(i32 undef, i32 1, ptr undef) #2
18  %0 = load i32, ptr null, align 4
19  br label %if.end.38
20
21if.end.38:                                        ; preds = %if.else, %entry.split
22  unreachable
23}
24
25declare void @BYTES_TO_BITS(...) #1
26
27attributes #0 = { nounwind uwtable "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="haswell" "target-features"="+aes,+avx,+avx2,+bmi,+bmi2,+cmov,+cx16,+f16c,+fma,+fsgsbase,+fxsr,+hle,+lzcnt,+mmx,+movbe,+pclmul,+popcnt,+rdrnd,+rtm,+sse,+sse2,+sse3,+sse4.1,+sse4.2,+ssse3,+xsave,+xsaveopt,-adx,-avx512bw,-avx512cd,-avx512dq,-avx512er,-avx512f,-avx512pf,-avx512vl,-fma4,-prfchw,-rdseed,-sha,-sse4a,-tbm,-xop,-xsavec,-xsaves" "unsafe-fp-math"="false" "use-soft-float"="false" }
28attributes #1 = { "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="haswell" "target-features"="+aes,+avx,+avx2,+bmi,+bmi2,+cmov,+cx16,+f16c,+fma,+fsgsbase,+fxsr,+hle,+lzcnt,+mmx,+movbe,+pclmul,+popcnt,+rdrnd,+rtm,+sse,+sse2,+sse3,+sse4.1,+sse4.2,+ssse3,+xsave,+xsaveopt,-adx,-avx512bw,-avx512cd,-avx512dq,-avx512er,-avx512f,-avx512pf,-avx512vl,-fma4,-prfchw,-rdseed,-sha,-sse4a,-tbm,-xop,-xsavec,-xsaves" "unsafe-fp-math"="false" "use-soft-float"="false" }
29attributes #2 = { nounwind }
30
31!llvm.ident = !{!0}
32
33!0 = !{!"clang version 3.8.0"}
34