brintos

brintos / llvm-project-archived public Read only

0
0
Text · 531 B · 495644c Raw
25 lines · plain
1; RUN: llc -o - %s | FileCheck %s2target triple = "x86_64--"3 4; Make sure we do not crash in tail duplication when finding no successor of a5; block.6; CHECK-LABEL: func:7; CHECK: testb8; CHECK: je9; CHECK: retq10; CHECK: jmp11define hidden void @func(i1 %arg) {12entry:13  br i1 %arg, label %for.cond.cleanup, label %while.cond.preheader14 15while.cond.preheader:16  br label %while.cond17 18for.cond.cleanup:19  ret void20 21while.cond:22  %cmp.i202 = icmp eq ptr undef, undef23  br i1 %cmp.i202, label %while.cond.preheader, label %while.cond24}25