Commit Graph

7 Commits

Author SHA1 Message Date
Erik Eckstein
efb85ff50d tests: Fix two optimizer tests for rebranch 2024-08-23 11:12:19 +02:00
Erik Eckstein
da0dea1ffb tests: adapt some optimizer tests for rebranch
rdar://133510613
2024-08-09 10:59:17 +02:00
Erik Eckstein
ed54253d29 SIL Optimizer: remove legacy C++ passes
They were used as a backup during the transition to Swift passes. Now they are not needed anymore.
2022-10-20 18:31:06 +02:00
Karoy Lorentey
6b7acf4ed2 [test] SILOptimizer/string_literals.swift: Add proper FIXME 2018-11-06 22:41:14 +00:00
Karoy Lorentey
b2cce99031 [test] SILOptimizer/string_literals.swift: Mark as unsupported on 32-bit
We can’t currently constant-fold away the initialization of StringObject’s 7-bit discriminator field, so string literal initialization is a bit more complicated on 32-bit platforms.

rdar://problem/45845142
2018-11-06 21:56:50 +00:00
Erik Eckstein
e559b99766 tests: fixed 2 tests for 32-bit
actually, disabled one test for 32-bit
2018-05-30 11:20:09 -07:00
Erik Eckstein
47383e2f8e stdlib: let the construction of a small string literal compile down to 2 constant loads.
The main part of this is to rewrite the small string literal-constructor to work with values (= shifting bytes) instead of setting bytes in memory.
This allows the compiler to fold away everything and end up with the optimal code for small string literals.
2018-05-29 11:21:28 -07:00