diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-12-09 21:34:43 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-12-09 21:34:43 +0000 |
commit | 66af99eb3487f046e4073d368f2e2077ef380935 (patch) | |
tree | b21aba59e79243bfddb2d82d5476781af40a1002 | |
parent | d146a02c7969f3f0a8d6fb9b8a7a4c0be58cab8b (diff) | |
download | bcm5719-llvm-66af99eb3487f046e4073d368f2e2077ef380935.tar.gz bcm5719-llvm-66af99eb3487f046e4073d368f2e2077ef380935.zip |
Update after LLVM API change.
llvm-svn: 146279
-rw-r--r-- | polly/lib/RegionSimplify.cpp | 6 | ||||
-rw-r--r-- | polly/lib/Support/ScopHelper.cpp | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/polly/lib/RegionSimplify.cpp b/polly/lib/RegionSimplify.cpp index 9d1be9b2b14..733045da983 100644 --- a/polly/lib/RegionSimplify.cpp +++ b/polly/lib/RegionSimplify.cpp @@ -112,8 +112,7 @@ void RegionSimplify::createSingleEntryEdge(Region *R) { assert(Preds.size() && "This region has already a single entry edge"); - BasicBlock *newEntry = SplitBlockPredecessors(oldEntry, - Preds.data(), Preds.size(), + BasicBlock *newEntry = SplitBlockPredecessors(oldEntry, Preds, ".single_entry", this); RegionInfo *RI = &getAnalysis<RegionInfo> (); @@ -164,8 +163,7 @@ void RegionSimplify::createSingleExitEdge(Region *R) { DEBUG(dbgs() << "Going to create single exit for:\n"); DEBUG(R->print(dbgs(), true, 0, Region::PrintRN)); - BasicBlock *newExit = SplitBlockPredecessors(oldExit, - Preds.data(), Preds.size(), + BasicBlock *newExit = SplitBlockPredecessors(oldExit, Preds, ".single_exit", this); RegionInfo *RI = &getAnalysis<RegionInfo>(); diff --git a/polly/lib/Support/ScopHelper.cpp b/polly/lib/Support/ScopHelper.cpp index 4a4ea81b193..39ed55c1a6b 100644 --- a/polly/lib/Support/ScopHelper.cpp +++ b/polly/lib/Support/ScopHelper.cpp @@ -231,7 +231,7 @@ BasicBlock *polly::createSingleExitEdge(Region *R, Pass *P) { if (R->contains(*PI)) Preds.push_back(*PI); - return SplitBlockPredecessors(BB, Preds.data(), Preds.size(), ".region", P); + return SplitBlockPredecessors(BB, Preds, ".region", P); } void polly::splitEntryBlockForAlloca(BasicBlock *EntryBlock, Pass *P) { |