Skip to content

Commit 51fda63

Browse files
committed
InitializeStaticGlobals: rewrite the pass to better optimize InlineArrays
Instead of looking for a single store to the global in a global-init function, build a GlobalInitValue tree. This is a data structure representing the init value of the global. It can handle complex InlineArray initializations, like `init(repeating:)`. rdar://150859232
1 parent d7580e4 commit 51fda63

File tree

4 files changed

+513
-299
lines changed

4 files changed

+513
-299
lines changed

0 commit comments

Comments
 (0)