Commit 51fda63
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://1508592321 parent d7580e4 commit 51fda63
File tree
4 files changed
+513
-299
lines changed- SwiftCompilerSources/Sources/Optimizer/FunctionPasses
- test/SILOptimizer
4 files changed
+513
-299
lines changed
0 commit comments