Chris Lattner | 44d2c35 | 2003-10-13 03:32:08 +0000 | [diff] [blame] | 1 | //===-- ProfilePaths.cpp - interface to insert instrumentation --*- C++ -*-===// |
Misha Brukman | b1c9317 | 2005-04-21 23:48:37 +0000 | [diff] [blame] | 2 | // |
John Criswell | 482202a | 2003-10-20 19:43:21 +0000 | [diff] [blame] | 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file was developed by the LLVM research group and is distributed under |
| 6 | // the University of Illinois Open Source License. See LICENSE.TXT for details. |
Misha Brukman | b1c9317 | 2005-04-21 23:48:37 +0000 | [diff] [blame] | 7 | // |
John Criswell | 482202a | 2003-10-20 19:43:21 +0000 | [diff] [blame] | 8 | //===----------------------------------------------------------------------===// |
Anand Shukla | 70a6138 | 2002-02-26 19:00:48 +0000 | [diff] [blame] | 9 | // |
Chris Lattner | 44d2c35 | 2003-10-13 03:32:08 +0000 | [diff] [blame] | 10 | // This inserts instrumentation for counting execution of paths though a given |
| 11 | // function Its implemented as a "Function" Pass, and called using opt |
Anand Shukla | 70a6138 | 2002-02-26 19:00:48 +0000 | [diff] [blame] | 12 | // |
Misha Brukman | b1c9317 | 2005-04-21 23:48:37 +0000 | [diff] [blame] | 13 | // This pass is implemented by using algorithms similar to |
| 14 | // 1."Efficient Path Profiling": Ball, T. and Larus, J. R., |
Chris Lattner | 44d2c35 | 2003-10-13 03:32:08 +0000 | [diff] [blame] | 15 | // Proceedings of Micro-29, Dec 1996, Paris, France. |
Anand Shukla | 70a6138 | 2002-02-26 19:00:48 +0000 | [diff] [blame] | 16 | // 2."Efficiently Counting Program events with support for on-line |
| 17 | // "queries": Ball T., ACM Transactions on Programming Languages |
Chris Lattner | 44d2c35 | 2003-10-13 03:32:08 +0000 | [diff] [blame] | 18 | // and systems, Sep 1994. |
Anand Shukla | 70a6138 | 2002-02-26 19:00:48 +0000 | [diff] [blame] | 19 | // |
Chris Lattner | 44d2c35 | 2003-10-13 03:32:08 +0000 | [diff] [blame] | 20 | // The algorithms work on a Graph constructed over the nodes made from Basic |
| 21 | // Blocks: The transformations then take place on the constructed graph |
| 22 | // (implementation in Graph.cpp and GraphAuxiliary.cpp) and finally, appropriate |
| 23 | // instrumentation is placed over suitable edges. (code inserted through |
| 24 | // EdgeCode.cpp). |
Misha Brukman | b1c9317 | 2005-04-21 23:48:37 +0000 | [diff] [blame] | 25 | // |
Chris Lattner | 44d2c35 | 2003-10-13 03:32:08 +0000 | [diff] [blame] | 26 | // The algorithm inserts code such that every acyclic path in the CFG of a |
| 27 | // function is identified through a unique number. the code insertion is optimal |
| 28 | // in the sense that its inserted over a minimal set of edges. Also, the |
| 29 | // algorithm makes sure than initialization, path increment and counter update |
| 30 | // can be collapsed into minimum number of edges. |
| 31 | // |
Anand Shukla | 70a6138 | 2002-02-26 19:00:48 +0000 | [diff] [blame] | 32 | //===----------------------------------------------------------------------===// |
| 33 | |
Jeff Cohen | 9a7ac16 | 2005-01-07 06:57:28 +0000 | [diff] [blame] | 34 | #include "llvm/Transforms/Instrumentation.h" |
Chris Lattner | 15435fd | 2002-05-07 19:18:48 +0000 | [diff] [blame] | 35 | #include "llvm/Transforms/Utils/UnifyFunctionExitNodes.h" |
Anand Shukla | 70a6138 | 2002-02-26 19:00:48 +0000 | [diff] [blame] | 36 | #include "llvm/Support/CFG.h" |
Chris Lattner | ca14237 | 2002-04-28 19:55:58 +0000 | [diff] [blame] | 37 | #include "llvm/Constants.h" |
Anand Shukla | 70a6138 | 2002-02-26 19:00:48 +0000 | [diff] [blame] | 38 | #include "llvm/DerivedTypes.h" |
Misha Brukman | 63b38bd | 2004-07-29 17:30:56 +0000 | [diff] [blame] | 39 | #include "llvm/Instructions.h" |
Anand Shukla | 77dca14 | 2002-09-20 16:44:35 +0000 | [diff] [blame] | 40 | #include "llvm/Module.h" |
Chris Lattner | 2f04a0d | 2003-01-14 22:33:56 +0000 | [diff] [blame] | 41 | #include "Graph.h" |
Anand Shukla | 2190689 | 2002-06-25 21:14:58 +0000 | [diff] [blame] | 42 | #include <fstream> |
Brian Gaeke | b8a4ed6 | 2003-10-10 18:46:52 +0000 | [diff] [blame] | 43 | #include <cstdio> |
Anand Shukla | 70a6138 | 2002-02-26 19:00:48 +0000 | [diff] [blame] | 44 | |
Brian Gaeke | 960707c | 2003-11-11 22:41:34 +0000 | [diff] [blame] | 45 | namespace llvm { |
| 46 | |
Chris Lattner | 37104aa | 2002-04-29 14:57:45 +0000 | [diff] [blame] | 47 | struct ProfilePaths : public FunctionPass { |
Chris Lattner | 7076ff2 | 2002-06-25 16:13:21 +0000 | [diff] [blame] | 48 | bool runOnFunction(Function &F); |
Chris Lattner | d209550 | 2002-02-26 20:04:59 +0000 | [diff] [blame] | 49 | |
Misha Brukman | b1c9317 | 2005-04-21 23:48:37 +0000 | [diff] [blame] | 50 | // Before this pass, make sure that there is only one |
Chris Lattner | 62b7fd1 | 2002-04-07 20:49:59 +0000 | [diff] [blame] | 51 | // entry and only one exit node for the function in the CFG of the function |
Chris Lattner | d209550 | 2002-02-26 20:04:59 +0000 | [diff] [blame] | 52 | // |
Chris Lattner | 407000c | 2004-12-08 16:05:02 +0000 | [diff] [blame] | 53 | void getAnalysisUsage(AnalysisUsage &AU) const { |
Chris Lattner | 40eb9da | 2002-08-08 19:01:28 +0000 | [diff] [blame] | 54 | AU.addRequired<UnifyFunctionExitNodes>(); |
Chris Lattner | d209550 | 2002-02-26 20:04:59 +0000 | [diff] [blame] | 55 | } |
| 56 | }; |
| 57 | |
Chris Lattner | a2c0985 | 2002-07-26 21:12:44 +0000 | [diff] [blame] | 58 | static RegisterOpt<ProfilePaths> X("paths", "Profile Paths"); |
Chris Lattner | b28b680 | 2002-07-23 18:06:35 +0000 | [diff] [blame] | 59 | |
Jeff Cohen | 9a7ac16 | 2005-01-07 06:57:28 +0000 | [diff] [blame] | 60 | FunctionPass *createProfilePathsPass() { return new ProfilePaths(); } |
| 61 | |
Anand Shukla | 2190689 | 2002-06-25 21:14:58 +0000 | [diff] [blame] | 62 | static Node *findBB(std::vector<Node *> &st, BasicBlock *BB){ |
| 63 | for(std::vector<Node *>::iterator si=st.begin(); si!=st.end(); ++si){ |
Anand Shukla | 70a6138 | 2002-02-26 19:00:48 +0000 | [diff] [blame] | 64 | if(((*si)->getElement())==BB){ |
| 65 | return *si; |
| 66 | } |
| 67 | } |
| 68 | return NULL; |
| 69 | } |
| 70 | |
Chris Lattner | 62b7fd1 | 2002-04-07 20:49:59 +0000 | [diff] [blame] | 71 | //Per function pass for inserting counters and trigger code |
Chris Lattner | 7076ff2 | 2002-06-25 16:13:21 +0000 | [diff] [blame] | 72 | bool ProfilePaths::runOnFunction(Function &F){ |
Anand Shukla | 2190689 | 2002-06-25 21:14:58 +0000 | [diff] [blame] | 73 | |
| 74 | static int mn = -1; |
Anand Shukla | 2fd8edd | 2003-06-05 06:02:46 +0000 | [diff] [blame] | 75 | static int CountCounter = 1; |
Anand Shukla | fd61c60 | 2002-07-18 20:56:47 +0000 | [diff] [blame] | 76 | if(F.isExternal()) { |
Anand Shukla | 11f4262 | 2002-07-08 19:36:01 +0000 | [diff] [blame] | 77 | return false; |
| 78 | } |
Misha Brukman | b1c9317 | 2005-04-21 23:48:37 +0000 | [diff] [blame] | 79 | |
Anand Shukla | 11f4262 | 2002-07-08 19:36:01 +0000 | [diff] [blame] | 80 | //increment counter for instrumented functions. mn is now function# |
| 81 | mn++; |
Misha Brukman | b1c9317 | 2005-04-21 23:48:37 +0000 | [diff] [blame] | 82 | |
Chris Lattner | f998685 | 2002-04-27 07:27:19 +0000 | [diff] [blame] | 83 | // Transform the cfg s.t. we have just one exit node |
Misha Brukman | b1c9317 | 2005-04-21 23:48:37 +0000 | [diff] [blame] | 84 | BasicBlock *ExitNode = |
| 85 | getAnalysis<UnifyFunctionExitNodes>().getReturnBlock(); |
Anand Shukla | 2190689 | 2002-06-25 21:14:58 +0000 | [diff] [blame] | 86 | |
| 87 | //iterating over BBs and making graph |
| 88 | std::vector<Node *> nodes; |
| 89 | std::vector<Edge> edges; |
| 90 | |
Chris Lattner | a2620ac | 2002-11-09 00:49:43 +0000 | [diff] [blame] | 91 | Node *exitNode = 0, *startNode = 0; |
Anand Shukla | 70a6138 | 2002-02-26 19:00:48 +0000 | [diff] [blame] | 92 | |
Misha Brukman | 8b2bd4e | 2003-10-10 17:57:28 +0000 | [diff] [blame] | 93 | // The nodes must be uniquely identified: |
Chris Lattner | f998685 | 2002-04-27 07:27:19 +0000 | [diff] [blame] | 94 | // That is, no two nodes must hav same BB* |
Misha Brukman | b1c9317 | 2005-04-21 23:48:37 +0000 | [diff] [blame] | 95 | |
Chris Lattner | 7076ff2 | 2002-06-25 16:13:21 +0000 | [diff] [blame] | 96 | for (Function::iterator BB = F.begin(), BE = F.end(); BB != BE; ++BB) { |
| 97 | Node *nd=new Node(BB); |
Misha Brukman | b1c9317 | 2005-04-21 23:48:37 +0000 | [diff] [blame] | 98 | nodes.push_back(nd); |
Chris Lattner | 7076ff2 | 2002-06-25 16:13:21 +0000 | [diff] [blame] | 99 | if(&*BB == ExitNode) |
Anand Shukla | 70a6138 | 2002-02-26 19:00:48 +0000 | [diff] [blame] | 100 | exitNode=nd; |
Chris Lattner | 889f620 | 2003-04-23 16:37:45 +0000 | [diff] [blame] | 101 | if(BB==F.begin()) |
Anand Shukla | 70a6138 | 2002-02-26 19:00:48 +0000 | [diff] [blame] | 102 | startNode=nd; |
| 103 | } |
| 104 | |
Misha Brukman | 8b2bd4e | 2003-10-10 17:57:28 +0000 | [diff] [blame] | 105 | // now do it again to insert edges |
Chris Lattner | 7076ff2 | 2002-06-25 16:13:21 +0000 | [diff] [blame] | 106 | for (Function::iterator BB = F.begin(), BE = F.end(); BB != BE; ++BB){ |
| 107 | Node *nd=findBB(nodes, BB); |
Anand Shukla | 70a6138 | 2002-02-26 19:00:48 +0000 | [diff] [blame] | 108 | assert(nd && "No node for this edge!"); |
Anand Shukla | 2190689 | 2002-06-25 21:14:58 +0000 | [diff] [blame] | 109 | |
Chris Lattner | a940095 | 2003-09-24 22:06:25 +0000 | [diff] [blame] | 110 | for(succ_iterator s=succ_begin(BB), se=succ_end(BB); s!=se; ++s){ |
Anand Shukla | 70a6138 | 2002-02-26 19:00:48 +0000 | [diff] [blame] | 111 | Node *nd2=findBB(nodes,*s); |
| 112 | assert(nd2 && "No node for this edge!"); |
| 113 | Edge ed(nd,nd2,0); |
Anand Shukla | 2190689 | 2002-06-25 21:14:58 +0000 | [diff] [blame] | 114 | edges.push_back(ed); |
Anand Shukla | 70a6138 | 2002-02-26 19:00:48 +0000 | [diff] [blame] | 115 | } |
| 116 | } |
Misha Brukman | b1c9317 | 2005-04-21 23:48:37 +0000 | [diff] [blame] | 117 | |
Anand Shukla | 70a6138 | 2002-02-26 19:00:48 +0000 | [diff] [blame] | 118 | Graph g(nodes,edges, startNode, exitNode); |
| 119 | |
Misha Brukman | b1c9317 | 2005-04-21 23:48:37 +0000 | [diff] [blame] | 120 | #ifdef DEBUG_PATH_PROFILES |
Anand Shukla | d9a6af0 | 2002-09-16 05:24:49 +0000 | [diff] [blame] | 121 | std::cerr<<"Original graph\n"; |
| 122 | printGraph(g); |
| 123 | #endif |
Anand Shukla | 70a6138 | 2002-02-26 19:00:48 +0000 | [diff] [blame] | 124 | |
Anand Shukla | 11f4262 | 2002-07-08 19:36:01 +0000 | [diff] [blame] | 125 | BasicBlock *fr = &F.front(); |
Misha Brukman | b1c9317 | 2005-04-21 23:48:37 +0000 | [diff] [blame] | 126 | |
Anand Shukla | 11f4262 | 2002-07-08 19:36:01 +0000 | [diff] [blame] | 127 | // The graph is made acyclic: this is done |
| 128 | // by removing back edges for now, and adding them later on |
Chris Lattner | 10a032a | 2003-09-10 20:35:33 +0000 | [diff] [blame] | 129 | std::vector<Edge> be; |
Anand Shukla | fd61c60 | 2002-07-18 20:56:47 +0000 | [diff] [blame] | 130 | std::map<Node *, int> nodePriority; //it ranks nodes in depth first order traversal |
| 131 | g.getBackEdges(be, nodePriority); |
Misha Brukman | b1c9317 | 2005-04-21 23:48:37 +0000 | [diff] [blame] | 132 | |
Anand Shukla | d9a6af0 | 2002-09-16 05:24:49 +0000 | [diff] [blame] | 133 | #ifdef DEBUG_PATH_PROFILES |
| 134 | std::cerr<<"BackEdges-------------\n"; |
Chris Lattner | 10a032a | 2003-09-10 20:35:33 +0000 | [diff] [blame] | 135 | for (std::vector<Edge>::iterator VI=be.begin(); VI!=be.end(); ++VI){ |
Anand Shukla | d9a6af0 | 2002-09-16 05:24:49 +0000 | [diff] [blame] | 136 | printEdge(*VI); |
| 137 | cerr<<"\n"; |
| 138 | } |
| 139 | std::cerr<<"------\n"; |
| 140 | #endif |
Anand Shukla | 2190689 | 2002-06-25 21:14:58 +0000 | [diff] [blame] | 141 | |
| 142 | #ifdef DEBUG_PATH_PROFILES |
Anand Shukla | 11f4262 | 2002-07-08 19:36:01 +0000 | [diff] [blame] | 143 | cerr<<"Backedges:"<<be.size()<<endl; |
Anand Shukla | 2190689 | 2002-06-25 21:14:58 +0000 | [diff] [blame] | 144 | #endif |
Anand Shukla | 11f4262 | 2002-07-08 19:36:01 +0000 | [diff] [blame] | 145 | //Now we need to reflect the effect of back edges |
| 146 | //This is done by adding dummy edges |
| 147 | //If a->b is a back edge |
| 148 | //Then we add 2 back edges for it: |
| 149 | //1. from root->b (in vector stDummy) |
| 150 | //and 2. from a->exit (in vector exDummy) |
Chris Lattner | 10a032a | 2003-09-10 20:35:33 +0000 | [diff] [blame] | 151 | std::vector<Edge> stDummy; |
| 152 | std::vector<Edge> exDummy; |
Anand Shukla | 11f4262 | 2002-07-08 19:36:01 +0000 | [diff] [blame] | 153 | addDummyEdges(stDummy, exDummy, g, be); |
Anand Shukla | 2190689 | 2002-06-25 21:14:58 +0000 | [diff] [blame] | 154 | |
Anand Shukla | d9a6af0 | 2002-09-16 05:24:49 +0000 | [diff] [blame] | 155 | #ifdef DEBUG_PATH_PROFILES |
| 156 | std::cerr<<"After adding dummy edges\n"; |
| 157 | printGraph(g); |
| 158 | #endif |
| 159 | |
Anand Shukla | 11f4262 | 2002-07-08 19:36:01 +0000 | [diff] [blame] | 160 | // Now, every edge in the graph is assigned a weight |
| 161 | // This weight later adds on to assign path |
| 162 | // numbers to different paths in the graph |
| 163 | // All paths for now are acyclic, |
| 164 | // since no back edges in the graph now |
| 165 | // numPaths is the number of acyclic paths in the graph |
Anand Shukla | d9a6af0 | 2002-09-16 05:24:49 +0000 | [diff] [blame] | 166 | int numPaths=valueAssignmentToEdges(g, nodePriority, be); |
Anand Shukla | 2190689 | 2002-06-25 21:14:58 +0000 | [diff] [blame] | 167 | |
Anand Shukla | f8c09ee | 2003-02-14 20:41:53 +0000 | [diff] [blame] | 168 | //if(numPaths<=1) return false; |
| 169 | |
Anand Shukla | 2fd8edd | 2003-06-05 06:02:46 +0000 | [diff] [blame] | 170 | static GlobalVariable *threshold = NULL; |
| 171 | static bool insertedThreshold = false; |
| 172 | |
| 173 | if(!insertedThreshold){ |
| 174 | threshold = new GlobalVariable(Type::IntTy, false, |
| 175 | GlobalValue::ExternalLinkage, 0, |
| 176 | "reopt_threshold"); |
| 177 | |
| 178 | F.getParent()->getGlobalList().push_back(threshold); |
| 179 | insertedThreshold = true; |
| 180 | } |
| 181 | |
| 182 | assert(threshold && "GlobalVariable threshold not defined!"); |
| 183 | |
| 184 | |
| 185 | if(fr->getParent()->getName() == "main"){ |
Misha Brukman | 8b2bd4e | 2003-10-10 17:57:28 +0000 | [diff] [blame] | 186 | //initialize threshold |
Chris Lattner | 25bc3f8 | 2003-08-31 00:21:59 +0000 | [diff] [blame] | 187 | |
| 188 | // FIXME: THIS IS HORRIBLY BROKEN. FUNCTION PASSES CANNOT DO THIS, EXCEPT |
| 189 | // IN THEIR INITIALIZE METHOD!! |
| 190 | Function *initialize = |
| 191 | F.getParent()->getOrInsertFunction("reoptimizerInitialize", Type::VoidTy, |
| 192 | PointerType::get(Type::IntTy), 0); |
Misha Brukman | b1c9317 | 2005-04-21 23:48:37 +0000 | [diff] [blame] | 193 | |
Chris Lattner | 10a032a | 2003-09-10 20:35:33 +0000 | [diff] [blame] | 194 | std::vector<Value *> trargs; |
Anand Shukla | 2fd8edd | 2003-06-05 06:02:46 +0000 | [diff] [blame] | 195 | trargs.push_back(threshold); |
Chris Lattner | 25bc3f8 | 2003-08-31 00:21:59 +0000 | [diff] [blame] | 196 | new CallInst(initialize, trargs, "", fr->begin()); |
Anand Shukla | 2fd8edd | 2003-06-05 06:02:46 +0000 | [diff] [blame] | 197 | } |
| 198 | |
| 199 | |
Anand Shukla | fd61c60 | 2002-07-18 20:56:47 +0000 | [diff] [blame] | 200 | if(numPaths<=1 || numPaths >5000) return false; |
Misha Brukman | b1c9317 | 2005-04-21 23:48:37 +0000 | [diff] [blame] | 201 | |
| 202 | #ifdef DEBUG_PATH_PROFILES |
Anand Shukla | d9a6af0 | 2002-09-16 05:24:49 +0000 | [diff] [blame] | 203 | printGraph(g); |
| 204 | #endif |
| 205 | |
Anand Shukla | 11f4262 | 2002-07-08 19:36:01 +0000 | [diff] [blame] | 206 | //create instruction allocation r and count |
| 207 | //r is the variable that'll act like an accumulator |
| 208 | //all along the path, we just add edge values to r |
| 209 | //and at the end, r reflects the path number |
| 210 | //count is an array: count[x] would store |
| 211 | //the number of executions of path numbered x |
Anand Shukla | 2190689 | 2002-06-25 21:14:58 +0000 | [diff] [blame] | 212 | |
Misha Brukman | b1c9317 | 2005-04-21 23:48:37 +0000 | [diff] [blame] | 213 | Instruction *rVar=new |
| 214 | AllocaInst(Type::IntTy, |
Anand Shukla | 11f4262 | 2002-07-08 19:36:01 +0000 | [diff] [blame] | 215 | ConstantUInt::get(Type::UIntTy,1),"R"); |
Anand Shukla | d9a6af0 | 2002-09-16 05:24:49 +0000 | [diff] [blame] | 216 | |
Misha Brukman | b1c9317 | 2005-04-21 23:48:37 +0000 | [diff] [blame] | 217 | //Instruction *countVar=new |
| 218 | //AllocaInst(Type::IntTy, |
Anand Shukla | f8c09ee | 2003-02-14 20:41:53 +0000 | [diff] [blame] | 219 | // ConstantUInt::get(Type::UIntTy, numPaths), "Count"); |
| 220 | |
| 221 | //initialize counter array! |
| 222 | std::vector<Constant*> arrayInitialize; |
| 223 | for(int xi=0; xi<numPaths; xi++) |
| 224 | arrayInitialize.push_back(ConstantSInt::get(Type::IntTy, 0)); |
| 225 | |
Chris Lattner | 379a8d2 | 2003-04-16 20:28:45 +0000 | [diff] [blame] | 226 | const ArrayType *ATy = ArrayType::get(Type::IntTy, numPaths); |
| 227 | Constant *initializer = ConstantArray::get(ATy, arrayInitialize); |
Anand Shukla | 2fd8edd | 2003-06-05 06:02:46 +0000 | [diff] [blame] | 228 | char tempChar[20]; |
| 229 | sprintf(tempChar, "Count%d", CountCounter); |
| 230 | CountCounter++; |
| 231 | std::string countStr = tempChar; |
Chris Lattner | 379a8d2 | 2003-04-16 20:28:45 +0000 | [diff] [blame] | 232 | GlobalVariable *countVar = new GlobalVariable(ATy, false, |
Misha Brukman | b1c9317 | 2005-04-21 23:48:37 +0000 | [diff] [blame] | 233 | GlobalValue::InternalLinkage, |
Anand Shukla | 2fd8edd | 2003-06-05 06:02:46 +0000 | [diff] [blame] | 234 | initializer, countStr, |
Chris Lattner | 379a8d2 | 2003-04-16 20:28:45 +0000 | [diff] [blame] | 235 | F.getParent()); |
Misha Brukman | b1c9317 | 2005-04-21 23:48:37 +0000 | [diff] [blame] | 236 | |
Anand Shukla | 11f4262 | 2002-07-08 19:36:01 +0000 | [diff] [blame] | 237 | // insert initialization code in first (entry) BB |
| 238 | // this includes initializing r and count |
Chris Lattner | 5dac64f | 2003-09-20 14:39:18 +0000 | [diff] [blame] | 239 | insertInTopBB(&F.getEntryBlock(), numPaths, rVar, threshold); |
Misha Brukman | b1c9317 | 2005-04-21 23:48:37 +0000 | [diff] [blame] | 240 | |
Anand Shukla | 11f4262 | 2002-07-08 19:36:01 +0000 | [diff] [blame] | 241 | //now process the graph: get path numbers, |
| 242 | //get increments along different paths, |
| 243 | //and assign "increments" and "updates" (to r and count) |
| 244 | //"optimally". Finally, insert llvm code along various edges |
Misha Brukman | b1c9317 | 2005-04-21 23:48:37 +0000 | [diff] [blame] | 245 | processGraph(g, rVar, countVar, be, stDummy, exDummy, numPaths, mn, |
| 246 | threshold); |
| 247 | |
Chris Lattner | 62b7fd1 | 2002-04-07 20:49:59 +0000 | [diff] [blame] | 248 | return true; // Always modifies function |
Anand Shukla | 70a6138 | 2002-02-26 19:00:48 +0000 | [diff] [blame] | 249 | } |
Brian Gaeke | 960707c | 2003-11-11 22:41:34 +0000 | [diff] [blame] | 250 | |
| 251 | } // End llvm namespace |