summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-10-13 23:36:36 +0000
committerDan Gohman <gohman@apple.com>2009-10-13 23:36:36 +0000
commit68cf03a314f19935d9096ad22dfe7d4fdcbb5c19 (patch)
treee7aa92b6156b2938eaf20138e94c03a5b349395a
parent079469f649d8da3923b9f747d7062c84e01cc4ae (diff)
downloadllvm-68cf03a314f19935d9096ad22dfe7d4fdcbb5c19.tar.gz
llvm-68cf03a314f19935d9096ad22dfe7d4fdcbb5c19.tar.bz2
llvm-68cf03a314f19935d9096ad22dfe7d4fdcbb5c19.tar.xz
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
-rw-r--r--include/llvm/Analysis/InlineCost.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Analysis/InlineCost.h b/include/llvm/Analysis/InlineCost.h
index d723e75e29..7ce49d7de3 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();
}
};
}