xref: /llvm-project/polly/test/ScopInfo/opaque-struct.ll (revision e1f056f692d869708c1898d9d65a69ac5584a0ed)
1; RUN: opt %loadNPMPolly '-passes=print<polly-function-scops>' -disable-output < %s
2;
3; Check that we do not crash with unsized (opaque) types.
4;
5target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
6
7%struct.s3 = type opaque
8%struct.stmt = type opaque
9
10; Function Attrs: nounwind uwtable
11define void @columnMem(ptr %pStmt) #0 {
12entry:
13  br label %if.else
14
15if.else:                                          ; preds = %entry
16  %0 = load ptr, ptr %pStmt, align 8
17  br i1 false, label %if.end9, label %if.then7
18
19if.then7:                                         ; preds = %if.else
20  br label %if.end9
21
22if.end9:                                          ; preds = %if.then7, %if.else
23  ret void
24}
25