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:
Chris Lattner
2013-10-04 18:45:09 +00:00
parent 07fda51a37
commit 767da738bb
6 changed files with 17 additions and 15 deletions

View File

@@ -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);