[all-commits] [llvm/llvm-project] 8077d0: [CodeGen] Do not split functions with attr "implic...
Snehasish Kumar via All-commits
all-commits at lists.llvm.org
Wed Apr 21 21:54:25 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8077d0ff5c662dacbc69831a2c5acff10b759c48
https://github.com/llvm/llvm-project/commit/8077d0ff5c662dacbc69831a2c5acff10b759c48
Author: Snehasish Kumar <snehasishk at google.com>
Date: 2021-04-21 (Wed, 21 Apr 2021)
Changed paths:
M llvm/lib/CodeGen/MachineFunctionSplitter.cpp
M llvm/test/CodeGen/X86/machine-function-splitter.ll
Log Message:
-----------
[CodeGen] Do not split functions with attr "implicit-section-name".
The #pragma clang section can be used at a coarse granularity to specify
the section used for bss/data/text/rodata for global objects. When split
functions is enabled, the function may be split into two parts violating
user expectations.
Reference:
https://clang.llvm.org/docs/LanguageExtensions.html#specifying-section-names-for-global-objects-pragma-clang-section
Differential Revision: https://reviews.llvm.org/D101004
More information about the All-commits
mailing list