[llvm-commits] CVS: llvm/lib/Transforms/Instrumentation/ProfilePaths/CombineBranch.cpp InstLoops.cpp ProfilePaths.cpp RetracePath.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Sep 24 17:07:00 PDT 2003
Changes in directory llvm/lib/Transforms/Instrumentation/ProfilePaths:
CombineBranch.cpp updated: 1.2 -> 1.3
InstLoops.cpp updated: 1.7 -> 1.8
ProfilePaths.cpp updated: 1.32 -> 1.33
RetracePath.cpp updated: 1.4 -> 1.5
---
Log message:
Do not use BasicBlock::*_iterator, just use *_iterator itself.
Isn't updating copy and pasted code a joy
---
Diffs of the changes:
Index: llvm/lib/Transforms/Instrumentation/ProfilePaths/CombineBranch.cpp
diff -u llvm/lib/Transforms/Instrumentation/ProfilePaths/CombineBranch.cpp:1.2 llvm/lib/Transforms/Instrumentation/ProfilePaths/CombineBranch.cpp:1.3
--- llvm/lib/Transforms/Instrumentation/ProfilePaths/CombineBranch.cpp:1.2 Fri Sep 5 14:43:19 2003
+++ llvm/lib/Transforms/Instrumentation/ProfilePaths/CombineBranch.cpp Wed Sep 24 17:06:25 2003
@@ -57,8 +57,7 @@
time++;
d[u]=time;
- for(BasicBlock::succ_iterator vl = succ_begin(u),
- ve = succ_end(u); vl != ve; ++vl){
+ for (succ_iterator vl = succ_begin(u), ve = succ_end(u); vl != ve; ++vl){
BasicBlock *BB = *vl;
Index: llvm/lib/Transforms/Instrumentation/ProfilePaths/InstLoops.cpp
diff -u llvm/lib/Transforms/Instrumentation/ProfilePaths/InstLoops.cpp:1.7 llvm/lib/Transforms/Instrumentation/ProfilePaths/InstLoops.cpp:1.8
--- llvm/lib/Transforms/Instrumentation/ProfilePaths/InstLoops.cpp:1.7 Fri Sep 5 14:43:19 2003
+++ llvm/lib/Transforms/Instrumentation/ProfilePaths/InstLoops.cpp Wed Sep 24 17:06:25 2003
@@ -58,8 +58,7 @@
time++;
d[u]=time;
- for(BasicBlock::succ_iterator vl = succ_begin(u),
- ve = succ_end(u); vl != ve; ++vl){
+ for(succ_iterator vl = succ_begin(u), ve = succ_end(u); vl != ve; ++vl){
BasicBlock *BB = *vl;
if(color[BB]!=GREY && color[BB]!=BLACK){
Index: llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp
diff -u llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp:1.32 llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp:1.33
--- llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp:1.32 Sat Sep 20 09:38:49 2003
+++ llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp Wed Sep 24 17:06:25 2003
@@ -98,8 +98,7 @@
Node *nd=findBB(nodes, BB);
assert(nd && "No node for this edge!");
- for(BasicBlock::succ_iterator s=succ_begin(BB), se=succ_end(BB);
- s!=se; ++s){
+ for(succ_iterator s=succ_begin(BB), se=succ_end(BB); s!=se; ++s){
Node *nd2=findBB(nodes,*s);
assert(nd2 && "No node for this edge!");
Edge ed(nd,nd2,0);
Index: llvm/lib/Transforms/Instrumentation/ProfilePaths/RetracePath.cpp
diff -u llvm/lib/Transforms/Instrumentation/ProfilePaths/RetracePath.cpp:1.4 llvm/lib/Transforms/Instrumentation/ProfilePaths/RetracePath.cpp:1.5
--- llvm/lib/Transforms/Instrumentation/ProfilePaths/RetracePath.cpp:1.4 Wed Apr 23 11:37:41 2003
+++ llvm/lib/Transforms/Instrumentation/ProfilePaths/RetracePath.cpp Wed Sep 24 17:06:25 2003
@@ -216,8 +216,7 @@
Node *nd=findBB(nodes, BB);
assert(nd && "No node for this edge!");
- for(BasicBlock::succ_iterator s=succ_begin(BB), se=succ_end(BB);
- s!=se; ++s){
+ for(succ_iterator s=succ_begin(BB), se=succ_end(BB); s!=se; ++s){
if(triggerBBs[*s] == 9){
//if(!pathReg[M]){ //Get the path register for this!
More information about the llvm-commits
mailing list