1; RUN: llc -disable-fp-elim -relocation-model=pic < %s 2; RUN: llc -disable-fp-elim -relocation-model=pic -O0 -pre-RA-sched=source < %s | FileCheck %s --check-prefix=SOURCE-SCHED 3target triple = "armv6-apple-ios" 4 5; Reduced from 177.mesa. This test causes a live range split before an LDR_POST instruction. 6; That requires leaveIntvBefore to be very accurate about the redefined value number. 7define internal void @sample_nearest_3d(i8* nocapture %tObj, i32 %n, float* nocapture %s, float* nocapture %t, float* nocapture %u, float* nocapture %lambda, i8* nocapture %red, i8* nocapture %green, i8* nocapture %blue, i8* nocapture %alpha) nounwind ssp { 8entry: 9 br i1 undef, label %for.end, label %for.body.lr.ph 10 11for.body.lr.ph: ; preds = %entry 12 br label %for.body 13 14for.body: ; preds = %for.body, %for.body.lr.ph 15; SOURCE-SCHED: ldr 16; SOURCE-SCHED: ldr 17; SOURCE-SCHED: add 18; SOURCE-SCHED: ldr 19; SOURCE-SCHED: add 20; SOURCE-SCHED: ldr 21; SOURCE-SCHED: add 22; SOURCE-SCHED: ldr 23; SOURCE-SCHED: add 24; SOURCE-SCHED: str 25; SOURCE-SCHED: str 26; SOURCE-SCHED: str 27; SOURCE-SCHED: str 28; SOURCE-SCHED: ldr 29; SOURCE-SCHED: bl 30; SOURCE-SCHED: add 31; SOURCE-SCHED: ldr 32; SOURCE-SCHED: cmp 33; SOURCE-SCHED: bne 34 %i.031 = phi i32 [ 0, %for.body.lr.ph ], [ %0, %for.body ] 35 %arrayidx11 = getelementptr float, float* %t, i32 %i.031 36 %arrayidx15 = getelementptr float, float* %u, i32 %i.031 37 %arrayidx19 = getelementptr i8, i8* %red, i32 %i.031 38 %arrayidx22 = getelementptr i8, i8* %green, i32 %i.031 39 %arrayidx25 = getelementptr i8, i8* %blue, i32 %i.031 40 %arrayidx28 = getelementptr i8, i8* %alpha, i32 %i.031 41 %tmp12 = load float, float* %arrayidx11, align 4 42 tail call fastcc void @sample_3d_nearest(i8* %tObj, i8* undef, float undef, float %tmp12, float undef, i8* %arrayidx19, i8* %arrayidx22, i8* %arrayidx25, i8* %arrayidx28) 43 %0 = add i32 %i.031, 1 44 %exitcond = icmp eq i32 %0, %n 45 br i1 %exitcond, label %for.end, label %for.body 46 47for.end: ; preds = %for.body, %entry 48 ret void 49} 50 51declare fastcc void @sample_3d_nearest(i8* nocapture, i8* nocapture, float, float, float, i8* nocapture, i8* nocapture, i8* nocapture, i8* nocapture) nounwind ssp 52 53