File: pr9331.ll

package info (click to toggle)
llvm-toolchain-19 1%3A19.1.7-3~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-proposed-updates
  • size: 1,998,492 kB
  • sloc: cpp: 6,951,680; ansic: 1,486,157; asm: 913,598; python: 232,024; f90: 80,126; objc: 75,281; lisp: 37,276; pascal: 16,990; sh: 10,009; ml: 5,058; perl: 4,724; awk: 3,523; makefile: 3,167; javascript: 2,504; xml: 892; fortran: 664; cs: 573
file content (57 lines) | stat: -rw-r--r-- 2,157 bytes parent folder | download | duplicates (8)
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
49
50
51
52
53
54
55
56
57
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S -passes=jump-threading < %s | FileCheck %s

define void @func(i8 zeroext %p_44) nounwind {
; CHECK-LABEL: @func(
; CHECK-NEXT:  return:
; CHECK-NEXT:    ret void
; CHECK:       for.inc46:
; CHECK-NEXT:    br label [[FOR_INC46:%.*]]
;
entry:
  br i1 false, label %for.cond2, label %if.end50

for.cond2:                                        ; preds = %for.inc46, %lor.end, %entry
  %p_44.addr.1 = phi i8 [ %p_44.addr.1, %lor.end ], [ %p_44, %entry ], [ %p_44.addr.1, %for.inc46 ]
  br i1 undef, label %for.inc46, label %for.body5

for.body5:                                        ; preds = %for.cond2
  br i1 undef, label %lbl_465, label %if.then9

if.then9:                                         ; preds = %for.body5
  br label %return

lbl_465:                                          ; preds = %lbl_465, %for.body5
  %tobool19 = icmp eq i8 undef, 0
  br i1 %tobool19, label %if.end21, label %lbl_465

if.end21:                                         ; preds = %lbl_465
  %conv23 = zext i8 %p_44.addr.1 to i64
  %xor = xor i64 %conv23, 1
  %tobool.i = icmp eq i64 %conv23, 0
  br i1 %tobool.i, label %cond.false.i, label %safe_mod_func_uint64_t_u_u.exit

cond.false.i:                                     ; preds = %if.end21
  %div.i = udiv i64 %xor, %conv23
  br label %safe_mod_func_uint64_t_u_u.exit

safe_mod_func_uint64_t_u_u.exit:                  ; preds = %cond.false.i, %if.end21
  %cond.i = phi i64 [ %div.i, %cond.false.i ], [ %conv23, %if.end21 ]
  %tobool28 = icmp eq i64 %cond.i, 0
  br i1 %tobool28, label %lor.rhs, label %lor.end

lor.rhs:                                          ; preds = %safe_mod_func_uint64_t_u_u.exit
  br label %lor.end

lor.end:                                          ; preds = %lor.rhs, %safe_mod_func_uint64_t_u_u.exit
  br label %for.cond2

for.inc46:                                        ; preds = %for.cond2
  br label %for.cond2

if.end50:                                         ; preds = %entry
  br label %return

return:                                           ; preds = %if.end50, %if.then9
  ret void
}