Skip to content

Commit e125c5c

Browse files
committed
[NFC] SILOptimizer: Remove LexicalDestroyHoisting.
It has been superseded by OwnedValueCanonicalization's support for lexical values.
1 parent d55c169 commit e125c5c

File tree

3 files changed

+0
-439
lines changed

3 files changed

+0
-439
lines changed

include/swift/SILOptimizer/Utils/CanonicalizeBorrowScope.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,6 @@ bool shrinkBorrowScope(
168168
MoveValueInst *foldDestroysOfCopiedLexicalBorrow(BeginBorrowInst *bbi,
169169
DominanceInfo &dominanceTree,
170170
InstructionDeleter &deleter);
171-
172-
bool hoistDestroysOfOwnedLexicalValue(SILValue const value,
173-
SILFunction &function,
174-
InstructionDeleter &deleter,
175-
BasicCalleeAnalysis *calleeAnalysis);
176-
177171
} // namespace swift
178172

179173
#endif // SWIFT_SILOPTIMIZER_UTILS_CANONICALIZEBORROWSCOPES_H

lib/SILOptimizer/Utils/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ target_sources(swiftSILOptimizer PRIVATE
1919
InstOptUtils.cpp
2020
KeyPathProjector.cpp
2121
LexicalDestroyFolding.cpp
22-
LexicalDestroyHoisting.cpp
2322
LoopUtils.cpp
2423
OptimizerStatsUtils.cpp
2524
PartialApplyCombiner.cpp

0 commit comments

Comments
 (0)