[llvm-branch-commits] [llvm-branch] r101519 - /llvm/branches/Apple/Morbo/include/llvm/Analysis/InlineCost.h
Dale Johannesen
dalej at apple.com
Fri Apr 16 11:44:10 PDT 2010
Author: johannes
Date: Fri Apr 16 13:44:10 2010
New Revision: 101519
URL: http://llvm.org/viewvc/llvm-project?rev=101519&view=rev
Log:
--- Merging r101503 into '.':
U include/llvm/Analysis/InlineCost.h
Modified:
llvm/branches/Apple/Morbo/include/llvm/Analysis/InlineCost.h
Modified: llvm/branches/Apple/Morbo/include/llvm/Analysis/InlineCost.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Morbo/include/llvm/Analysis/InlineCost.h?rev=101519&r1=101518&r2=101519&view=diff
==============================================================================
--- llvm/branches/Apple/Morbo/include/llvm/Analysis/InlineCost.h (original)
+++ llvm/branches/Apple/Morbo/include/llvm/Analysis/InlineCost.h Fri Apr 16 13:44:10 2010
@@ -19,6 +19,7 @@
#include <map>
#include <vector>
#include "llvm/ADT/DenseMap.h"
+#include "llvm/ADT/ValueMap.h"
namespace llvm {
@@ -165,7 +166,9 @@
void analyzeFunction(Function *F);
};
- std::map<const Function *, FunctionInfo> CachedFunctionInfo;
+ // The Function* for a function can be changed (by ArgumentPromotion);
+ // the ValueMap will update itself when this happens.
+ ValueMap<const Function *, FunctionInfo> CachedFunctionInfo;
public:
More information about the llvm-branch-commits
mailing list