File: pr-48150.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 (52 lines) | stat: -rw-r--r-- 1,839 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
; RUN: opt -passes=loop-load-elim -S < %s | FileCheck %s

target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128-ni:1-p2:32:8:8:32-ni:2"
target triple = "x86_64-unknown-linux-gnu"

define void @test() {
; CHECK-LABEL: test
bb:
  br i1 undef, label %bb1, label %bb2

bb1:                                              ; preds = %bb
  ret void

bb2:                                              ; preds = %bb29, %bb
  %tmp = phi i64 [ %tmp30, %bb29 ], [ 2, %bb ]
  %tmp3 = add nuw nsw i64 %tmp, 99
  br label %bb4

bb4:                                              ; preds = %bb4, %bb2
  %tmp5 = phi i64 [ %tmp9, %bb4 ], [ 1, %bb2 ]
  %tmp6 = phi i32 [ %tmp10, %bb4 ], [ undef, %bb2 ]
  %tmp7 = trunc i64 %tmp5 to i32
  %tmp8 = add i32 %tmp6, %tmp7
  %tmp9 = add nuw nsw i64 %tmp5, 1
  %tmp10 = add i32 %tmp8, -1
  %tmp11 = icmp ugt i64 %tmp3, %tmp5
  br i1 %tmp11, label %bb4, label %bb12

bb12:                                             ; preds = %bb4
  %tmp13 = sext i32 %tmp8 to i64
  %tmp14 = add i64 0, %tmp13
  %tmp15 = mul i64 %tmp14, undef
  %tmp16 = add i64 %tmp15, 83
  %tmp17 = and i64 %tmp16, -2
  br label %bb18

bb18:                                             ; preds = %bb18, %bb12
  %tmp19 = phi i64 [ 0, %bb12 ], [ %tmp27, %bb18 ]
  %tmp20 = add i64 %tmp19, 3
  %tmp21 = add i64 %tmp19, 5
  %tmp22 = getelementptr inbounds i32, ptr addrspace(1) undef, i64 %tmp20
  %tmp24 = load <2 x i32>, ptr addrspace(1) %tmp22, align 4
  %tmp25 = getelementptr inbounds i32, ptr addrspace(1) undef, i64 %tmp21
  store <2 x i32> undef, ptr addrspace(1) %tmp25, align 4
  %tmp27 = add i64 %tmp19, 2
  %tmp28 = icmp eq i64 %tmp27, %tmp17
  br i1 %tmp28, label %bb29, label %bb18

bb29:                                             ; preds = %bb18
  %tmp30 = add nuw nsw i64 %tmp, 1
  br label %bb2
}