Enable RLE on OSSA

This commit is contained in:
Meghana Gupta
2021-01-04 17:39:15 -08:00
parent 2384678cf3
commit 66ef200105
10 changed files with 3244 additions and 46 deletions

View File

@@ -384,7 +384,8 @@ Optional<ProjectionPath> ProjectionPath::getProjectionPath(SILValue Start,
//
// TODO: migrate users to getProjectionPath to the AccessPath utility to
// avoid this hack.
if (!isa<EndCOWMutationInst>(Iter) && !isa<BeginAccessInst>(Iter)) {
if (!isa<EndCOWMutationInst>(Iter) && !isa<BeginAccessInst>(Iter) &&
!isa<BeginBorrowInst>(Iter)) {
Projection AP(Iter);
if (!AP.isValid())
break;