File: scev-backedgetaken.ll

package info (click to toggle)
llvm-toolchain-14 1%3A14.0.6-20
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,496,436 kB
  • sloc: cpp: 5,593,990; ansic: 986,873; asm: 585,869; python: 184,223; objc: 72,530; lisp: 31,119; f90: 27,793; javascript: 9,780; pascal: 9,762; sh: 9,482; perl: 7,468; ml: 5,432; awk: 3,523; makefile: 2,547; xml: 953; cs: 573; fortran: 567
file content (49 lines) | stat: -rw-r--r-- 2,127 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
46
47
48
49
; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s
;
; llvm.org/PR48422
; Use of ScalarEvolution in Codegen not possible because DominatorTree is not updated.
;
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"

define dso_local void @func(i1 %b, i1 %p3, [14 x i32]* %d) local_unnamed_addr {
entry:
  %conv = zext i1 %b to i16
  %add = select i1 %p3, i32 21, i32 20
  br label %for.body.us.us

for.body.us.us:
  %e.062.us.us = phi i16 [ %inc.us.us, %omp.inner.for.cond.simd.if.end.loopexit_crit_edge.us.us ], [ %conv, %entry ]
  %idxprom.us.us = sext i16 %e.062.us.us to i64
  br i1 %b, label %omp.inner.for.body.us.us.us.preheader, label %omp.inner.for.body.us63.us.preheader

omp.inner.for.body.us63.us.preheader:
  %arrayidx25.us.le71.us = getelementptr inbounds [14 x i32], [14 x i32]* %d, i64 %idxprom.us.us, i64 0
  %0 = load i32, i32* %arrayidx25.us.le71.us, align 4
  br label %omp.inner.for.cond.simd.if.end.loopexit_crit_edge.us.us

omp.inner.for.body.us.us.us.preheader:
  %arrayidx25.us.le.us.us = getelementptr inbounds [14 x i32], [14 x i32]* %d, i64 %idxprom.us.us, i64 0
  %1 = load i32, i32* %arrayidx25.us.le.us.us, align 4
  %conv27.us.le.us.us = select i1 undef, i16 0, i16 undef
  br label %omp.inner.for.cond.simd.if.end.loopexit_crit_edge.us.us

omp.inner.for.cond.simd.if.end.loopexit_crit_edge.us.us:
  %conv27.lcssa.us.us = phi i16 [ undef, %omp.inner.for.body.us63.us.preheader ], [ %conv27.us.le.us.us, %omp.inner.for.body.us.us.us.preheader ]
  %inc.us.us = add i16 %e.062.us.us, 1
  %conv2.us.us = sext i16 %inc.us.us to i32
  %cmp.us.us = icmp sgt i32 %add, %conv2.us.us
  br i1 %cmp.us.us, label %for.body.us.us, label %for.cond.cleanup.loopexit

for.cond.cleanup.loopexit:
  ret void
}


; CHECK-LABEL: @func(
; CHECK:         polly.stmt.omp.inner.for.body.us.us.us.preheader:
; CHECK:         load i32, i32* %scevgep, align 4, !alias.scope !0, !noalias !3

; CHECK:       !0 = !{!1}
; CHECK:       !1 = distinct !{!1, !2, !"polly.alias.scope.MemRef_d"}
; CHECK:       !2 = distinct !{!2, !"polly.alias.scope.domain"}
; CHECK:       !3 = !{}