File: parameter_with_constant_factor_in_add.ll

package info (click to toggle)
swiftlang 6.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 2,519,992 kB
  • sloc: cpp: 9,107,863; ansic: 2,040,022; asm: 1,135,751; python: 296,500; objc: 82,456; f90: 60,502; lisp: 34,951; pascal: 19,946; sh: 18,133; perl: 7,482; ml: 4,937; javascript: 4,117; makefile: 3,840; awk: 3,535; xml: 914; fortran: 619; cs: 573; ruby: 573
file content (52 lines) | stat: -rw-r--r-- 2,179 bytes parent folder | download | duplicates (5)
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 %loadPolly -polly-print-scops -disable-output < %s | FileCheck %s
;
; Check that the access function of the store is simple and concise
;
; CHECK: p0: {0,+,(-1 + (sext i32 (-1 * %smax188) to i64))<nsw>}<%for.cond261.preheader>
;
; CHECK:      MustWriteAccess := [Reduction Type: NONE] [Scalar: 0]
; CHECK-NEXT:   [p_0] -> { Stmt_for_body276[i0] -> MemRef_A[p_0] };
;
; ModuleID = 'bugpoint-reduced-simplified.bc'
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"

; Function Attrs: nounwind uwtable
define void @BPredPartitionCost(ptr %A) #0 {
entry:
  %curr_blk = alloca [16 x [16 x i32]], align 16
  br label %for.cond261.preheader.lr.ph

for.cond261.preheader.lr.ph:                      ; preds = %entry
  %smax188 = select i1 undef, i32 undef, i32 -9
  %0 = sub i32 0, %smax188
  %1 = sext i32 %0 to i64
  %2 = add i64 %1, -1
  br label %for.cond261.preheader

for.cond261.preheader:                            ; preds = %for.inc299, %for.cond261.preheader.lr.ph
  %indvars.iv189 = phi i64 [ 0, %for.cond261.preheader.lr.ph ], [ %indvars.iv.next190, %for.inc299 ]
  br i1 undef, label %for.cond273.preheader, label %for.inc299

for.cond273.preheader:                            ; preds = %for.cond261.preheader
  br label %for.body276

for.body276:                                      ; preds = %for.body276, %for.cond273.preheader
  %indvars.iv = phi i64 [ 0, %for.cond273.preheader ], [ %indvars.iv.next, %for.body276 ]
  %3 = add nsw i64 0, %indvars.iv189
  %arrayidx282 = getelementptr inbounds [16 x [16 x i32]], ptr %curr_blk, i64 0, i64 %3, i64 0
  %4 = load i32, ptr %arrayidx282, align 4
  %arridx = getelementptr i32, ptr %A, i64 %3
  store i32 0, ptr %arridx, align 4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  br i1 false, label %for.body276, label %for.end291

for.end291:                                       ; preds = %for.body276
  ret void

for.inc299:                                       ; preds = %for.cond261.preheader
  %indvars.iv.next190 = add i64 %indvars.iv189, %2
  br i1 undef, label %for.cond261.preheader, label %if.end302

if.end302:                                        ; preds = %for.inc299
  ret void
}