summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/LCSSA.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2015-04-24 12:51:45 +0000
committerAaron Ballman <aaron@aaronballman.com>2015-04-24 12:51:45 +0000
commit5e90906c0d4fd6f6d793b61fa239463928c20216 (patch)
treeeb2efd554c99fbb31557f3a823fce3d2d56c0429 /llvm/lib/Transforms/Utils/LCSSA.cpp
parent224dfbf3ae8416a5b578602bf4253782446d3627 (diff)
downloadbcm5719-llvm-5e90906c0d4fd6f6d793b61fa239463928c20216.tar.gz
bcm5719-llvm-5e90906c0d4fd6f6d793b61fa239463928c20216.zip
Removing dead code; NFC. This code was triggering a C4718 warning (recursive call has no side effects, deleting) with MSVC.
llvm-svn: 235717
Diffstat (limited to 'llvm/lib/Transforms/Utils/LCSSA.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/LCSSA.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/llvm/lib/Transforms/Utils/LCSSA.cpp b/llvm/lib/Transforms/Utils/LCSSA.cpp
index cf155a6487a..9d40b6989d6 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<AliasAnalysis>();
AU.addPreserved<ScalarEvolution>();
}
-
-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);
-}
OpenPOWER on IntegriCloud