[llvm] [BOLT] Always run CheckLargeFunctions in non-relocation mode (PR #80922)
Amir Ayupov via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 8 14:04:25 PST 2024
================
@@ -3631,6 +3631,7 @@ void RewriteInstance::mapCodeSections(BOLTLinker::SectionMapper MapSection) {
Function.setImageAddress(FuncSection->getAllocAddress());
Function.setImageSize(FuncSection->getOutputSize());
if (Function.getImageSize() > Function.getMaxSize()) {
+ assert(!BC->isX86() && "Unexpected large function.");
----------------
aaupov wrote:
@yota9, @mtvec – would it be correct to check if the function has constant islands instead?
https://github.com/llvm/llvm-project/pull/80922
More information about the llvm-commits
mailing list