[llvm-commits] CVS: reopt/lib/LightWtProfiling/RuntimeOptimizations.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Thu Sep 23 12:48:45 PDT 2004
Changes in directory reopt/lib/LightWtProfiling:
RuntimeOptimizations.cpp updated: 1.50 -> 1.51
---
Log message:
Always skip traces containing calls (regardless of DEBUG setting).
---
Diffs of the changes: (+7 -5)
Index: reopt/lib/LightWtProfiling/RuntimeOptimizations.cpp
diff -u reopt/lib/LightWtProfiling/RuntimeOptimizations.cpp:1.50 reopt/lib/LightWtProfiling/RuntimeOptimizations.cpp:1.51
--- reopt/lib/LightWtProfiling/RuntimeOptimizations.cpp:1.50 Thu Sep 2 11:55:43 2004
+++ reopt/lib/LightWtProfiling/RuntimeOptimizations.cpp Thu Sep 23 14:48:33 2004
@@ -84,12 +84,14 @@
// Turn the vector of basic blocks into a Trace.
Trace T (vBB);
+ if (TraceContainsCall (T))
+ return false;
+
DEBUG(++TraceCount;
- if ((!AllowCalls && TraceContainsCall (T))
- || (skipTrace.find (TraceCount) != skipTrace.end ())) {
- std::cerr << "optimizeTrace: skipping trace " << TraceCount << "\n";
- return false;
- });
+ if ((skipTrace.find (TraceCount) != skipTrace.end ())) {
+ std::cerr << "optimizeTrace: skipping trace " << TraceCount << "\n";
+ return false;
+ });
// Initialization stuff: ensure module has been read in, and allocate a
// target machine, if there isn't one already.
More information about the llvm-commits
mailing list