summaryrefslogtreecommitdiffstats
path: root/llvm/docs/ProgrammersManual.html
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2005-04-25 03:59:26 +0000
committerReid Spencer <rspencer@reidspencer.com>2005-04-25 03:59:26 +0000
commit9bbaa2ab7fdd4e29b8134c0e94314ca4eef1b6c7 (patch)
tree6ba19509a6d4352044dbe658864d6b174d960a8c /llvm/docs/ProgrammersManual.html
parent23423346f8e81e38e21d4296c16a2da1f4ee5693 (diff)
downloadbcm5719-llvm-9bbaa2ab7fdd4e29b8134c0e94314ca4eef1b6c7.tar.gz
bcm5719-llvm-9bbaa2ab7fdd4e29b8134c0e94314ca4eef1b6c7.zip
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. llvm-svn: 21526
Diffstat (limited to 'llvm/docs/ProgrammersManual.html')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud