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)
commit464e807d41b73e960ca1aac901c9a320bc93eb60
tree05a5022cf86dd476190d3654979e88fab1ec96ff
parentc5eda3ad2b375559dcb39cb57d7ab964dbd30ba7
For each function that we optimize we initialize a new list of lib functions. For each function name we malloc memory. This patch changes the Libcall map to use BumpPtrAllocator. Now we malloc only once. This speeds up instcombine by a few % on a large c++ program.

llvm-svn: 176170
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp