File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
include/swift/SILOptimizer/Utils
lib/SILOptimizer/Mandatory Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -719,6 +719,16 @@ bool tryEliminateOnlyOwnershipUsedForwardingInst(
719
719
IntegerLiteralInst *optimizeBuiltinCanBeObjCClass (BuiltinInst *bi,
720
720
SILBuilder &builder);
721
721
722
+ // / Performs "predictable" memory access optimizations.
723
+ // /
724
+ // / See the PredictableMemoryAccessOptimizations pass.
725
+ bool optimizeMemoryAccesses (SILFunction &fn);
726
+
727
+ // / Performs "predictable" dead allocation optimizations.
728
+ // /
729
+ // / See the PredictableDeadAllocationElimination pass.
730
+ bool eliminateDeadAllocations (SILFunction &fn);
731
+
722
732
} // end namespace swift
723
733
724
734
#endif
Original file line number Diff line number Diff line change @@ -2846,7 +2846,7 @@ static AllocationInst *getOptimizableAllocation(SILInstruction *i) {
2846
2846
return alloc;
2847
2847
}
2848
2848
2849
- static bool optimizeMemoryAccesses (SILFunction &fn) {
2849
+ bool swift:: optimizeMemoryAccesses (SILFunction &fn) {
2850
2850
bool changed = false ;
2851
2851
DeadEndBlocks deadEndBlocks (&fn);
2852
2852
@@ -2887,7 +2887,7 @@ static bool optimizeMemoryAccesses(SILFunction &fn) {
2887
2887
return changed;
2888
2888
}
2889
2889
2890
- static bool eliminateDeadAllocations (SILFunction &fn) {
2890
+ bool swift:: eliminateDeadAllocations (SILFunction &fn) {
2891
2891
bool changed = false ;
2892
2892
DeadEndBlocks deadEndBlocks (&fn);
2893
2893
You can’t perform that action at this time.
0 commit comments