File: coalesce_commute_subreg.ll

package info (click to toggle)
llvm-toolchain-17 1%3A17.0.6-22
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,799,624 kB
  • sloc: cpp: 6,428,607; ansic: 1,383,196; asm: 793,408; python: 223,504; objc: 75,364; f90: 60,502; lisp: 33,869; pascal: 15,282; sh: 9,684; perl: 7,453; ml: 4,937; awk: 3,523; makefile: 2,889; javascript: 2,149; xml: 888; fortran: 619; cs: 573
file content (51 lines) | stat: -rw-r--r-- 1,467 bytes parent folder | download | duplicates (33)
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
; RUN: llc -mtriple="x86_64-apple-darwin" -o - -verify-machineinstrs %s

define void @make_wanted() #0 {
entry:
  br i1 undef, label %for.end20, label %for.cond1.preheader.lr.ph

for.cond1.preheader.lr.ph:
  br label %for.body3

for.body3:
  %cmp20.i = icmp eq i32 undef, 0
  %.col.057 = select i1 %cmp20.i, i32 0, i32 undef
  br i1 undef, label %while.cond.i, label %for.body5.lr.ph.i

for.body5.lr.ph.i:
  %0 = sext i32 %.col.057 to i64
  %1 = sub i32 0, %.col.057
  %2 = zext i32 %1 to i64
  %3 = add nuw nsw i64 %2, 1
  %n.vec110 = and i64 %3, 8589934588
  %end.idx.rnd.down111 = add nsw i64 %n.vec110, %0
  br i1 undef, label %middle.block105, label %vector.ph103

vector.ph103:
  br i1 undef, label %middle.block105, label %vector.body104

vector.body104:
  %4 = icmp eq i64 undef, %end.idx.rnd.down111
  br i1 %4, label %middle.block105, label %vector.body104

middle.block105:
  %resume.val114 = phi i64 [ %0, %for.body5.lr.ph.i ], [ %end.idx.rnd.down111, %vector.body104 ], [ %end.idx.rnd.down111, %vector.ph103 ]
  %cmp.n116 = icmp eq i64 undef, %resume.val114
  br i1 %cmp.n116, label %while.cond.i, label %for.body5.i.preheader

for.body5.i.preheader:
  %lcmp.or182 = or i1 undef, undef
  br i1 %lcmp.or182, label %for.body5.i.prol, label %while.cond.i

for.body5.i.prol:
  br i1 undef, label %for.body5.i.prol, label %while.cond.i

while.cond.i:
  br i1 undef, label %while.cond.i, label %if.then

if.then:
  br label %for.body3

for.end20:
  ret void
}