Give the always-inliner its own custom filter. It shouldn't have to pay
authorChandler Carruth <chandlerc@gmail.com>
Sat, 31 Mar 2012 13:17:18 +0000 (13:17 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 31 Mar 2012 13:17:18 +0000 (13:17 +0000)
commitb594a84df501385e4d90bd9531084be62cef0857
tree89427657077ef7a3051e7c5322966708625525dd
parent45de584b4f82fbfb9cb9c50bc1fc08931b534308
Give the always-inliner its own custom filter. It shouldn't have to pay
the very high overhead of the complex inline cost analysis when all it
wants to do is detect three patterns which must not be inlined. Comment
the code, clean it up, and leave some hints about possible performance
improvements if this ever shows up on a profile.

Moving this off of the (now more expensive) inline cost analysis is
particularly important because we have to run this inliner even at -O0.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153814 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/InlineAlways.cpp