mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Use a ValueMap not a std::map for the reason indicated
in the comment. This was causing nondeterministic changes in inlining decisions. llvm-svn: 101503
This commit is contained in:
parent
80afc6964c
commit
759091323b
@ -19,6 +19,7 @@
|
||||
#include <map>
|
||||
#include <vector>
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
#include "llvm/ADT/ValueMap.h"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
@ -165,7 +166,9 @@ namespace llvm {
|
||||
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:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user