[llvm-commits] CVS: reopt/lib/TraceToFunction/TraceToFunction.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Fri May 21 02:46:01 PDT 2004
Changes in directory reopt/lib/TraceToFunction:
TraceToFunction.cpp updated: 1.52 -> 1.53
---
Log message:
Simplify isFirstTriggerCall(); eliminate debug message.
---
Diffs of the changes: (+2 -6)
Index: reopt/lib/TraceToFunction/TraceToFunction.cpp
diff -u reopt/lib/TraceToFunction/TraceToFunction.cpp:1.52 reopt/lib/TraceToFunction/TraceToFunction.cpp:1.53
--- reopt/lib/TraceToFunction/TraceToFunction.cpp:1.52 Thu May 20 15:38:04 2004
+++ reopt/lib/TraceToFunction/TraceToFunction.cpp Fri May 21 02:45:05 2004
@@ -308,12 +308,8 @@
if (CallInst *CI = dyn_cast<CallInst> (&I)) {
Function *CF = CI->getCalledFunction ();
// Look for an external function call with no args to "llvm_first_trigger".
- if (CF && CF->isExternal () && CF->hasName()
- && CF->getName () == "llvm_first_trigger" && CF->asize () == 0) {
- DEBUG(std::cerr << " (Found a call instruction " << *CI
- << " ... Smells like llvm_first_trigger.)\n");
- return true;
- }
+ return (CF && CF->isExternal () && CF->hasName()
+ && CF->getName () == "llvm_first_trigger" && CF->asize () == 0);
}
return false;
}
More information about the llvm-commits
mailing list