Commit Graph

6 Commits

Author SHA1 Message Date
eeckstein
abcb0d60f4 Merge pull request #77805 from eeckstein/sil-printer2
SILPrinter: don't print operand types in static initializers of globals
2024-12-02 07:13:24 +01:00
Erik Eckstein
6a0b7d1f8c ObjectOutliner: create outlined arrays as let variables
This will allow load-simplification to replace a load of such an array.
2024-11-28 09:40:12 +01:00
Erik Eckstein
a1334973c9 SILPrinter: don't print operand types in static initializers of globals
This was missing from https://github.com/swiftlang/swift/pull/77763
2024-11-22 15:19:25 +01:00
Erik Eckstein
4284dc10d0 Optimizer: implement the ObjectOutliner pass in Swift 2023-05-22 15:34:26 +02:00
Erik Eckstein
90d825fc69 tests: fix command line in SILOptimizer/global-functionptr.swift 2021-02-17 21:29:00 +01:00
Erik Eckstein
f45855d2aa IRGen: always ensure that a function has a IRGenModule for emission
In case a function is only referenced from a global without a declaration (e.g. an outlined global), we could end up with a null IRGenModule for the function (with multithreaded compilation). In this case, just use the primary IGM.
This fixes a IRGen crash, introduced with https://github.com/apple/swift/pull/35780

rdar://74358251
2021-02-16 22:27:39 +01:00