Fix quadratic behavior in InlineFunction by fetching the personality function of...
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 2 Dec 2011 18:37:31 +0000 (18:37 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 2 Dec 2011 18:37:31 +0000 (18:37 +0000)
commit30fe1ae20d02ac8e12cec9d767d855946546a030
tree4ffac899c9cbdab0fcf2a31d92b00f67de34eb0d
parent94f2dc90a54443ea405776d6ffa2a4e27800d3d6
Fix quadratic behavior in InlineFunction by fetching the personality function of the callee once and not for every invoke in the caller.

The callee is usually smaller than the caller, too. This reduces the compile
time of ARMDisassembler.cpp by 32% (Release build). It still takes ages to
compile though.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145690 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/InlineFunction.cpp