1 ; RUN: llc -march=hexagon < %s | FileCheck %s
3 ; Remove the unconditional jump to following instruction.
6 ; CHECK-NOT: jump [[L1:.]]
9 define void @test(i32* nocapture %a, i32 %n) nounwind {
14 %arrayidx.phi = phi i32* [ %a, %entry ], [ %arrayidx.inc, %for.body ]
15 %i.02 = phi i32 [ 0, %entry ], [ %inc, %for.body ]
16 %0 = load i32, i32* %arrayidx.phi, align 4
17 %add = add nsw i32 %0, 1
18 store i32 %add, i32* %arrayidx.phi, align 4
19 %inc = add nsw i32 %i.02, 1
20 %exitcond = icmp eq i32 %inc, 100
21 %arrayidx.inc = getelementptr i32, i32* %arrayidx.phi, i32 1
22 br i1 %exitcond, label %for.end, label %for.body