Fix resetCachedCostInfo to reset all of the cost information, instead of

just the NumBlocks field.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84056 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2009-10-13 23:36:36 +00:00
parent 079469f649
commit 68cf03a314

View File

@ -172,7 +172,7 @@ namespace llvm {
/// resetCachedFunctionInfo - erase any cached cost info for this function.
void resetCachedCostInfo(Function* Caller) {
CachedFunctionInfo[Caller].Metrics.NumBlocks = 0;
CachedFunctionInfo[Caller] = FunctionInfo();
}
};
}