[llvm-commits] CVS: llvm/lib/Transforms/Utils/CloneTrace.cpp

Tanya Brethour tbrethou at cs.uiuc.edu
Sat May 31 15:02:10 PDT 2003


Changes in directory llvm/lib/Transforms/Utils:

CloneTrace.cpp updated: 1.1 -> 1.2

---
Log message:

Fixed comment width, changed arg to be const, fixed indentation, removed unnecessary includes. 


---
Diffs of the changes:

Index: llvm/lib/Transforms/Utils/CloneTrace.cpp
diff -u llvm/lib/Transforms/Utils/CloneTrace.cpp:1.1 llvm/lib/Transforms/Utils/CloneTrace.cpp:1.2
--- llvm/lib/Transforms/Utils/CloneTrace.cpp:1.1	Fri May 30 10:50:18 2003
+++ llvm/lib/Transforms/Utils/CloneTrace.cpp	Sat May 31 15:01:28 2003
@@ -1,22 +1,20 @@
-//===- CloneTrace.cpp - Clone a trace ---------===//
+//===- CloneTrace.cpp - Clone a trace -------------------------------------===//
 //
 // This file implements the CloneTrace interface, which is used 
 // when writing runtime optimizations. It takes a vector of basic blocks
-// removes internal phi nodes, clones the basic blocks, and returns the new
-// vector of basic blocks.
+// clones the basic blocks, removes internal phi nodes, adds it to the
+// same function as the original (although there is no jump to it) and 
+// returns the new vector of basic blocks.
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/Instruction.h"
-#include "llvm/BasicBlock.h"
+#include "llvm/Transforms/Utils/Cloning.h"
 #include "llvm/iPHINode.h"
 #include "llvm/Function.h"
-#include "llvm/Transforms/Utils/Cloning.h"
-#include <map>
 
 
 //Clones the trace (a vector of basic blocks)
-std::vector<BasicBlock *> CloneTrace(std::vector<BasicBlock*> &origTrace) {
+std::vector<BasicBlock *> CloneTrace(const std::vector<BasicBlock*> &origTrace) {
 
   std::vector<BasicBlock *> clonedTrace;
   std::map<const Value*, Value*> ValueMap;





More information about the llvm-commits mailing list