Commit c6b1e3e
committed
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 e6b9374 commit c6b1e3e
File tree
13 files changed
+1070
-1430
lines changed- SwiftCompilerSources/Sources/Optimizer
- FunctionPasses
- PassManager
- include/swift/SILOptimizer/PassManager
- lib/SILOptimizer
- PassManager
- Transforms
- test/SILOptimizer
13 files changed
+1070
-1430
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
0 commit comments