[polly] r258632 - ScopInfo: Simplify code by folding definition into if
Tobias Grosser via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 23 12:23:06 PST 2016
Author: grosser
Date: Sat Jan 23 14:23:06 2016
New Revision: 258632
URL: http://llvm.org/viewvc/llvm-project?rev=258632&view=rev
Log:
ScopInfo: Simplify code by folding definition into if
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=258632&r1=258631&r2=258632&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Sat Jan 23 14:23:06 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-commits
mailing list