[polly] r336281 - ScopInfo: simplify equivalence classes before storing them [NFCI]
Tobias Grosser via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 4 07:53:36 PDT 2018
Author: grosser
Date: Wed Jul 4 07:53:36 2018
New Revision: 336281
URL: http://llvm.org/viewvc/llvm-project?rev=336281&view=rev
Log:
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.
Modified:
polly/trunk/lib/Analysis/ScopInfo.cpp
Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=336281&r1=336280&r2=336281&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Wed Jul 4 07:53:36 2018
@@ -3757,6 +3757,8 @@ void Scop::addInvariantLoads(ScopStmt &S
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(
More information about the llvm-commits
mailing list