mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge remote-tracking branch 'origin/master' into master-next
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
|
||||
// Licensed under Apache License v2.0 with Runtime Library Exception
|
||||
//
|
||||
// See http://swift.org/LICENSE.txt for license information
|
||||
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
|
||||
// See https://swift.org/LICENSE.txt for license information
|
||||
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
@@ -194,7 +194,7 @@ bool StackPromoter::promote() {
|
||||
unsigned Idx = 0;
|
||||
while (Idx < ReachableBlocks.size()) {
|
||||
SILBasicBlock *BB = ReachableBlocks[Idx++];
|
||||
for (SILBasicBlock *Pred : BB->getPreds())
|
||||
for (SILBasicBlock *Pred : BB->getPredecessorBlocks())
|
||||
ReachableBlocks.insert(Pred);
|
||||
}
|
||||
|
||||
@@ -418,7 +418,7 @@ SILInstruction *StackPromoter::findDeallocPoint(SILInstruction *StartInst,
|
||||
Iter = StartInst->getIterator();
|
||||
} else {
|
||||
// Track all uses in the block arguments.
|
||||
for (SILArgument *BBArg : BB->getBBArgs()) {
|
||||
for (SILArgument *BBArg : BB->getArguments()) {
|
||||
if (ConGraph->isUsePoint(BBArg, Node))
|
||||
NumUsePointsToFind--;
|
||||
}
|
||||
@@ -531,7 +531,7 @@ SILBasicBlock *StackPromoter::updateEndBlock(SILBasicBlock *CurrentBB,
|
||||
// handled blocks.
|
||||
while (!PredsToHandle.empty()) {
|
||||
SILBasicBlock *BB = PredsToHandle.pop_back_val();
|
||||
for (SILBasicBlock *Pred : BB->getPreds()) {
|
||||
for (SILBasicBlock *Pred : BB->getPredecessorBlocks()) {
|
||||
// Make sure that the EndBlock post-dominates all blocks we are visiting.
|
||||
while (!strictlyPostDominates(EndBlock, Pred)) {
|
||||
EndBlock = getImmediatePostDom(EndBlock);
|
||||
|
||||
Reference in New Issue
Block a user