1 ; RUN: opt < %s -passes=loop-vectorize -S | FileCheck %s
3 ; getDemandedBits() is called on the pointer-typed GEP instruction here.
4 ; Only make sure we do not crash.
7 define void @test(ptr %ptr, ptr %ptr_end) {
12 %ptr2 = phi ptr [ %ptr3, %loop ], [ %ptr, %start ]
13 %x = sext i8 undef to i64
14 %ptr3 = getelementptr inbounds i8, ptr %ptr2, i64 1
15 %cmp = icmp ult ptr %ptr3, %ptr_end
16 br i1 %cmp, label %loop, label %end