[llvm] [BasicBlockSections] Always keep the entry block in the beginning of the function. (PR #74696)
Sriraman Tallam via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 15 14:57:35 PST 2023
================
@@ -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
----------------
tmsri wrote:
This test is pretty large, please split this into multiple tests, can be done in a separate patch.
https://github.com/llvm/llvm-project/pull/74696
More information about the llvm-commits
mailing list