aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/IPO/GlobalOpt.cpp
AgeCommit message (Expand)Author
2006-01-22Make iostream #inclusion explicitChris Lattner
2005-11-05Add support alignment of allocation instructions.Nate Begeman
2005-10-25Stop using deprecated typesAlkis Evlogimenos
2005-09-27Fix a regression in my previous patch, fixing GlobalOpt/2005-09-27-Crash.llChris Lattner
2005-09-27Add support for external calls that we know how to constant fold. This imple...Chris Lattner
2005-09-27Fix a bug where we would evaluate stores into linkonce objects which could beChris Lattner
2005-09-27Implement support for static constructors with calls in them. This is usefulChris Lattner
2005-09-27Refactor this code a bit, no functionality changes.Chris Lattner
2005-09-26Remove some dead code. ctor evaluation subsumes empty ctor elimChris Lattner
2005-09-26Add support for alloca, implementing ctor-list-opt.ll:CTOR6Chris Lattner
2005-09-26Add a debug printout, fix a crash on kc++Chris Lattner
2005-09-26Implement loads/stores through GEP's of globals. This implementsChris Lattner
2005-09-26Replace TraverseGEPInitializer with ConstantFoldLoadThroughGEPConstantExprChris Lattner
2005-09-26add a commentChris Lattner
2005-09-26Add support for getelementptr, load, and correctly reject volatile stores.Chris Lattner
2005-09-26Add support for br/brcond/switch and phiChris Lattner
2005-09-26Add a simple interpreter to this code, allowing us to statically evaluateChris Lattner
2005-09-26factor some code into a InstallGlobalCtors method, add comments. No function...Chris Lattner
2005-09-26Make the global opt optimizer work on modules with a null terminator, byChris Lattner
2005-09-26Factor this code out into a few methods.Chris Lattner
2005-06-15Do not promote globals only used by main to locals if there are constantexprsChris Lattner
2005-05-08Convert non-address taken functions with C calling conventions to fastcc.Chris Lattner
2005-04-21Remove trailing whitespaceMisha Brukman
2005-03-15This mega patch converts us from using Function::a{iterator|begin|end} toChris Lattner
2005-02-27Teach globalopt how memset/cpy/move affect memory, to allow better optimization.Chris Lattner
2005-02-23make this more efficient. Scan up to 16 nodes, not the whole list.Chris Lattner
2005-02-10Localize globals if they are only used in main(). This replaces theAlkis Evlogimenos
2005-02-01Adjust to changes in APIsChris Lattner
2005-01-08Fix VS warnings.Chris Lattner
2004-12-12Properly implement copying of a global, fixing the 255.vortex & povrayChris Lattner
2004-12-12Though the previous xform applies to literally dozens (hundreds?) of variablesChris Lattner
2004-12-12If a variable can only hold two values, and is not already a bool, shrink itChris Lattner
2004-12-02Implement a FIXME by checking to make sure that a malloc is not being usedChris Lattner
2004-12-02Fix a minor bug where we set a var to initialized on malloc, not on store.Chris Lattner
2004-11-14If a global is just loaded and restored, realize that it is not changingChris Lattner
2004-10-22*** empty log message ***Chris Lattner
2004-10-16Add support for the undef value. Implement a new optimization based on globalsChris Lattner
2004-10-14Fix a bug John tracked down in libstdc++ where we were incorrectly deletingChris Lattner
2004-10-11This patch implements two things (sorry).Chris Lattner
2004-10-10Just because we cannot completely eliminate all uses of a global, we canChris Lattner
2004-10-10Fix 2004-10-10-CastStoreOnce.llx, by adjusting types back if we strip off a castChris Lattner
2004-10-10Implement GlobalOpt/deadglobal-2.llx, deletion of globals that are onlyChris Lattner
2004-10-10Avoid calling use_size() which could (in theory) be expensive if the globalChris Lattner
2004-10-09Eliminate global pointers that are only stored a single value and null ifChris Lattner
2004-10-09Fix infinite loop due to iterationChris Lattner
2004-10-08If we found a dead global, we should at least delete it...Chris Lattner
2004-10-08* Pull out the meat of runOnModule into another function for clarity.Chris Lattner
2004-10-08We might as well delete the known-dead global sooner rather than later sinceChris Lattner
2004-10-08Implement SRA for global variables. This allows the other global variableChris Lattner
2004-10-07Improve comments, no functionality changesChris Lattner