File: scev-canonical-mode.ll

package info (click to toggle)
llvm-toolchain-14 1%3A14.0.6-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,496,180 kB
  • sloc: cpp: 5,593,972; ansic: 986,872; 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,538; xml: 953; cs: 573; fortran: 567
file content (32 lines) | stat: -rw-r--r-- 1,502 bytes parent folder | download | duplicates (9)
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
; PR26529: Check the assumption of IndVarSimplify to do SCEV expansion in literal mode
; instead of CanonicalMode is properly maintained in SCEVExpander::expand.
; RUN: opt -indvars < %s

target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: norecurse nounwind uwtable
define void @ehF() #0 {
entry:
  br i1 undef, label %if.then.i, label %hup.exit

if.then.i:                                        ; preds = %entry
  br i1 undef, label %for.body.lr.ph.i, label %hup.exit

for.body.lr.ph.i:                                 ; preds = %if.then.i
  br label %for.body.i

for.body.i:                                       ; preds = %for.body.i, %for.body.lr.ph.i
  %i.03.i = phi i32 [ 0, %for.body.lr.ph.i ], [ %inc.i, %for.body.i ]
  %k.02.i = phi i32 [ 1, %for.body.lr.ph.i ], [ %inc5.i, %for.body.i ]
  %inc.i = add nsw i32 %i.03.i, 1
  %idxprom.i = sext i32 %i.03.i to i64
  %idxprom2.i = sext i32 %k.02.i to i64
  %inc5.i = add nsw i32 %k.02.i, 1
  br i1 false, label %for.body.i, label %hup.exit

hup.exit:                                         ; preds = %for.body.i, %if.then.i, %entry
  ret void
}

attributes #0 = { norecurse nounwind uwtable "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2" "unsafe-fp-math"="false" "use-soft-float"="false" }