Early exit for addInvariantLoads

llvm-svn: 267143
This commit is contained in:
Johannes Doerfert 2016-04-22 11:38:44 +00:00
parent 6296d95420
commit 5d03f84cf5
1 changed files with 3 additions and 0 deletions

View File

@ -3173,6 +3173,9 @@ const InvariantEquivClassTy *Scop::lookupInvariantEquivClass(Value *Val) const {
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());