diff options
author | Christudasan Devadasan <Christudasan.Devadasan@amd.com> | 2021-09-15 06:11:07 -0400 |
---|---|---|
committer | Christudasan Devadasan <Christudasan.Devadasan@amd.com> | 2021-09-16 23:13:30 -0400 |
commit | 167ff5280d7fcad731810d5d2bf10561ed2adacc (patch) | |
tree | a16a67b6acd808f18bfee101b97d2db87e62d1c3 /llvm/lib/ExecutionEngine/SectionMemoryManager.cpp | |
parent | e9e1d4751b54126743ed72b1a9178ee51200acf6 (diff) | |
download | llvm-167ff5280d7fcad731810d5d2bf10561ed2adacc.zip llvm-167ff5280d7fcad731810d5d2bf10561ed2adacc.tar.gz llvm-167ff5280d7fcad731810d5d2bf10561ed2adacc.tar.bz2 |
[GlobalOpt] Do not shrink global to bool for an unfavorable AS
Do not call `TryToShrinkGlobalToBoolean` for address spaces
that don't allow initializers. It inserts an initializer value
while shrinking to bool. Used the target hook introduced with
D109337 to skip this call for the restricted address spaces.
Reviewed By: tra
Differential Revision: https://reviews.llvm.org/D109823
Diffstat (limited to 'llvm/lib/ExecutionEngine/SectionMemoryManager.cpp')
0 files changed, 0 insertions, 0 deletions