[Simplify] Remove empty partial accesses first. NFC.

So follow-up cleanup do not need special handling for such accesses.

llvm-svn: 309401
This commit is contained in:
Michael Kruse 2017-07-28 16:57:45 +00:00
parent 125c74bc56
commit 34a77780c5
2 changed files with 4 additions and 4 deletions

View File

@ -455,15 +455,15 @@ public:
this->S = &S;
ScopsProcessed++;
DEBUG(dbgs() << "Removing partial writes that never happen...\n");
removeEmptyPartialAccesses();
DEBUG(dbgs() << "Removing overwrites...\n");
removeOverwrites();
DEBUG(dbgs() << "Removing redundant writes...\n");
removeRedundantWrites();
DEBUG(dbgs() << "Removing partial writes that never happen...\n");
removeEmptyPartialAccesses();
DEBUG(dbgs() << "Cleanup unused accesses...\n");
LoopInfo *LI = &getAnalysis<LoopInfoWrapperPass>().getLoopInfo();
markAndSweep(LI);

View File

@ -30,7 +30,7 @@ return:
; CHECK: Statistics {
; CHECK: Overwrites removed: 1
; CHECK: Access with empty domains removed: 1
; CHECK: Stmts removed: 1
; CHECK: }