Commit Graph

12 Commits

Author SHA1 Message Date
Dario Rexin
b461801edb [Test] Remove experimental flag in pre_specialize-macos test (#61494) 2022-10-07 13:29:43 -07:00
Dario Rexin
992cae456b [Frontend] Use experimental feature for layout prespecializations (#61451) 2022-10-06 15:21:01 -07:00
Dario Rexin
210c68d8aa [SILOptimizer] Add prespecialization for arbitray reference types (#58846)
* [SILOptimizer] Add prespecialization for arbitray reference types

* Fix benchmark Package.swift

* Move SimpleArray to utils

* Fix multiple indirect result case

* Remove leftover code from previous attempt

* Fix test after rebase

* Move code to compute type replacements to SpecializedFunction

* Fix ownership when OSSA is enabled

* Fixes after rebase

* Changes after rebasing

* Add feature flag for layout pre-specialization

* Fix pre_specialize-macos.swift

* Add compiler flag to benchmark build

* Fix benchmark SwiftPM flags
2022-09-22 16:29:01 -07:00
Erik Eckstein
eea471fe99 add the ComputeEffects pass
The ComputeEffects pass derives escape information for function arguments and adds those effects in the function.
This needs a lot of changes in check-lines in the tests, because the effects are printed in SIL
2022-04-22 09:50:07 +02:00
Saleem Abdulrasool
218ef587e6 Revert "Merge pull request #42242 from eeckstein/escapeinfo"
This reverts commit c05e064cd8, reversing
changes made to c1534d5af9.

This caused a regression on Windows.
2022-04-21 20:33:37 -07:00
Erik Eckstein
700412b39e add the ComputeEffects pass
The ComputeEffects pass derives escape information for function arguments and adds those effects in the function.
This needs a lot of changes in check-lines in the tests, because the effects are printed in SIL
2022-04-21 08:45:08 +02:00
Luciano Almeida
1e67a1634d Merge pull request #39676 from LucianoPAlmeida/fix-tests-run-arm
[tests] Make some tests that are x86_64 hardcode that are failing on arm64 run with %target-cpu
2021-10-19 20:42:17 -03:00
Arnold Schwaighofer
8866a2dcb1 Merge pull request #39656 from aschwaighofer/delay_import_prespecializations
Delay import of prespecialized decls until generic specialization
2021-10-12 12:20:16 -07:00
Arnold Schwaighofer
c2546b50bc Disable test pre_specialize-macos.swift on arm64
It uses an explicit x86_64-apple-macos target.

rdar://84108917
2021-10-11 12:17:30 -07:00
Arnold Schwaighofer
81dd5d9cb6 Delay import of prespecialize decls until generic specialization 2021-10-11 11:10:09 -07:00
LucianoAlmeida
c109366d32 [tests] Make some tests that are x86_64 hardcode that are failing on arm64 run with %target-cpu 2021-10-10 12:27:43 -03:00
Arnold Schwaighofer
cd7283d059 SIL optimization 2021-10-06 04:54:49 -07:00