[polly] r256914 - ScopInfo: use getStmtForRegionNode to simplify code slightly
Tobias Grosser via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 5 21:18:20 PST 2016
Author: grosser
Date: Tue Jan 5 23:18:20 2016
New Revision: 256914
URL: http://llvm.org/viewvc/llvm-project?rev=256914&view=rev
Log:
ScopInfo: use getStmtForRegionNode to simplify code slightly
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=256914&r1=256913&r2=256914&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Tue Jan 5 23:18:20 2016
@@ -3465,8 +3465,7 @@ void Scop::buildSchedule(
auto &LSchedulePair = LoopSchedules[L];
LSchedulePair.second += getNumBlocksInRegionNode(RN);
- BasicBlock *BB = getRegionNodeBasicBlock(RN);
- ScopStmt *Stmt = getStmtForBasicBlock(BB);
+ ScopStmt *Stmt = getStmtForRegionNode(RN);
if (Stmt) {
auto *UDomain = isl_union_set_from_set(Stmt->getDomain());
auto *StmtSchedule = isl_schedule_from_domain(UDomain);
More information about the llvm-commits
mailing list