summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/BasicInliner.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Remove the basic inliner. This was added in 2007, and hasn't reallyChandler Carruth2012-03-151-182/+0
| | | | | | | changed since. No one was using it. It is yet another consumer of the InlineCost interface that I'd like to change. llvm-svn: 152769
* Refactor code from inlining and globalopt that checks whether a function ↵Eli Friedman2011-10-201-2/+2
| | | | | | definition is unused, and enhance it so it can tell that functions which are only used by a blockaddress are in fact dead. This probably doesn't happen much on most code, but the Linux kernel's _THIS_IP_ can trigger this issue with blockaddress. (GlobalDCE can also handle the given tescase, but we only run that at -O3.) Found while looking at PR11180. llvm-svn: 142572
* simplifyGabor Greif2010-07-281-2/+2
| | | | llvm-svn: 109589
* refactor the interface to InlineFunction so that most of the in/outChris Lattner2010-04-221-1/+2
| | | | | | | | arguments are handled with a new InlineFunctionInfo class. This makes it easier to extend InlineFunction to return more info in the future. llvm-svn: 102137
* Change errs() to dbgs().David Greene2010-01-051-5/+5
| | | | llvm-svn: 92599
* Remove VISIBILITY_HIDDEN from class/struct found inside anonymous namespaces.Nick Lewycky2009-10-251-1/+1
| | | | | | | Chris claims we should never have visibility_hidden inside any .cpp file but that's still not true even after this commit. llvm-svn: 85042
* eliminate the "Value" printing methods that print to a std::ostream.Chris Lattner2009-08-231-10/+10
| | | | | | This required converting a bunch of stuff off DOUT and other cleanups. llvm-svn: 79819
* available_externall linkage is not local, this was confusing the codegenerator,Torok Edwin2009-05-231-1/+2
| | | | | | | | | and it wasn't generating calls through @PLT for these functions. hasLocalLinkage() is now false for available_externally, I attempted to fix the inliner and dce to handle available_externally properly. It passed make check. llvm-svn: 72328
* Changed option name from inline-threshold to basic-inline-threshold becauseMon P Wang2009-02-231-1/+1
| | | | | | inline-threshold option is used by the inliner. llvm-svn: 65309
* Add the private linkage.Rafael Espindola2009-01-151-1/+1
| | | | llvm-svn: 62279
* Fix warning.Daniel Dunbar2008-10-311-1/+1
| | | | llvm-svn: 58486
* Add InlineCost class for represent the estimated cost of inlining aDaniel Dunbar2008-10-301-7/+18
| | | | | | | | | function. - This explicitly models the costs for functions which should "always" or "never" be inlined. This fixes bugs where such costs were not previously respected. llvm-svn: 58450
* Assorted comment/naming fixes, 80-col violations, and reindentation.Daniel Dunbar2008-10-281-9/+10
| | | | | | - No functionality change. llvm-svn: 58352
* Clean up the use of static and anonymous namespaces. This turned upDan Gohman2008-05-131-5/+3
| | | | | | | several things that were neither in an anonymous namespace nor static but not intended to be global. llvm-svn: 51017
* Make several variable declarations static.Dan Gohman2008-05-061-1/+1
| | | | llvm-svn: 50696
* Remove attribution from file headers, per discussion on llvmdev.Chris Lattner2007-12-291-2/+2
| | | | llvm-svn: 45418
* Use SmallPtrSet.Devang Patel2007-07-271-2/+1
| | | | llvm-svn: 40560
* Add BasicInliner interface. Devang Patel2007-07-251-0/+171
This interface allows clients to inline bunch of functions with module level call graph information.:wq llvm-svn: 40486
OpenPOWER on IntegriCloud