[llvm-commits] [llvm] r84056 - /llvm/trunk/include/llvm/Analysis/InlineCost.h
Dan Gohman
gohman at apple.com
Tue Oct 13 16:36:36 PDT 2009
Author: djg
Date: Tue Oct 13 18:36:36 2009
New Revision: 84056
URL: http://llvm.org/viewvc/llvm-project?rev=84056&view=rev
Log:
Fix resetCachedCostInfo to reset all of the cost information, instead of
just the NumBlocks field.
Modified:
llvm/trunk/include/llvm/Analysis/InlineCost.h
Modified: llvm/trunk/include/llvm/Analysis/InlineCost.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/InlineCost.h?rev=84056&r1=84055&r2=84056&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/InlineCost.h (original)
+++ llvm/trunk/include/llvm/Analysis/InlineCost.h Tue Oct 13 18:36:36 2009
@@ -172,7 +172,7 @@
/// resetCachedFunctionInfo - erase any cached cost info for this function.
void resetCachedCostInfo(Function* Caller) {
- CachedFunctionInfo[Caller].Metrics.NumBlocks = 0;
+ CachedFunctionInfo[Caller] = FunctionInfo();
}
};
}
More information about the llvm-commits
mailing list