annotate llvm/test/Transforms/IndVarSimplify/pr24783.ll @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 ; RUN: opt -S -indvars < %s | FileCheck %s
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 target datalayout = "E-m:e-i64:64-n32:64"
anatofuz
parents:
diff changeset
4 target triple = "powerpc64-unknown-linux-gnu"
anatofuz
parents:
diff changeset
5
anatofuz
parents:
diff changeset
6 define void @f(i32* %end.s, i8** %loc, i32 %p) {
anatofuz
parents:
diff changeset
7 ; CHECK-LABEL: @f(
anatofuz
parents:
diff changeset
8 entry:
anatofuz
parents:
diff changeset
9 %end = getelementptr inbounds i32, i32* %end.s, i32 %p
anatofuz
parents:
diff changeset
10 %init = bitcast i32* %end.s to i8*
anatofuz
parents:
diff changeset
11 br label %while.body.i
anatofuz
parents:
diff changeset
12
anatofuz
parents:
diff changeset
13 while.body.i:
anatofuz
parents:
diff changeset
14 %ptr = phi i8* [ %ptr.inc, %while.body.i ], [ %init, %entry ]
anatofuz
parents:
diff changeset
15 %ptr.inc = getelementptr inbounds i8, i8* %ptr, i8 1
anatofuz
parents:
diff changeset
16 %ptr.inc.cast = bitcast i8* %ptr.inc to i32*
anatofuz
parents:
diff changeset
17 %cmp.i = icmp eq i32* %ptr.inc.cast, %end
anatofuz
parents:
diff changeset
18 br i1 %cmp.i, label %loop.exit, label %while.body.i
anatofuz
parents:
diff changeset
19
anatofuz
parents:
diff changeset
20 loop.exit:
anatofuz
parents:
diff changeset
21 ; CHECK: loop.exit:
anatofuz
parents:
diff changeset
22 ; CHECK: [[END_BCASTED:%[a-z0-9]+]] = bitcast i32* %end to i8*
anatofuz
parents:
diff changeset
23 ; CHECK: store i8* [[END_BCASTED]], i8** %loc
anatofuz
parents:
diff changeset
24 %ptr.inc.lcssa = phi i8* [ %ptr.inc, %while.body.i ]
anatofuz
parents:
diff changeset
25 store i8* %ptr.inc.lcssa, i8** %loc
anatofuz
parents:
diff changeset
26 ret void
anatofuz
parents:
diff changeset
27 }