[llvm-commits] CVS: llvm/lib/Reoptimizer/LightWtProfiling/Trigger/SLI.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Mon Aug 18 15:35:13 PDT 2003
Changes in directory llvm/lib/Reoptimizer/LightWtProfiling/Trigger:
SLI.cpp updated: 1.3 -> 1.4
---
Log message:
Fix the order of the #includes to match the other files.
Include Support/Debug.h.
Turn #ifdef GET_ALL_INFO...#endif into DEBUG(...).
---
Diffs of the changes:
Index: llvm/lib/Reoptimizer/LightWtProfiling/Trigger/SLI.cpp
diff -u llvm/lib/Reoptimizer/LightWtProfiling/Trigger/SLI.cpp:1.3 llvm/lib/Reoptimizer/LightWtProfiling/Trigger/SLI.cpp:1.4
--- llvm/lib/Reoptimizer/LightWtProfiling/Trigger/SLI.cpp:1.3 Tue Aug 12 22:05:58 2003
+++ llvm/lib/Reoptimizer/LightWtProfiling/Trigger/SLI.cpp Mon Aug 18 15:34:10 2003
@@ -1,13 +1,14 @@
+#include "GetTimer.h"
+#include "Globals.h"
+#include "Support/DataTypes.h"
+#include "Support/Debug.h"
#include "llvm/Reoptimizer/Mapping/LLVMinfo.h"
#include "llvm/Reoptimizer/InstrUtils.h"
#include "llvm/Reoptimizer/TraceCache.h"
#include "llvm/Reoptimizer/VirtualMem.h"
#include "llvm/iTerminators.h"
-#include "Support/DataTypes.h"
#include "llvm/Support/CFG.h"
#include "llvm/Module.h"
-#include "GetTimer.h"
-#include "Globals.h"
#include <algorithm>
using namespace std;
@@ -485,10 +486,8 @@
std::cerr<<"Could not add!\n";
}
-#ifdef GET_ALL_INFO
- std::cerr<<"Added-SLI-trace\t"<<(void *)addr1<<"\t"<<(void *)endAddr
- <<"\t"<<trace.size()<<"\n";
-#endif
+ DEBUG(std::cerr << "Added-SLI-trace\t" << (void *)addr1 << "\t"
+ << (void *)endAddr << "\t" << trace.size() << "\n");
for(map<uint64_t, int>::iterator MI = toInline.begin(), ME = toInline.end();
MI != ME; ++MI){
@@ -716,10 +715,8 @@
}
}
-#ifdef GET_ALL_INFO
- std::cerr<<"Added-SLI-inline\t"<<(void *)addr1<<"\t"<<trace.size()<<"\n";
-#endif
- //}
+ DEBUG(std::cerr << "Added-SLI-inline\t" << (void *)addr1 << "\t" <<
+ trace.size() << "\n");
for(map<uint64_t, int>::iterator MI = toInline.begin(), ME = toInline.end();
MI != ME; ++MI){
More information about the llvm-commits
mailing list