[Exclusivity] Enable access markers for the entire -Onone pipeline.

Dynamic markers are still conditional on the command line option.
This commit is contained in:
Andrew Trick
2017-04-27 19:46:15 -07:00
parent 8187aae1b8
commit 2336a87866
9 changed files with 212 additions and 111 deletions

View File

@@ -435,6 +435,7 @@ static void replaceProjectBoxUsers(SILValue HeapBox, SILValue StackBox) {
while (!Worklist.empty()) {
auto *Op = Worklist.pop_back_val();
if (auto *PBI = dyn_cast<ProjectBoxInst>(Op->getUser())) {
// This may result in an alloc_stack being used by begin_access [dymaic].
PBI->replaceAllUsesWith(StackBox);
continue;
}