aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2018-07-04 14:53:36 +0000
committerTobias Grosser <tobias@grosser.es>2018-07-04 14:53:36 +0000
commita66ab832a040787b52cd74342277cb6f45dcd80c (patch)
treef51ae2cde6e5625c45d762dd50d313e43be5a748
parent0fc47bea90c0627e4c07d0c4306855e5c984a6fe (diff)
downloadllvm-a66ab832a040787b52cd74342277cb6f45dcd80c.zip
llvm-a66ab832a040787b52cd74342277cb6f45dcd80c.tar.gz
llvm-a66ab832a040787b52cd74342277cb6f45dcd80c.tar.bz2
ScopInfo: simplify equivalence classes before storing them [NFCI]
This change has no impact on upstream Polly directly, but reduces output noise for some internal isl versions we are testing. In general, storing simpler and more canonical output is a good idea. Hence, it seems useful to upstream this change. llvm-svn: 336281
-rw-r--r--polly/lib/Analysis/ScopInfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/polly/lib/Analysis/ScopInfo.cpp b/polly/lib/Analysis/ScopInfo.cpp
index 5c46c76b..b945fa6 100644
--- a/polly/lib/Analysis/ScopInfo.cpp
+++ b/polly/lib/Analysis/ScopInfo.cpp
@@ -3757,6 +3757,8 @@ void Scop::addInvariantLoads(ScopStmt &Stmt, InvariantAccessesTy &InvMAs) {
if (Consolidated)
continue;
+ MACtx = MACtx.coalesce();
+
// If we did not consolidate MA, thus did not find an equivalence class
// for it, we create a new one.
InvariantEquivClasses.emplace_back(