aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Scalar/StructurizeCFG.cpp
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2015-02-04 20:49:47 +0000
committerTom Stellard <thomas.stellard@amd.com>2015-02-04 20:49:47 +0000
commit080209d5735ea2953eb8479a35d2c4fef9718a70 (patch)
treefc5dd145657b1364c68ee872a8eb5931d7083302 /llvm/lib/Transforms/Scalar/StructurizeCFG.cpp
parent071ec90b68e8d778de5b341a4d235e81da028689 (diff)
downloadllvm-080209d5735ea2953eb8479a35d2c4fef9718a70.zip
llvm-080209d5735ea2953eb8479a35d2c4fef9718a70.tar.gz
llvm-080209d5735ea2953eb8479a35d2c4fef9718a70.tar.bz2
StructurizeCFG: Remove obsolete fix for loop backedge detection
This is no longer needed now that we are using a reverse post-order traversal. llvm-svn: 228187
Diffstat (limited to 'llvm/lib/Transforms/Scalar/StructurizeCFG.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/StructurizeCFG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/StructurizeCFG.cpp b/llvm/lib/Transforms/Scalar/StructurizeCFG.cpp
index 4f5fce8..aaf6f9a 100644
--- a/llvm/lib/Transforms/Scalar/StructurizeCFG.cpp
+++ b/llvm/lib/Transforms/Scalar/StructurizeCFG.cpp
@@ -360,7 +360,7 @@ void StructurizeCFG::analyzeLoops(RegionNode *N) {
for (unsigned i = 0, e = Term->getNumSuccessors(); i != e; ++i) {
BasicBlock *Succ = Term->getSuccessor(i);
- if (Visited.count(Succ) && LI->isLoopHeader(Succ) ) {
+ if (Visited.count(Succ)) {
Loops[Succ] = BB;
}
}