1## This test checks that the unreachable unconditional branch is removed 2## if it is located after return instruction. 3 4# REQUIRES: system-linux 5 6# RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown \ 7# RUN: %s -o %t.o 8# RUN: %clang %cflags %t.o -o %t.exe -Wl,-q 9# RUN: llvm-bolt %t.exe -o %t.bolt | FileCheck %s 10 11# CHECK: UCE removed 1 blocks 12 13 .text 14 .globl main 15 .type main, %function 16 .size main, .Lend-main 17main: 18 je 1f 19 retq 20 jmp main 211: 22 movl $0x2, %ebx 23 retq 24.Lend: 25