File: pr46574.ll

package info (click to toggle)
llvm-toolchain-14 1%3A14.0.6-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,496,180 kB
  • sloc: cpp: 5,593,972; ansic: 986,872; asm: 585,869; python: 184,223; objc: 72,530; lisp: 31,119; f90: 27,793; javascript: 9,780; pascal: 9,762; sh: 9,482; perl: 7,468; ml: 5,432; awk: 3,523; makefile: 2,538; xml: 953; cs: 573; fortran: 567
file content (33 lines) | stat: -rw-r--r-- 1,496 bytes parent folder | download | duplicates (7)
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
; RUN: opt -loop-instsimplify -loop-simplifycfg -licm -simple-loop-unswitch -enable-nontrivial-unswitch %s -disable-output
; REQUIRES: asserts

%0 = type { i24, i32, i32, i8 }

@g_1077 = external dso_local local_unnamed_addr global [4 x [3 x [2 x { i8, i8, i8, i8, i8, i8, i8, i8, i32 }]]], align 4

define void @func_22() {
bb:
  br label %bb13

bb13:                                             ; preds = %bb38, %bb31, %bb
  %i15 = load i32, i32* undef, align 4
  %i16 = trunc i32 %i15 to i8
  %i18 = load %0*, %0** undef, align 8
  %i19 = icmp eq %0* %i18, null
  br i1 %i19, label %bb31, label %safe_mod_func_uint8_t_u_u.exit

bb31:                                             ; preds = %bb13
  %i25 = load i8, i8* getelementptr inbounds ([4 x [3 x [2 x { i8, i8, i8, i8, i8, i8, i8, i8, i32 }]]], [4 x [3 x [2 x { i8, i8, i8, i8, i8, i8, i8, i8, i32 }]]]* @g_1077, i64 0, i64 2, i64 2, i64 1, i32 6), align 2
  %i28 = or i8 %i25, %i16
  store i8 %i28, i8* getelementptr inbounds ([4 x [3 x [2 x { i8, i8, i8, i8, i8, i8, i8, i8, i32 }]]], [4 x [3 x [2 x { i8, i8, i8, i8, i8, i8, i8, i8, i32 }]]]* @g_1077, i64 0, i64 2, i64 2, i64 1, i32 6), align 2
  %i30 = icmp ne i8 %i28, 0
  %i37.not = icmp eq i8 %i16, 0
  %or.cond = or i1 %i37.not, %i30
  br i1 %or.cond, label %bb13, label %bb38

safe_mod_func_uint8_t_u_u.exit:                   ; preds = %bb13
  br label %bb38

bb38:                                             ; preds = %safe_mod_func_uint8_t_u_u.exit, %bb31
  br label %bb13
}