brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.1 KiB · 8bed0e7 Raw
66 lines · plain
1; RUN: llc -mtriple=hexagon -mcpu=hexagonv5 -verify-machineinstrs < %s2 3; Test that the name rewriter code doesn't chase the Phi operands for4; Phis that do not occur in the loop that is being pipelined.5 6define void @test(i32 %srcStride) local_unnamed_addr #0 {7entry:8  br label %for.body9 10for.body:11  %add.ptr3.pn = phi ptr [ undef, %entry ], [ %src4.0394, %for.end ]12  %src2.0390 = phi ptr [ undef, %entry ], [ %add.ptr3.pn, %for.end ]13  %src4.0394 = getelementptr inbounds i8, ptr %add.ptr3.pn, i32 %srcStride14  %sri414 = load i8, ptr undef, align 115  br i1 undef, label %for.body9.epil, label %for.body9.preheader.new16 17for.body9.preheader.new:18  br label %for.body9.epil19 20for.body9.epil:21  %inc.sink385.epil = phi i32 [ %add17.epil, %for.body9.epil ], [ 2, %for.body ], [ undef, %for.body9.preheader.new ]22  %sr420.epil = phi i8 [ undef, %for.body9.epil ], [ %sri414, %for.body ], [ undef, %for.body9.preheader.new ]23  %sr421.epil = phi i8 [ %sr420.epil, %for.body9.epil ], [ undef, %for.body ], [ undef, %for.body9.preheader.new ]24  %sr422.epil = phi i8 [ %sr421.epil, %for.body9.epil ], [ 0, %for.body ], [ undef, %for.body9.preheader.new ]25  %epil.iter = phi i32 [ %epil.iter.sub, %for.body9.epil ], [ undef, %for.body9.preheader.new ], [ undef, %for.body ]26  %add17.epil = add nuw i32 %inc.sink385.epil, 127  %add21.epil = add i32 %inc.sink385.epil, 228  %arrayidx22.epil = getelementptr inbounds i8, ptr undef, i32 %add21.epil29  %conv27.epil = zext i8 %sr422.epil to i3230  %0 = load i8, ptr null, align 131  %conv61.epil = zext i8 %0 to i3232  %arrayidx94.epil = getelementptr inbounds i8, ptr %src4.0394, i32 %add17.epil33  %1 = load i8, ptr %arrayidx94.epil, align 134  %add35.epil = add i32 0, %conv27.epil35  %add39.epil = add i32 %add35.epil, 036  %add43.epil = add i32 %add39.epil, 037  %add47.epil = add i32 %add43.epil, 038  %add51.epil = add i32 %add47.epil, 039  %add54.epil = add i32 %add51.epil, 040  %add58.epil = add i32 %add54.epil, 041  %add62.epil = add i32 %add58.epil, %conv61.epil42  %add66.epil = add i32 %add62.epil, 043  %add70.epil = add i32 %add66.epil, 044  %add73.epil = add i32 %add70.epil, 045  %add77.epil = add i32 %add73.epil, 046  %add81.epil = add i32 %add77.epil, 047  %add85.epil = add i32 %add81.epil, 048  %add89.epil = add i32 %add85.epil, 049  %add92.epil = add i32 %add89.epil, 050  %add96.epil = add i32 %add92.epil, 051  %add100.epil = add i32 %add96.epil, 052  %mul.epil = mul nsw i32 %add100.epil, 262153  %add101.epil = add nsw i32 %mul.epil, 3276854  %shr369.epil = lshr i32 %add101.epil, 1655  %conv102.epil = trunc i32 %shr369.epil to i856  store i8 %conv102.epil, ptr undef, align 157  %epil.iter.sub = add i32 %epil.iter, -158  %epil.iter.cmp = icmp eq i32 %epil.iter.sub, 059  br i1 %epil.iter.cmp, label %for.end, label %for.body9.epil60 61for.end:62  br label %for.body63}64 65attributes #0 = { norecurse nounwind "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="hexagonv5" "unsafe-fp-math"="false" "use-soft-float"="false" }66