File: reassociate-landingpad.ll

package info (click to toggle)
llvm-toolchain-16 1%3A16.0.6-15~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,634,792 kB
  • sloc: cpp: 6,179,261; ansic: 1,216,205; asm: 741,319; python: 196,614; objc: 75,325; f90: 49,640; lisp: 32,396; pascal: 12,286; sh: 9,394; perl: 7,442; ml: 5,494; awk: 3,523; makefile: 2,723; javascript: 1,206; xml: 886; fortran: 581; cs: 573
file content (54 lines) | stat: -rw-r--r-- 1,848 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
; Reassociate used to move the negation of $time_1_P14.0 above the
; landingpad.
;
; RUN: opt -passes=reassociate -disable-output < %s
;
; ModuleID = 'bugpoint-reduced-simplified.bc'
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"lp.2234.4378.7378.12512.15079.17646.20213.22780.25347.27914.40747.53580.74113.76680.86947.89514.92081.94648.115163.130561" = type { ptr, i32 }
%__type_info.2235.4379.7379.12513.15080.17647.20214.22781.25348.27915.40748.53581.74114.76681.86948.89515.92082.94649.115162.130560 = type { ptr, ptr }

declare i32 @__gxx_personality_v0(...)

declare void @b() #0

define void @a() #0 personality ptr @__gxx_personality_v0 {
", bb1":
  invoke void @b()
          to label %invoke.cont unwind label %"bb22"

", bb8":                                          ; preds = %invoke.cont
  invoke void @c()
          to label %invoke.cont25 unwind label %"bb22"

", bb15":                                         ; preds = %invoke.cont
  ret void

"bb22":     ; preds = %", bb8", %", bb1"
  %"$time_1_P14.0" = phi i64 [ undef, %", bb8" ], [ undef, %", bb1" ]
  %0 = landingpad %"lp.2234.4378.7378.12512.15079.17646.20213.22780.25347.27914.40747.53580.74113.76680.86947.89514.92081.94648.115163.130561"
          cleanup
          catch ptr null
  %r79 = sub i64 0, %"$time_1_P14.0"
  %r81 = add i64 %r79, undef
  %r93 = add i64 %r81, undef
  %r95 = sub i64 %r93, %"$time_1_P14.0"
  %r98 = icmp ult i64 %r95, undef
  unreachable

invoke.cont:                                      ; preds = %", bb1"
  br i1 undef, label %", bb15", label %", bb8"

invoke.cont25:                                    ; preds = %", bb8"
  unreachable
}

declare void @c() #0

attributes #0 = { "frame-pointer"="non-leaf" }

!llvm.module.flags = !{!0}

!0 = !{i32 1, !"Debug Info Version", i32 3}