File: scop_expander_insert_point.ll

package info (click to toggle)
swiftlang 6.1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,791,604 kB
  • sloc: cpp: 9,901,740; ansic: 2,201,431; asm: 1,091,827; python: 308,252; objc: 82,166; f90: 80,126; lisp: 38,358; pascal: 25,559; sh: 20,429; ml: 5,058; perl: 4,745; makefile: 4,484; awk: 3,535; javascript: 3,018; xml: 918; fortran: 664; cs: 573; ruby: 396
file content (45 lines) | stat: -rw-r--r-- 1,759 bytes parent folder | download | duplicates (4)
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
; RUN: opt %loadNPMPolly -passes=polly-codegen -S \
; RUN: -polly-invariant-load-hoisting=true < %s | FileCheck %s
;
; CHECK:      entry:
; CHECK-NEXT:   %outvalue.141.phiops = alloca i64
; CHECK-NEXT:   %.preload.s2a = alloca i8
; CHECK-NEXT:   %umax = call i32 @llvm.umax.i32(i32 undef, i32 1)
; CHECK-NEXT:   %divpolly = sdiv i32 undef, %umax
; CHECK-NEXT:   %div = sdiv i32 undef, undef
;
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"

; Function Attrs: nounwind uwtable
define void @int_downsample() #0 {
entry:
  %div = sdiv i32 undef, undef
  br label %for.cond10.preheader.lr.ph

for.cond10.preheader.lr.ph:                       ; preds = %entry
  br label %for.body17.lr.ph

for.body17.lr.ph:                                 ; preds = %for.end22, %for.cond10.preheader.lr.ph
  %outcol_h.048 = phi i32 [ 0, %for.cond10.preheader.lr.ph ], [ %add31, %for.end22 ]
  %0 = load ptr, ptr undef
  %idx.ext = zext i32 %outcol_h.048 to i64
  %add.ptr = getelementptr inbounds i8, ptr %0, i64 %idx.ext
  br label %for.body17

for.body17:                                       ; preds = %for.body17, %for.body17.lr.ph
  %outvalue.141 = phi i64 [ undef, %for.body17.lr.ph ], [ %add19, %for.body17 ]
  %inptr.040 = phi ptr [ %add.ptr, %for.body17.lr.ph ], [ undef, %for.body17 ]
  %1 = load i8, ptr %inptr.040
  %add19 = mul nsw i64 0, %outvalue.141
  br i1 false, label %for.body17, label %for.end22

for.end22:                                        ; preds = %for.body17
  %add31 = add i32 %outcol_h.048, %div
  br i1 undef, label %for.body17.lr.ph, label %for.end32

for.end32:                                        ; preds = %for.end22
  br label %for.end36

for.end36:                                        ; preds = %for.end32
  ret void
}