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 | c0779370e7cd34aec02e442905842742a220cc48 (patch) | |
tree | 0df76661130b1fdcfb258494602793ffd26aa308 | |
parent | 3a80daced04244c4933fcf0f94047861b24bf493 (diff) | |
download | bcm5719-llvm-c0779370e7cd34aec02e442905842742a220cc48.tar.gz bcm5719-llvm-c0779370e7cd34aec02e442905842742a220cc48.zip |
Fix resetCachedCostInfo to reset all of the cost information, instead of
just the NumBlocks field.
llvm-svn: 84056
-rw-r--r-- | llvm/include/llvm/Analysis/InlineCost.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Analysis/InlineCost.h b/llvm/include/llvm/Analysis/InlineCost.h index d723e75e29f..7ce49d7de33 100644 --- a/llvm/include/llvm/Analysis/InlineCost.h +++ b/llvm/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(); } }; } |