[all-commits] [llvm/llvm-project] 84870c: [GlobalOpt] Collect initializer when building Glob...
Florian Hahn via All-commits
all-commits at lists.llvm.org
Sun Mar 19 13:54:18 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 84870c4abbacfb97ca025c9219b724f381611380
https://github.com/llvm/llvm-project/commit/84870c4abbacfb97ca025c9219b724f381611380
Author: Florian Hahn <flo at fhahn.com>
Date: 2023-03-19 (Sun, 19 Mar 2023)
Changed paths:
M llvm/lib/Transforms/IPO/GlobalOpt.cpp
Log Message:
-----------
[GlobalOpt] Collect initializer when building GlobalPart.
Update the code to collect the initializer when collecting the types for
a global, as suggested by @nikic in 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.
Reviewed By: nikic
Differential Revision: https://reviews.llvm.org/D145490
More information about the All-commits
mailing list