[PATCH] D145490: [GlobalOpt] Collect initializer when building GlobalPart.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 7 05:11:57 PST 2023


fhahn created this revision.
fhahn added reviewers: aeubanks, nikic, kubamracek.
Herald added subscribers: ormris, StephenFan, hiraditya.
Herald added a project: All.
fhahn requested review of this revision.
Herald added a project: LLVM.

Update the code to collect the initializer when collecting the types for
a global, as suggested by @nikic in D144476 <https://reviews.llvm.org/D144476>.

This replaces code which bailed out if *any* part doesn't have an
initializer with a continue to just skip parts which don't have an
initializer.

Depends on D145489 <https://reviews.llvm.org/D145489>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D145490

Files:
  llvm/lib/Transforms/IPO/GlobalOpt.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145490.502997.patch
Type: text/x-patch
Size: 4217 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230307/b4f84797/attachment.bin>


More information about the llvm-commits mailing list