Skip to content

Commit 5ab6a3a

Browse files
eecksteinCatfish-Man
authored andcommitted
TempRValueElimination: re-implement the pass in swift
Beside cleaning up the source code, the motivation for the translation into Swift is to make it easier to improve the pass for some InlineArray specific optimizations (though I'm not sure, yet if we really need those). Also, the new implementation doesn't contain the optimize-store-into-temp optimization anymore, because this is covered by redundant load elimination.
1 parent 6f28725 commit 5ab6a3a

File tree

13 files changed

+1070
-1430
lines changed

13 files changed

+1070
-1430
lines changed

SwiftCompilerSources/Sources/Optimizer/FunctionPasses/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,5 @@ swift_compiler_sources(Optimizer
3333
SimplificationPasses.swift
3434
StackPromotion.swift
3535
StripObjectHeaders.swift
36+
TempRValueElimination.swift
3637
)

0 commit comments

Comments
 (0)