summaryrefslogtreecommitdiffstats
path: root/polly/lib/CodeGen/BlockGenerators.cpp
diff options
context:
space:
mode:
authorMichael Kruse <llvm@meinersbur.de>2017-07-25 16:25:37 +0000
committerMichael Kruse <llvm@meinersbur.de>2017-07-25 16:25:37 +0000
commit8d89179e33ef80f4c1f548ae2047420bcead2684 (patch)
treee146d3a478533f53f5b20fa39ca339adc4df64b0 /polly/lib/CodeGen/BlockGenerators.cpp
parent0d3054fb448f4d6127c5b742f3ad787d33f1a2b0 (diff)
downloadbcm5719-llvm-8d89179e33ef80f4c1f548ae2047420bcead2684.tar.gz
bcm5719-llvm-8d89179e33ef80f4c1f548ae2047420bcead2684.zip
[ScopInfo] Rename ScopStmt::contains(BB) to represents(BB). NFC.
In future, there will be no more a 1:1 correspondence between statements and basic blocks, the name `contains` does not correctly capture their relationship. A BB may infact comprise of multiple statements; hence we describe a statement 'representing' a basic block. Differential Revision: https://reviews.llvm.org/D35838 llvm-svn: 308982
Diffstat (limited to 'polly/lib/CodeGen/BlockGenerators.cpp')
-rw-r--r--polly/lib/CodeGen/BlockGenerators.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/polly/lib/CodeGen/BlockGenerators.cpp b/polly/lib/CodeGen/BlockGenerators.cpp
index 21aa508b386..5b01f950892 100644
--- a/polly/lib/CodeGen/BlockGenerators.cpp
+++ b/polly/lib/CodeGen/BlockGenerators.cpp
@@ -1600,7 +1600,7 @@ void RegionGenerator::addOperandToPHI(ScopStmt &Stmt, PHINode *PHI,
BasicBlock *BBCopyEnd = EndBlockMap[IncomingBB];
if (!BBCopyStart) {
assert(!BBCopyEnd);
- assert(Stmt.contains(IncomingBB) &&
+ assert(Stmt.represents(IncomingBB) &&
"Bad incoming block for PHI in non-affine region");
IncompletePHINodeMap[IncomingBB].push_back(std::make_pair(PHI, PHICopy));
return;
@@ -1612,7 +1612,7 @@ void RegionGenerator::addOperandToPHI(ScopStmt &Stmt, PHINode *PHI,
Value *OpCopy = nullptr;
- if (Stmt.contains(IncomingBB)) {
+ if (Stmt.represents(IncomingBB)) {
Value *Op = PHI->getIncomingValueForBlock(IncomingBB);
// If the current insert block is different from the PHIs incoming block
OpenPOWER on IntegriCloud