[PATCH] D155730: [PowerPC] Add a pass to merge all of the constant globals into one pool.
Stefan Pintilie via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 19 10:54:46 PDT 2023
stefanp created this revision.
stefanp added reviewers: nemanjai, lei, amyk.
Herald added subscribers: steven.zhang, shchenz, mgrang, kbarton, hiraditya.
Herald added a project: All.
stefanp requested review of this revision.
Herald added a project: LLVM.
On PowerPC the number of TOC entries must be kept low for large
applications. In order to reduce the number of global strings we can
pool the strings into one structure and then access them as the base
address of that structure plus some offset.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D155730
Files:
llvm/lib/Target/PowerPC/CMakeLists.txt
llvm/lib/Target/PowerPC/PPC.h
llvm/lib/Target/PowerPC/PPCMergeStringPool.cpp
llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
llvm/test/CodeGen/PowerPC/stringpool.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155730.542110.patch
Type: text/x-patch
Size: 52115 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230719/71767c85/attachment.bin>
More information about the llvm-commits
mailing list