diff options
author | Dan Gohman <gohman@apple.com> | 2009-10-13 23:36:36 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-10-13 23:36:36 +0000 |
commit | 68cf03a314f19935d9096ad22dfe7d4fdcbb5c19 (patch) | |
tree | e7aa92b6156b2938eaf20138e94c03a5b349395a /include/llvm/Analysis/InlineCost.h | |
parent | 079469f649d8da3923b9f747d7062c84e01cc4ae (diff) | |
download | external_llvm-68cf03a314f19935d9096ad22dfe7d4fdcbb5c19.zip external_llvm-68cf03a314f19935d9096ad22dfe7d4fdcbb5c19.tar.gz external_llvm-68cf03a314f19935d9096ad22dfe7d4fdcbb5c19.tar.bz2 |
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
Diffstat (limited to 'include/llvm/Analysis/InlineCost.h')
-rw-r--r-- | include/llvm/Analysis/InlineCost.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Analysis/InlineCost.h b/include/llvm/Analysis/InlineCost.h index d723e75..7ce49d7 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(); } }; } |