brintos

brintos / llvm-project-archived public Read only

0
0
Text · 430 B · 747d4d3 Raw
18 lines · plain
1; RUN: llc -mtriple=hexagon < %s2; REQUIRES: asserts3; Check that the early if-conversion does not predicate block1 (where the4; join block has a phi node of type i1).5 6define i1 @foo(i32 %x, ptr %p) {7entry:8  %c = icmp sgt i32 %x, 09  %c1 = icmp sgt i32 %x, 1010  br i1 %c, label %block2, label %block111block1:12  store i32 1, ptr %p, align 413  br label %block214block2:15  %b = phi i1 [ 0, %entry ], [ %c1, %block1 ]16  ret i1 %b17}18