File: not-safe-to-clone.ll

package info (click to toggle)
llvm-toolchain-13 1%3A13.0.1-6~deb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,418,812 kB
  • sloc: cpp: 5,290,827; ansic: 996,570; asm: 544,593; python: 188,212; objc: 72,027; lisp: 30,291; f90: 25,395; sh: 24,900; javascript: 9,780; pascal: 9,398; perl: 7,484; ml: 5,432; awk: 3,523; makefile: 2,892; xml: 953; cs: 573; fortran: 539
file content (27 lines) | stat: -rw-r--r-- 1,040 bytes parent folder | download | duplicates (3)
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
; RUN: opt -passes='simple-loop-unswitch<nontrivial>' %s -S | FileCheck %s

declare i1 @foo()

; CHECK: define {{.*}} @mem_cgroup_node_nr_lru_pages
define i32 @mem_cgroup_node_nr_lru_pages(i1 %tree) {
entry:
  br label %for.cond

for.cond:                                         ; preds = %if.end8, %entry
  br i1 %tree, label %if.end8, label %if.else

if.else:                                          ; preds = %for.cond
  callbr void asm sideeffect ".pushsection __jump_table,  \22aw\22 \0A\09.popsection \0A\09", "X,~{dirflag},~{fpsr},~{flags}"(i8* blockaddress(@mem_cgroup_node_nr_lru_pages, %for.cond5))
          to label %if.end8 [label %for.cond5]

for.cond5:                                        ; preds = %if.else, %for.cond5
  %call6 = call i1 @foo()
  br i1 %call6, label %if.end8.loopexit, label %for.cond5

if.end8.loopexit:                                 ; preds = %for.cond5
  br label %if.end8

if.end8:                                          ; preds = %if.end8.loopexit, %if.else, %for.cond
  br label %for.cond
}