Merge pull request #5920 from gottesmm/vacation_gardening

Vacation gardening
This commit is contained in:
Michael Gottesman
2016-11-25 09:17:21 -06:00
committed by GitHub
78 changed files with 552 additions and 571 deletions

View File

@@ -416,7 +416,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--;
}