llvm-6502/lib/Transforms/IPO
Reid Spencer b7c11e3966 Post-Review Cleanup:
* Fix comments at top of file
* Change algorithm for running the call optimizations from n*n to something
  closer to n.
* Use a hash_map to store and lookup the optimizations since there will
  eventually (or potentially) be a large number of them. This gets lookup
  based on the name of the function to O(1). Each CallOptimizer now has a
  std::string member named func_name that tracks the name of the function
  that it applies to. It is this string that is entered into the hash_map
  for fast comparison against the function names encountered in the module.
* Cleanup some style issues pertaining to iterator invalidation
* Don't pass the Function pointer to the OptimizeCall function because if
  the optimization needs it, it can get it from the CallInst passed in.
* Add the skeleton for a new CallOptimizer, StrCatOptimizer which will
  eventually replace strcat's of constant strings with direct copies.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21526 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-25 03:59:26 +00:00
..
ArgumentPromotion.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
ConstantMerge.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
DeadArgumentElimination.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
DeadTypeElimination.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
ExtractFunction.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
FunctionResolution.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
GlobalDCE.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
GlobalOpt.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
Inliner.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
Inliner.h Remove trailing whitespace 2005-04-21 23:48:37 +00:00
InlineSimple.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
Internalize.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
IPConstantPropagation.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
LoopExtractor.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
LowerSetJmp.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
Makefile Change Library Names Not To Conflict With Others When Installed 2004-10-27 23:18:45 +00:00
PruneEH.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
RaiseAllocations.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
SimplifyLibCalls.cpp Post-Review Cleanup: 2005-04-25 03:59:26 +00:00
StripSymbols.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00