mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Change the command line option to sil-opt for the definite initialization
pass to be -definite-init instead of -memory-promotion, rename the entrypoint for the pass to match, and tidy various and sundry comments. Swift SVN r8927
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
//===--- MemoryPromotion.cpp - Promote memory to SSA registers ------------===//
|
||||
//===--- DefiniteInitialization.cpp - Perform definite init analysis ------===//
|
||||
//
|
||||
// This source file is part of the Swift.org open source project
|
||||
//
|
||||
@@ -1259,9 +1259,10 @@ static void lowerRawSILOperations(SILFunction &Fn) {
|
||||
}
|
||||
|
||||
|
||||
/// performSILMemoryPromotion - Promote alloc_box uses into SSA registers and
|
||||
/// perform definitive initialization analysis.
|
||||
void swift::performSILMemoryPromotion(SILModule *M) {
|
||||
/// performSILDefiniteInitialization - Perform definitive initialization
|
||||
/// analysis and promote alloc_box uses into SSA registers for later SSA-based
|
||||
/// dataflow passes.
|
||||
void swift::performSILDefiniteInitialization(SILModule *M) {
|
||||
for (auto &Fn : *M) {
|
||||
// Walk through an promote all of the alloc_box's that we can.
|
||||
checkDefiniteInitialization(Fn);
|
||||
|
||||
Reference in New Issue
Block a user