File: pr22856.ll

package info (click to toggle)
llvm-toolchain-20 1%3A20.1.6-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,111,304 kB
  • sloc: cpp: 7,438,677; ansic: 1,393,822; asm: 1,012,926; python: 241,650; f90: 86,635; objc: 75,479; lisp: 42,144; pascal: 17,286; sh: 10,027; ml: 5,082; perl: 4,730; awk: 3,523; makefile: 3,349; javascript: 2,251; xml: 892; fortran: 672
file content (33 lines) | stat: -rw-r--r-- 958 bytes parent folder | download | duplicates (6)
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-reduce -verify < %s

target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64--linux-gnu"

define void @unbounded(i1 %arg) {

block_A:
  %0 = sext i32 undef to i64
  br i1 %arg, label %block_F, label %block_G

block_C:                ; preds = %block_F
  br i1 %arg, label %block_D, label %block_E

block_D:                  ; preds = %block_D, %block_C
  br i1 %arg, label %block_E, label %block_D

block_E:              ; preds = %block_D, %block_C
  %iv2 = phi i64 [ %4, %block_D ], [ %4, %block_C ]
  %1 = add nsw i32 %iv1, 1
  %2 = icmp eq i32 %1, undef
  br i1 %2, label %block_G, label %block_F

block_F:          ; preds = %block_E, %block_A
  %iv3 = phi i64 [ %iv2, %block_E ], [ %0, %block_A ]
  %iv1 = phi i32 [ %1, %block_E ], [ undef, %block_A ]
  %3 = add nsw i64 %iv3, 2
  %4 = add nsw i64 %iv3, 1
  br label %block_C

block_G:                              ; preds = %block_E, %block_A
  ret void
}