File: loop_partially_in_scop-2.ll

package info (click to toggle)
swiftlang 6.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, 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 (22 lines) | stat: -rw-r--r-- 697 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
; RUN: opt %loadPolly -polly-print-detect -pass-remarks-missed="polly-detect" -disable-output < %s 2>&1| FileCheck %s

; CHECK: remark: <unknown>:0:0: Loop cannot be handled because not all latches are part of loop region.

define void @foo(ptr %str0) {
if.end32:
  br label %while.cond

while.cond:
  %str.1 = phi ptr [%str0, %if.end32], [%incdec.ptr58364, %lor.end], [%incdec.ptr58364, %while.cond]
  %tmp5 = load i8, ptr %str.1, align 1
  %.off367 = add i8 %tmp5, -48
  %tmp6 = icmp ult i8 %.off367, 10
  %incdec.ptr58364 = getelementptr inbounds i8, ptr %str.1, i64 1
  br i1 %tmp6, label %while.cond, label %lor.end

lor.end:
  br i1 false, label %exit, label %while.cond

exit:
  ret void
}