brintos

brintos / llvm-project-archived public Read only

0
0
Text · 555 B · f5c2054 Raw
24 lines · plain
1; RUN: llc -mtriple=hexagon -mcpu=hexagonv5 -O2 -disable-block-placement=0 < %s | FileCheck %s2 3; Test that there is no redundant register assignment in the hardware loop4; preheader.5 6; CHECK-NOT: r{{.*}} = #57 8@g = external global i329 10define void @foo() #0 {11entry:12  br i1 undef, label %if.end38, label %for.body13 14for.body:15  %loopIdx.051 = phi i32 [ %inc, %for.body ], [ 0, %entry ]16  store i32 1, ptr @g, align 417  %inc = add i32 %loopIdx.051, 118  %cmp9 = icmp ult i32 %inc, 519  br i1 %cmp9, label %for.body, label %if.end3820 21if.end38:22  ret void23}24