Since there will be no more a 1-1 correspondence between statements and basic block, we would like to get rid of the method getStmtFor(BB) and its uses. Here we remove one of its uses in PolyhedralInfo, as suggested by Michael Sir.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
include/polly/ScopInfo.h | ||
---|---|---|
2562 ↗ | (On Diff #106180) | If we are eliminating getStmtFor, can this be removed? |
lib/Analysis/PolyhedralInfo.cpp | ||
135 ↗ | (On Diff #106180) | Undesired change? |
lib/Analysis/ScopInfo.cpp | ||
4916 ↗ | (On Diff #106180) | Please add an assert message along with the assert. assert(StmtMapIt->second.size() == 1 && "We currently only have one Stmt per BB"); |
include/polly/ScopInfo.h | ||
---|---|---|
2562 ↗ | (On Diff #106180) | yes, I am planning to remove it once I delete all its uses. |
lib/Analysis/PolyhedralInfo.cpp | ||
135 ↗ | (On Diff #106180) | oh, this happened after polly-update-format. Thanks for pointing out. |
lib/Analysis/ScopInfo.cpp | ||
4916 ↗ | (On Diff #106180) | oh, yes. Thanks I will add it. |
include/polly/ScopInfo.h | ||
---|---|---|
2565 ↗ | (On Diff #106180) | Please do not return a copy of the entire vector. You can return:
|
lib/Analysis/PolyhedralInfo.cpp | ||
129–130 ↗ | (On Diff #106180) | These two loops only iterate once over all statements in a loop. It is simpler to do with for (auto &SS : *S) if (L->contains(SS.getSurroundingLoop())) which also protects from iterating region statements multiple times. However, I am also fine with using getStmtListFor if we need it for other purposes as well. |
Comment Actions
Marking this as requesting changes to make sure I get notified when you update the commit.