diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2003-09-05 19:43:19 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2003-09-05 19:43:19 +0000 |
commit | 6181cac0dc1d0c0fde4587d9f2b2a0fd11ac6a14 (patch) | |
tree | 4bfe5e618d69c242c0019a1521311c0f3432d246 /llvm/lib/Transforms/Instrumentation/ProfilePaths | |
parent | e99ca4415371b12da763a1f26a834f678eae88eb (diff) | |
download | bcm5719-llvm-6181cac0dc1d0c0fde4587d9f2b2a0fd11ac6a14.tar.gz bcm5719-llvm-6181cac0dc1d0c0fde4587d9f2b2a0fd11ac6a14.zip |
Correct comments
Don't include InstLoops.h
Don't export factory functions for these passes
llvm-svn: 8373
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/ProfilePaths')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/ProfilePaths/CombineBranch.cpp | 10 | ||||
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/ProfilePaths/InstLoops.cpp | 8 |
2 files changed, 1 insertions, 17 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/ProfilePaths/CombineBranch.cpp b/llvm/lib/Transforms/Instrumentation/ProfilePaths/CombineBranch.cpp index f92de7000f8..f6f3016acd5 100644 --- a/llvm/lib/Transforms/Instrumentation/ProfilePaths/CombineBranch.cpp +++ b/llvm/lib/Transforms/Instrumentation/ProfilePaths/CombineBranch.cpp @@ -1,10 +1,9 @@ -//===-- InstLoops.cpp ---------------------------------------- ---*- C++ -*--=// +//===-- CombineBranch.cpp ------------------------------------ ---*- C++ -*--=// // Pass to instrument loops // // At every backedge, insert a counter for that backedge and a call function //===----------------------------------------------------------------------===// -#include "llvm/Reoptimizer/InstLoops.h" #include "llvm/Analysis/Dominators.h" #include "llvm/Support/CFG.h" #include "llvm/Constants.h" @@ -46,13 +45,6 @@ namespace{ RegisterOpt<CombineBranches> X("branch-combine", "Multiple backedges going to same target are merged"); } -// Create a new pass to merge branches -// -Pass *createCombineBranchesPass() { - return new CombineBranches(); -} - - //helper function to get back edges: it is called by //the "getBackEdges" function below void CombineBranches::getBackEdgesVisit(BasicBlock *u, diff --git a/llvm/lib/Transforms/Instrumentation/ProfilePaths/InstLoops.cpp b/llvm/lib/Transforms/Instrumentation/ProfilePaths/InstLoops.cpp index 1c0ec3b9ae4..6802c4fd96c 100644 --- a/llvm/lib/Transforms/Instrumentation/ProfilePaths/InstLoops.cpp +++ b/llvm/lib/Transforms/Instrumentation/ProfilePaths/InstLoops.cpp @@ -4,7 +4,6 @@ // At every backedge, insert a counter for that backedge and a call function //===----------------------------------------------------------------------===// -#include "llvm/Reoptimizer/InstLoops.h" #include "llvm/Analysis/Dominators.h" #include "llvm/Support/CFG.h" #include "llvm/Constants.h" @@ -49,13 +48,6 @@ namespace{ RegisterOpt<InstLoops> X("instloops", "Instrument backedges for profiling"); } -// createInstLoopsPass - Create a new pass to add path profiling -// -Pass *createInstLoopsPass() { - return new InstLoops(); -} - - //helper function to get back edges: it is called by //the "getBackEdges" function below void InstLoops::getBackEdgesVisit(BasicBlock *u, |