From: Dan Gohman Date: Tue, 13 Oct 2009 23:36:36 +0000 (+0000) Subject: Fix resetCachedCostInfo to reset all of the cost information, instead of X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=68cf03a314f19935d9096ad22dfe7d4fdcbb5c19;p=oota-llvm.git 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 --- diff --git a/include/llvm/Analysis/InlineCost.h b/include/llvm/Analysis/InlineCost.h index d723e75e29f..7ce49d7de33 100644 --- a/include/llvm/Analysis/InlineCost.h +++ b/include/llvm/Analysis/InlineCost.h @@ -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(); } }; }