From: Aaron Ballman Date: Fri, 24 Apr 2015 12:51:45 +0000 (+0000) Subject: Removing dead code; NFC. This code was triggering a C4718 warning (recursive call... X-Git-Tag: llvmorg-3.7.0-rc1~6067 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5e90906c0d4fd6f6d793b61fa239463928c20216;p=platform%2Fupstream%2Fllvm.git Removing dead code; NFC. This code was triggering a C4718 warning (recursive call has no side effects, deleting) with MSVC. llvm-svn: 235717 --- diff --git a/llvm/lib/Transforms/Utils/LCSSA.cpp b/llvm/lib/Transforms/Utils/LCSSA.cpp index cf155a6..9d40b69 100644 --- a/llvm/lib/Transforms/Utils/LCSSA.cpp +++ b/llvm/lib/Transforms/Utils/LCSSA.cpp @@ -299,9 +299,6 @@ struct LCSSA : public FunctionPass { AU.addPreserved(); AU.addPreserved(); } - -private: - void verifyAnalysis() const override; }; } @@ -329,18 +326,3 @@ bool LCSSA::runOnFunction(Function &F) { return Changed; } -static void verifyLoop(Loop &L, DominatorTree &DT) { - // Recurse depth-first through inner loops. - for (Loop::iterator LI = L.begin(), LE = L.end(); LI != LE; ++LI) - verifyLoop(**LI, DT); - - // Check the special guarantees that LCSSA makes. - //assert(L.isLCSSAForm(DT) && "LCSSA form not preserved!"); -} - -void LCSSA::verifyAnalysis() const { - // Verify each loop nest in the function, assuming LI still points at that - // function's loop info. - for (LoopInfo::iterator I = LI->begin(), E = LI->end(); I != E; ++I) - verifyLoop(**I, *DT); -}