From 7a4827317f45cd4d9e77dbdc03a58c0e4261d700 Mon Sep 17 00:00:00 2001 From: Michael Kruse Date: Fri, 28 Jul 2017 16:57:45 +0000 Subject: [PATCH] [Simplify] Remove empty partial accesses first. NFC. So follow-up cleanup do not need special handling for such accesses. git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@309401 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transform/Simplify.cpp | 6 +++--- test/Simplify/emptyaccessdomain.ll | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Transform/Simplify.cpp b/lib/Transform/Simplify.cpp index 6f9a334e..a54b3a4d 100644 --- a/lib/Transform/Simplify.cpp +++ b/lib/Transform/Simplify.cpp @@ -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().getLoopInfo(); markAndSweep(LI); diff --git a/test/Simplify/emptyaccessdomain.ll b/test/Simplify/emptyaccessdomain.ll index 641d34e9..a5c76534 100644 --- a/test/Simplify/emptyaccessdomain.ll +++ b/test/Simplify/emptyaccessdomain.ll @@ -30,7 +30,7 @@ return: ; CHECK: Statistics { -; CHECK: Overwrites removed: 1 +; CHECK: Access with empty domains removed: 1 ; CHECK: Stmts removed: 1 ; CHECK: } -- 2.11.4.GIT