1 ; RUN: opt -S -loop-vectorize < %s | FileCheck %s
2 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
10 %0 = phi {}* [ %3, %middle ], [ inttoptr (i64 0 to {}*), %entry-block ]
11 %1 = bitcast {}* %0 to i8*
12 %2 = getelementptr i8, i8* %1, i64 1
13 %3 = bitcast i8* %2 to {}*
14 %4 = icmp eq i8* %2, undef
15 br i1 %4, label %exit, label %middle
17 ; CHECK: %[[phi:.*]] = phi {}* [ %3, %middle ], [ null, %entry-block ]
18 ; CHECK-NEXT: %[[bc1:.*]] = bitcast {}* %[[phi]] to i8*
19 ; CHECK-NEXT: %[[gep:.*]] = getelementptr i8, i8* %[[bc1]], i64 1
20 ; CHECK-NEXT: %[[bc2:.*]] = bitcast i8* %[[gep]] to {}*
21 ; CHECK-NEXT: %[[cmp:.*]] = icmp eq i8* %[[gep]], undef
22 ; CHECK-NEXT: br i1 %[[cmp]],