[llvm-commits] CVS: llvm/lib/Transforms/Instrumentation/ProfilePaths/EdgeCode.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Sep 14 14:34:01 PDT 2002
Changes in directory llvm/lib/Transforms/Instrumentation/ProfilePaths:
EdgeCode.cpp updated: 1.14 -> 1.15
---
Log message:
Fix bug I introduced
---
Diffs of the changes:
Index: llvm/lib/Transforms/Instrumentation/ProfilePaths/EdgeCode.cpp
diff -u llvm/lib/Transforms/Instrumentation/ProfilePaths/EdgeCode.cpp:1.14 llvm/lib/Transforms/Instrumentation/ProfilePaths/EdgeCode.cpp:1.15
--- llvm/lib/Transforms/Instrumentation/ProfilePaths/EdgeCode.cpp:1.14 Tue Sep 10 20:21:29 2002
+++ llvm/lib/Transforms/Instrumentation/ProfilePaths/EdgeCode.cpp Sat Sep 14 14:33:16 2002
@@ -282,9 +282,6 @@
TerminatorInst *TI=BB1->getTerminator();
BasicBlock *newBB=new BasicBlock(ctr, BB1->getParent());
- //get code for the new BB
- edgeCode->getCode(rInst, countInst, BB1->getParent(), newBB, numPaths, Methno);
-
//Is terminator a branch instruction?
//then we need to change branch destinations to include new BB
@@ -309,6 +306,10 @@
Instruction *newBI2=new BranchInst(BB2);
newBB->getInstList().push_back(newBI2);
}
+
+ //get code for the new BB
+ edgeCode->getCode(rInst, countInst, BB1->getParent(), newBB, numPaths, Methno);
+
//std::cerr<<"After casting\n";
//get code for the new BB
More information about the llvm-commits
mailing list