25 lines · plain
1; RUN: opt %s -passes='print<uniformity>' -disable-output 2>&1 | FileCheck %s2 3target datalayout = "e-i64:64-v16:16-v32:32-n16:32:64"4target triple = "nvptx64-nvidia-cuda"5 6; CHECK: CYCLES ASSUMED DIVERGENT:7; CHECK-NEXT: depth=1: entries(if.end16 for.cond1) for.body48 9define void @foo(i1 %b) {10entry:11 br i1 %b, label %if.then, label %if.end1612 13if.then: ; preds = %entry14 br label %for.cond115 16for.cond1: ; preds = %if.end16, %for.body4, %if.then17 br i1 false, label %for.body4, label %if.end1618 19for.body4: ; preds = %for.cond120 br label %for.cond121 22if.end16: ; preds = %for.cond1, %entry23 br label %for.cond124}25