brintos

brintos / llvm-project-archived public Read only

0
0
Text · 902 B · 770f723 Raw
28 lines · plain
1; RUN: opt -loop-reduce -S < %s | FileCheck %s2;3; Test SCEVExpander reusing a phi->gep->phi IV when SCEV "wrongly"4; reports the expression as an IntegerTy.5 6target triple = "x86_64-apple-darwin"7 8; CHECK-LABEL: @test(9; CHECK: phi10; CHECK-NOT: phi11define void @test(i32 %rowStride, i1 %arg) ssp align 2 {12entry:13  %cond = select i1 %arg, i32 %rowStride, i32 414  br label %for.end15 16for.end.critedge:                                 ; preds = %for.end17  br label %for.end18 19for.end:                                          ; preds = %for.end.critedge, %entry20  br i1 %arg, label %for.body83, label %for.end.critedge21 22for.body83:                                       ; preds = %for.body83, %for.end23  %ptr.0157 = phi ptr [ %add.ptr96, %for.body83 ], [ null, %for.end ]24  store i8 undef, ptr %ptr.0157, align 125  %add.ptr96 = getelementptr inbounds i8, ptr %ptr.0157, i32 %cond26  br label %for.body8327}28