12 lines · plain
1## Verifies that llvm-bolt reordering heuristic does not allocate a BB before the2## entry point even if there is a hot edge from a block to entry point3 4RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown %S/Inputs/entry.s -o %t.o5RUN: link_fdata %S/Inputs/entry.s %t.o %t.fdata --nmtool llvm-nm6RUN: llvm-strip --strip-unneeded %t.o7RUN: %clang %cflags %t.o -o %t.exe -Wl,-q -nostdlib8RUN: llvm-bolt %t.exe --data %t.fdata -o %t.null --reorder-blocks=normal \9RUN: --funcs=_start --print-reordered --sequential-disassembly | FileCheck %s10 11CHECK: BB Layout : .LBB00, {{.*}}12