brintos

brintos / llvm-project-archived public Read only

0
0
Text · 838 B · 7ad8cbf Raw
39 lines · plain
1; RUN: opt %loadNPMPolly '-passes=polly<no-default-opts>' -S < %s | FileCheck %s2 3target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"4 5@A = common global [1536 x float] zeroinitializer6 7; CHECK: polly8 9define void @foo() {10entry:11  br label %while.header12 13while.cond.loopexit3:14  br label %while.header15 16while.header:17  br label %switchbb18 19switchbb:20  switch i32 undef, label %while.header [21    i32 1, label %for.body12122    i32 2, label %unreachableA23    i32 3, label %unreachableB24  ]25 26unreachableA:27  unreachable28 29for.body121:30  %indvar = phi i32 [ 0, %switchbb ], [ %indvar.next, %for.body121 ]31  %ptr = getelementptr [1536 x float], ptr @A, i64 0, i32 %indvar32  store float undef, ptr %ptr33  %indvar.next = add nsw i32 %indvar, 134  br i1 false, label %for.body121, label %while.cond.loopexit335 36unreachableB:37  unreachable38}39