From 38976dc394e4eb3c76fc5c31612715ed7c4a16cc Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Thu, 3 Jul 2008 07:10:03 +0000 Subject: [PATCH] Remove unused function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53090 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/LoopUnswitch.cpp | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/lib/Transforms/Scalar/LoopUnswitch.cpp b/lib/Transforms/Scalar/LoopUnswitch.cpp index 899289fdfcd..28051fa2101 100644 --- a/lib/Transforms/Scalar/LoopUnswitch.cpp +++ b/lib/Transforms/Scalar/LoopUnswitch.cpp @@ -762,22 +762,6 @@ void LoopUnswitch::SplitExitEdges(Loop *L, } -/// addBBToDomFrontier - Helper function. Insert DFBB in Basic Block BB's -/// dominance frontier using iterator DFI. -static void addBBToDomFrontier(DominanceFrontier &DF, - DominanceFrontier::iterator &DFI, - BasicBlock *BB, BasicBlock *DFBB) { - if (DFI != DF.end()) { - DF.addToFrontier(DFI, DFBB); - return; - } - - DominanceFrontier::DomSetType NSet; - NSet.insert(DFBB); - DF.addBasicBlock(BB, NSet); - DFI = DF.find(BB); -} - /// UnswitchNontrivialCondition - We determined that the loop is profitable /// to unswitch when LIC equal Val. Split it into loop versions and test the /// condition outside of either loop. Return the loops created as Out1/Out2. -- 2.34.1