[llvm] [BasicBlockSections] Apply path cloning with -basic-block-sections. (PR #68860)

Sriraman Tallam via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 27 10:52:59 PDT 2023


================
@@ -0,0 +1,111 @@
+;; Tests for path cloning with -basic-block-sections.
+
+declare void @effect(i32 zeroext)
+
+;; Test valid application of path cloning.
+; RUN: echo 'v1' > %t1
+; RUN: echo 'f foo' >> %t1
+; RUN: echo 'p 0 3 5' >> %t1
+; RUN: echo 'c 0 3.1 5.1 1 2 3 4 5' >> %t1
+; RUN: llc < %s -mtriple=x86_64-pc-linux -O0 -function-sections -enable-basic-block-path-cloning -basic-block-sections=%t1 | FileCheck %s --check-prefixes=PATH1
+; RUN: llc < %s -mtriple=x86_64-pc-linux -O0 -function-sections -enable-basic-block-path-cloning -basic-block-sections=%t1 -stop-after=bb-path-cloning | FileCheck %s --check-prefix=PATH1MIR
+; RUN: echo 'v1' > %t2
----------------
tmsri wrote:

This still looks like it can be split into two tests, PATH1* and PATH2*.  

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


More information about the llvm-commits mailing list