[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:
parent
125c74bc56
commit
34a77780c5
|
@ -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);
|
||||
|
|
|
@ -30,7 +30,7 @@ return:
|
|||
|
||||
|
||||
; CHECK: Statistics {
|
||||
; CHECK: Overwrites removed: 1
|
||||
; CHECK: Access with empty domains removed: 1
|
||||
; CHECK: Stmts removed: 1
|
||||
; CHECK: }
|
||||
|
||||
|
|
Loading…
Reference in New Issue