[llvm] [BasicBlockSections] Always keep the entry block in the beginning of the function. (PR #74696)

Rahman Lavaee via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 16 13:59:43 PST 2024


================
@@ -5,10 +5,6 @@
 ; RUN: echo '!!1' >> %t1
 ; RUN: not --crash llc < %s -O0 -mtriple=x86_64-pc-linux -function-sections -basic-block-sections=%t1 2>&1 | FileCheck %s --check-prefix=CHECK-ERROR1
 ; CHECK-ERROR1: LLVM ERROR: invalid profile {{.*}} at line 3: duplicate basic block id found '1'
-; RUN: echo '!dummy1' > %t2
-; RUN: echo '!!4 0' >> %t2
-; RUN: not --crash llc < %s -O0 -mtriple=x86_64-pc-linux -function-sections -basic-block-sections=%t2 2>&1 | FileCheck %s --check-prefix=CHECK-ERROR2
-; CHECK-ERROR2: LLVM ERROR: invalid profile {{.*}} at line 2: entry BB (0) does not begin a cluster
----------------
rlavaee wrote:

Sure. Will do this in a separate PR.

https://github.com/llvm/llvm-project/pull/74696


More information about the llvm-commits mailing list