[polly] r267143 - Early exit for addInvariantLoads
Johannes Doerfert via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 22 04:38:44 PDT 2016
Author: jdoerfert
Date: Fri Apr 22 06:38:44 2016
New Revision: 267143
URL: http://llvm.org/viewvc/llvm-project?rev=267143&view=rev
Log:
Early exit for addInvariantLoads
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=267143&r1=267142&r2=267143&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Fri Apr 22 06:38:44 2016
@@ -3173,6 +3173,9 @@ const InvariantEquivClassTy *Scop::looku
void Scop::addInvariantLoads(ScopStmt &Stmt, MemoryAccessList &InvMAs) {
+ if (InvMAs.empty())
+ return;
+
// Get the context under which the statement is executed but remove the error
// context under which this statement is reached.
isl_set *DomainCtx = isl_set_params(Stmt.getDomain());
More information about the llvm-commits
mailing list