[all-commits] [llvm/llvm-project] 3f4e02: [ThinLTO] Don't convert functions to declarations ...
Shilei Tian via All-commits
all-commits at lists.llvm.org
Sat Apr 12 11:21:54 PDT 2025
Branch: refs/heads/users/shiltian/dont-convert-to-decl-if-force-import-all
Home: https://github.com/llvm/llvm-project
Commit: 3f4e02493dd3877d95a3a0e0372694991b9de6f4
https://github.com/llvm/llvm-project/commit/3f4e02493dd3877d95a3a0e0372694991b9de6f4
Author: Shilei Tian <i at tianshilei.me>
Date: 2025-04-12 (Sat, 12 Apr 2025)
Changed paths:
M llvm/lib/LTO/LTO.cpp
M llvm/lib/Transforms/IPO/FunctionImport.cpp
A llvm/test/ThinLTO/AMDGPU/Inputs/in-f1.ll
A llvm/test/ThinLTO/AMDGPU/force-import-all.ll
A llvm/test/ThinLTO/AMDGPU/lit.local.cfg
Log Message:
-----------
[ThinLTO] Don't convert functions to declarations if `force-import-all` is enabled
On one hand, we intend to `force-import-all` functions when the option is
enabled. On the other hand, we currently drop definitions of some functions and
convert them to declarations, which contradicts this intent.
With this PR, functions will no longer be converted to declarations when
`force-import-all` is enabled.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list