reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
; RUN: opt %loadPolly -polly-detect -analyze  < %s | FileCheck %s
; CHECK-NOT: Valid Region for Scop:

target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"

%struct.bar = type { i32, [4 x i32] }

define void @f(%struct.bar* %arg) {
bb:
  %tmp = alloca [4 x i32], align 16
  br label %bb1

bb1:                                              ; preds = %bb8, %bb
  %tmp2 = phi i64 [ 0, %bb ], [ %tmp9, %bb8 ]
  br i1 false, label %bb3, label %bb6

bb3:                                              ; preds = %bb1
  %tmp4 = getelementptr inbounds [4 x i32], [4 x i32]* %tmp, i64 0, i64 0
  %tmp5 = load i32, i32* %tmp4
  br label %bb8

bb6:                                              ; preds = %bb1
  %tmp7 = getelementptr inbounds %struct.bar, %struct.bar* %arg, i64 0, i32 1, i64 undef
  store i32 42, i32* %tmp7
  br label %bb8

bb8:                                              ; preds = %bb6, %bb3
  %tmp9 = add nuw nsw i64 %tmp2, 1
  br i1 false, label %bb1, label %bb10

bb10:                                             ; preds = %bb8
  ret void
}