[polly] r368935 - [Polly] Migrate llvm::make_unique to std::make_unique
Jonas Devlieghere via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 14 15:28:13 PDT 2019
Author: jdevlieghere
Date: Wed Aug 14 15:28:12 2019
New Revision: 368935
URL: http://llvm.org/viewvc/llvm-project?rev=368935&view=rev
Log:
[Polly] Migrate llvm::make_unique to std::make_unique
Now that we've moved to C++14, we no longer need the llvm::make_unique
implementation from STLExtras.h. This patch is a mechanical replacement
of (hopefully) all the llvm::make_unique instances across the monorepo.
Differential revision: https://reviews.llvm.org/D66259
Modified:
polly/trunk/lib/Transform/DeLICM.cpp
polly/trunk/lib/Transform/ForwardOpTree.cpp
Modified: polly/trunk/lib/Transform/DeLICM.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Transform/DeLICM.cpp?rev=368935&r1=368934&r2=368935&view=diff
==============================================================================
--- polly/trunk/lib/Transform/DeLICM.cpp (original)
+++ polly/trunk/lib/Transform/DeLICM.cpp Wed Aug 14 15:28:12 2019
@@ -1358,7 +1358,7 @@ private:
void collapseToUnused(Scop &S) {
auto &LI = getAnalysis<LoopInfoWrapperPass>().getLoopInfo();
- Impl = make_unique<DeLICMImpl>(&S, &LI);
+ Impl = std::make_unique<DeLICMImpl>(&S, &LI);
if (!Impl->computeZone()) {
LLVM_DEBUG(dbgs() << "Abort because cannot reliably compute lifetimes\n");
Modified: polly/trunk/lib/Transform/ForwardOpTree.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Transform/ForwardOpTree.cpp?rev=368935&r1=368934&r2=368935&view=diff
==============================================================================
--- polly/trunk/lib/Transform/ForwardOpTree.cpp (original)
+++ polly/trunk/lib/Transform/ForwardOpTree.cpp Wed Aug 14 15:28:12 2019
@@ -914,7 +914,7 @@ public:
{
IslMaxOperationsGuard MaxOpGuard(S.getIslCtx().get(), MaxOps, false);
- Impl = llvm::make_unique<ForwardOpTreeImpl>(&S, &LI, MaxOpGuard);
+ Impl = std::make_unique<ForwardOpTreeImpl>(&S, &LI, MaxOpGuard);
if (AnalyzeKnown) {
LLVM_DEBUG(dbgs() << "Prepare forwarders...\n");
More information about the llvm-commits
mailing list