File: propagate-loop-live-out.ll

package info (click to toggle)
llvm-toolchain-11 1%3A11.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 995,808 kB
  • sloc: cpp: 4,767,656; ansic: 760,916; asm: 477,436; python: 170,940; objc: 69,804; lisp: 29,914; sh: 23,855; f90: 18,173; pascal: 7,551; perl: 7,471; ml: 5,603; awk: 3,489; makefile: 2,573; xml: 915; cs: 573; fortran: 503; javascript: 452
file content (48 lines) | stat: -rw-r--r-- 1,678 bytes parent folder | download | duplicates (2)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
; RUN: opt -mtriple amdgcn-unknown-amdhsa -analyze -divergence -use-gpu-divergence-analysis %s | FileCheck %s

; CHECK: bb6:
; CHECK: DIVERGENT:       %.126.i355.i = phi i1 [ false, %bb5 ], [ true, %bb4 ]
; CHECK: DIVERGENT:       br i1 %.126.i355.i, label %bb7, label %bb8

; Function Attrs: nounwind readnone speculatable
declare i32 @llvm.amdgcn.workitem.id.x() #0

define protected amdgpu_kernel void @_Z23krnl_GPUITSFitterKerneli() {
bb0:
  %i4 = call i32 @llvm.amdgcn.workitem.id.x()
  %i5 = icmp eq i32 %i4, -1
  br label %bb1

bb1:                                              ; preds = %bb3, %bb0
  %lsr.iv = phi i32 [ %i1, %bb3 ], [ 7, %bb0 ]
  br i1 %i5, label %bb2, label %bb3

bb2:                                              ; preds = %bb1
  %lsr.iv.next = add nsw i32 %lsr.iv, -1
  %i14 = icmp eq i32 %lsr.iv.next, 0
  br label %bb3

bb3:                                              ; preds = %bb2, %bb1
  %i1 = phi i32 [ %lsr.iv.next, %bb2 ], [ 0, %bb1 ]
  %i2 = phi i1 [ false, %bb2 ], [ true, %bb1 ]
  %i3 = phi i1 [ %i14, %bb2 ], [ true, %bb1 ]
  br i1 %i3, label %bb4, label %bb1

bb4:                                              ; preds = %bb3
  br i1 %i2, label %bb5, label %bb6

bb5:                                              ; preds = %bb4
  br label %bb6

bb6:                                              ; preds = %bb5, %bb4
  %.126.i355.i = phi i1 [ false, %bb5 ], [ true, %bb4 ]
  br i1 %.126.i355.i, label %bb7, label %bb8

bb7:                                              ; preds = %bb6
  br label %bb8

bb8:                                              ; preds = %bb7, %bb6
  ret void
}

attributes #0 = { nounwind readnone speculatable }