diff options
author | Florian Hahn <flo@fhahn.com> | 2019-09-13 08:03:32 +0000 |
---|---|---|
committer | Florian Hahn <flo@fhahn.com> | 2019-09-13 08:03:32 +0000 |
commit | cde8343d85721e5bc4c25d8843efcac61238407b (patch) | |
tree | df1f170c03ac02eaec0028a4fadac42908fdd61c /llvm/lib/Transforms/Utils/LoopVersioning.cpp | |
parent | 395a86731d66a7032277250582f1026df691de47 (diff) | |
download | bcm5719-llvm-cde8343d85721e5bc4c25d8843efcac61238407b.tar.gz bcm5719-llvm-cde8343d85721e5bc4c25d8843efcac61238407b.zip |
[BasicBlockUtils] Add optional BBName argument, in line with BB:splitBasicBlock
Reviewers: spatel, asbirlea, craig.topper
Reviewed By: asbirlea
Differential Revision: https://reviews.llvm.org/D67521
llvm-svn: 371819
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopVersioning.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopVersioning.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopVersioning.cpp b/llvm/lib/Transforms/Utils/LoopVersioning.cpp index a9a480a4b7f..5d7759056c7 100644 --- a/llvm/lib/Transforms/Utils/LoopVersioning.cpp +++ b/llvm/lib/Transforms/Utils/LoopVersioning.cpp @@ -92,8 +92,8 @@ void LoopVersioning::versionLoop( // Create empty preheader for the loop (and after cloning for the // non-versioned loop). BasicBlock *PH = - SplitBlock(RuntimeCheckBB, RuntimeCheckBB->getTerminator(), DT, LI); - PH->setName(VersionedLoop->getHeader()->getName() + ".ph"); + SplitBlock(RuntimeCheckBB, RuntimeCheckBB->getTerminator(), DT, LI, + nullptr, VersionedLoop->getHeader()->getName() + ".ph"); // Clone the loop including the preheader. // |