[llvm-branch-commits] [polly] r259706 - Merged: https://llvm.org/svn/llvm-project/polly/trunk at 258632

Tobias Grosser via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Feb 3 13:42:56 PST 2016


Author: grosser
Date: Wed Feb  3 15:42:56 2016
New Revision: 259706

URL: http://llvm.org/viewvc/llvm-project?rev=259706&view=rev
Log:
Merged: https://llvm.org/svn/llvm-project/polly/trunk@258632

ScopInfo: Simplify code by folding definition into if

Modified:
    polly/branches/release_38/lib/Analysis/ScopInfo.cpp

Modified: polly/branches/release_38/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/branches/release_38/lib/Analysis/ScopInfo.cpp?rev=259706&r1=259705&r2=259706&view=diff
==============================================================================
--- polly/branches/release_38/lib/Analysis/ScopInfo.cpp (original)
+++ polly/branches/release_38/lib/Analysis/ScopInfo.cpp Wed Feb  3 15:42:56 2016
@@ -3458,8 +3458,7 @@ void Scop::buildSchedule(
   auto &LSchedulePair = LoopSchedules[L];
   LSchedulePair.second += getNumBlocksInRegionNode(RN);
 
-  ScopStmt *Stmt = getStmtForRegionNode(RN);
-  if (Stmt) {
+  if (auto *Stmt = getStmtForRegionNode(RN)) {
     auto *UDomain = isl_union_set_from_set(Stmt->getDomain());
     auto *StmtSchedule = isl_schedule_from_domain(UDomain);
     LSchedulePair.first = combineInSequence(LSchedulePair.first, StmtSchedule);




More information about the llvm-branch-commits mailing list