For each function that we optimize we initialize a new list of lib functions. For...
authorNadav Rotem <nrotem@apple.com>
Wed, 27 Feb 2013 05:53:43 +0000 (05:53 +0000)
committerNadav Rotem <nrotem@apple.com>
Wed, 27 Feb 2013 05:53:43 +0000 (05:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176170 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/SimplifyLibCalls.cpp

index 8ad566c893c0a22ee770b6e63e74682dc4f3df0d..9b39bf40c883433f24794ca12eb4e5f260ec8db9 100644 (file)
@@ -23,6 +23,7 @@
 #include "llvm/IR/Intrinsics.h"
 #include "llvm/IR/LLVMContext.h"
 #include "llvm/IR/Module.h"
+#include "llvm/Support/Allocator.h"
 #include "llvm/Target/TargetLibraryInfo.h"
 #include "llvm/Transforms/Utils/BuildLibCalls.h"
 
@@ -1672,7 +1673,7 @@ class LibCallSimplifierImpl {
   const TargetLibraryInfo *TLI;
   const LibCallSimplifier *LCS;
   bool UnsafeFPShrink;
-  StringMap<LibCallOptimization*> Optimizations;
+  StringMap<LibCallOptimization*, BumpPtrAllocator> Optimizations;
 
   // Fortified library call optimizations.
   MemCpyChkOpt MemCpyChk;