Commit Graph

4 Commits

Author SHA1 Message Date
swift-ci
9cc8d34c93 Merge remote-tracking branch 'origin/main' into rebranch 2022-07-07 05:12:51 -07:00
Erik Eckstein
1cbea04103 run the TargetConstantFolding pass also at -Onone
This is important for performance diagnostics: it’s assumed that (non-generic) MemoryLayout constants do not need to create metadata at runtime. At Onone this is only guaranteed if the TargetConstantFolding pass runs.

rdar://94836837
2022-07-07 08:35:04 +02:00
swift-ci
b1383a1dbf Merge remote-tracking branch 'origin/main' into rebranch 2022-06-27 03:13:38 -07:00
Erik Eckstein
e6db6bb818 TargetConstantFolding: address review comments
* move the source file to SILOptimizer/IRGenTransforms
* add a file level comment
* document and verify that the pass runs after serialization
* catch overflows when truncating a constant value
2022-06-27 09:04:26 +02:00