1*e1f056f6Srahulana-quic; RUN: opt %loadNPMPolly '-passes=print<polly-detect>' -pass-remarks-missed="polly-detect" -disable-output < %s 2>&1| FileCheck %s 2a3aa423fSTobias Grosser 3a3aa423fSTobias Grosser; CHECK: remark: <unknown>:0:0: Loop cannot be handled because not all latches are part of loop region. 4a3aa423fSTobias Grosser; CHECK: remark: <unknown>:0:0: Loop cannot be handled because not all latches are part of loop region. 5a3aa423fSTobias Grosser 6a3aa423fSTobias Grosser 7a3aa423fSTobias Grossertarget datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 8a3aa423fSTobias Grosser 9a3aa423fSTobias Grosserdefine void @baz(i32 %before) { 10a3aa423fSTobias Grosserbb: 11a3aa423fSTobias Grosser br label %bb1 12a3aa423fSTobias Grosser 13a3aa423fSTobias Grosserbb1: ; preds = %bb 14a3aa423fSTobias Grosser br label %bb2 15a3aa423fSTobias Grosser 16a3aa423fSTobias Grosserbb2: ; preds = %bb8, %bb7, %bb2, %bb1 17a3aa423fSTobias Grosser %tmp = phi i32 [ %before, %bb1 ], [ 0, %bb8 ], [ %tmp4, %bb7 ], [ %tmp4, %bb2 ] 18a3aa423fSTobias Grosser %tmp3 = or i32 undef, undef 19a3aa423fSTobias Grosser %tmp4 = udiv i32 %tmp3, 10 20a3aa423fSTobias Grosser %tmp5 = trunc i32 undef to i8 21a3aa423fSTobias Grosser %tmp6 = icmp eq i8 %tmp5, 0 22a3aa423fSTobias Grosser br i1 %tmp6, label %bb7, label %bb2 23a3aa423fSTobias Grosser 24a3aa423fSTobias Grosserbb7: ; preds = %bb2 25a3aa423fSTobias Grosser br i1 undef, label %bb8, label %bb2 26a3aa423fSTobias Grosser 27a3aa423fSTobias Grosserbb8: ; preds = %bb7 28a3aa423fSTobias Grosser br i1 undef, label %bb9, label %bb2 29a3aa423fSTobias Grosser 30a3aa423fSTobias Grosserbb9: ; preds = %bb8 31a3aa423fSTobias Grosser unreachable 32a3aa423fSTobias Grosser} 33