1 ; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-print-scops -polly-print-simplify -disable-output < %s | FileCheck %s
3 ; %tmp5 must keep the Value WRITE MemoryAccess, because as an incoming value of
4 ; %tmp4, it is an "external use".
6 ; A common mistake is to assume that %tmp5 is used by %tmp4 in bb3, when
7 ; practically it's the incoming block %bb9 which is the user.
9 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
16 %tmp = load ptr, ptr undef
19 bb3: ; preds = %bb9, %bb2
20 %tmp4 = phi ptr [ %tmp, %bb2 ], [ %tmp5, %bb9 ]
21 %tmp5 = getelementptr inbounds i64, ptr %tmp4, i64 1
22 %tmp6 = load i64, ptr %tmp5
23 %tmp7 = and i64 %tmp6, 4160749568
24 br i1 false, label %bb8, label %bb9
29 bb9: ; preds = %bb8, %bb3
30 %tmp10 = icmp eq i64 %tmp7, 134217728
31 br i1 %tmp10, label %bb11, label %bb3
41 ; CHECK: MustWriteAccess := [Reduction Type: NONE] [Scalar: 1]
42 ; CHECK-NEXT: [p_0] -> { Stmt_bb3[] -> MemRef_tmp5[] };
44 ; CHECK: SCoP could not be simplified