diff options
author | Michael Ilseman <milseman@apple.com> | 2013-03-01 18:48:54 +0000 |
---|---|---|
committer | Michael Ilseman <milseman@apple.com> | 2013-03-01 18:48:54 +0000 |
commit | 516d70399e8d83b10039d59d9c7f8d3aedf5b980 (patch) | |
tree | 0213ef72aeb3eb11850d4b81610d9ac014bab4df /llvm/lib/IR/Module.cpp | |
parent | 6af16fc3b7d0355ca43b838ef79faaa63c44b6b5 (diff) | |
download | bcm5719-llvm-516d70399e8d83b10039d59d9c7f8d3aedf5b980.tar.gz bcm5719-llvm-516d70399e8d83b10039d59d9c7f8d3aedf5b980.zip |
Cache the result of Function::getIntrinsicID() in a DenseMap attached to the LLVMContext.
This reduces the time actually spent doing string to ID conversion and shows a 10% improvement in compile time for a particularly bad case that involves ARM Neon intrinsics (these have many overloads).
Patch by Jean-Luc Duprat!
llvm-svn: 176365
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
-rw-r--r-- | llvm/lib/IR/Module.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/IR/Module.cpp b/llvm/lib/IR/Module.cpp index 8affcc94696..0825bda53ba 100644 --- a/llvm/lib/IR/Module.cpp +++ b/llvm/lib/IR/Module.cpp @@ -13,6 +13,7 @@ #include "llvm/IR/Module.h" #include "SymbolTableListTraitsImpl.h" +#include "LLVMContextImpl.h" #include "llvm/ADT/DenseSet.h" #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/SmallString.h" |