Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | More migration to raw_ostream, the water has dried up around the iostream hole. | Daniel Dunbar | 2009-07-25 | 1 | -13/+14 |
| | | | | | | | | | | - Some clients which used DOUT have moved to DEBUG. We are deprecating the "magic" DOUT behavior which avoided calling printing functions when the statement was disabled. In addition to being unnecessary magic, it had the downside of leaving code in -Asserts builds, and of hiding potentially unnecessary computations. llvm-svn: 77019 | ||||
* | Revert the ConstantInt constructors back to their 2.5 forms where possible, ↵ | Owen Anderson | 2009-07-24 | 1 | -1/+1 |
| | | | | | | thanks to contexts-on-types. More to come. llvm-svn: 77011 | ||||
* | Get rid of the Pass+Context magic. | Owen Anderson | 2009-07-22 | 1 | -9/+13 |
| | | | | llvm-svn: 76702 | ||||
* | Rename getConstantInt{True|False} to get{True|False} at Chris' behest. | Owen Anderson | 2009-07-21 | 1 | -6/+6 |
| | | | | llvm-svn: 76598 | ||||
* | Make makeLoopInvariant report whether it made any changes or not, | Dan Gohman | 2009-07-15 | 1 | -4/+1 |
| | | | | | | and use this to simplify more code. llvm-svn: 75722 | ||||
* | Update LoopSimplify and LoopUnswitch to use the new makeLoopInvariant | Dan Gohman | 2009-07-14 | 1 | -1/+6 |
| | | | | | | function. llvm-svn: 75584 | ||||
* | This started as a small change, I swear. Unfortunately, lots of things call ↵ | Owen Anderson | 2009-07-09 | 1 | -1/+1 |
| | | | | | | the [I|F]CmpInst constructors. Who knew!? llvm-svn: 75200 | ||||
* | Thread LLVMContext through the constant folding APIs, which touches a lot of ↵ | Owen Anderson | 2009-07-06 | 1 | -1/+1 |
| | | | | | | files. llvm-svn: 74844 | ||||
* | Second batch of passes using LLVMContext. | Owen Anderson | 2009-07-03 | 1 | -8/+9 |
| | | | | llvm-svn: 74753 | ||||
* | Allow readonly functions to unwind exceptions. Teach | Duncan Sands | 2009-05-06 | 1 | -2/+2 |
| | | | | | | | | the optimizers about this. For example, a readonly function with no uses cannot be removed unless it is also marked nounwind. llvm-svn: 71071 | ||||
* | Remove strange extra semicolons. | Nick Lewycky | 2009-03-19 | 1 | -1/+1 |
| | | | | llvm-svn: 67287 | ||||
* | If "optimize for size" attribute is set then block non-trivial loop ↵ | Devang Patel | 2009-02-03 | 1 | -3/+2 |
| | | | | | | unswitches but allow trivial loop unswitches. llvm-svn: 63670 | ||||
* | Rename getAnalysisToUpdate to getAnalysisIfAvailable. | Duncan Sands | 2009-01-28 | 1 | -2/+2 |
| | | | | llvm-svn: 63198 | ||||
* | Undo previous patch. | Devang Patel | 2008-12-08 | 1 | -3/+1 |
| | | | | llvm-svn: 60701 | ||||
* | switch a couple more calls to use array_pod_sort. | Chris Lattner | 2008-12-01 | 1 | -2/+3 |
| | | | | llvm-svn: 60337 | ||||
* | Ignore conditions that are outside the loop. | Devang Patel | 2008-11-03 | 1 | -2/+4 |
| | | | | llvm-svn: 58631 | ||||
* | Change create*Pass factory functions to return Pass* instead of | Daniel Dunbar | 2008-10-22 | 1 | -1/+1 |
| | | | | | | | | | | | LoopPass*. - Although less precise, this means they can be used in clients without RTTI (who would otherwise need to include LoopPass.h, which eventually includes things using dynamic_cast). This was the simplest solution that presented itself, but I am happy to use a better one if available. llvm-svn: 58010 | ||||
* | Use 0 instead of false to return a null pointer. | Dan Gohman | 2008-10-17 | 1 | -1/+1 |
| | | | | llvm-svn: 57660 | ||||
* | Implement function notes as function attributes. | Devang Patel | 2008-09-26 | 1 | -1/+1 |
| | | | | llvm-svn: 56716 | ||||
* | Large mechanical patch. | Devang Patel | 2008-09-25 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | s/ParamAttr/Attribute/g s/PAList/AttrList/g s/FnAttributeWithIndex/AttributeWithIndex/g s/FnAttr/Attribute/g This sets the stage - to implement function notes as function attributes and - to distinguish between function attributes and return value attributes. This requires corresponding changes in llvm-gcc and clang. llvm-svn: 56622 | ||||
* | Put FN_NOTE_AlwaysInline and others in FnAttr namespace. | Devang Patel | 2008-09-24 | 1 | -1/+1 |
| | | | | llvm-svn: 56527 | ||||
* | Move FN_NOTE_AlwaysInline and other out of ParamAttrs namespace. | Devang Patel | 2008-09-23 | 1 | -1/+1 |
| | | | | | | Do not check isDeclaration() in hasNote(). It is clients' responsibility. llvm-svn: 56524 | ||||
* | Use parameter attribute store (soon to be renamed) for | Devang Patel | 2008-09-23 | 1 | -1/+1 |
| | | | | | | Function Notes also. Function notes are stored at index ~0. llvm-svn: 56511 | ||||
* | Add hasNote() to check note associated with a function. | Devang Patel | 2008-09-22 | 1 | -1/+1 |
| | | | | llvm-svn: 56477 | ||||
* | A loop may be unswitched multiple times. Reconstruct dom info. at the end. | Devang Patel | 2008-09-04 | 1 | -5/+8 |
| | | | | llvm-svn: 55806 | ||||
* | Initialize loop data first. | Devang Patel | 2008-09-04 | 1 | -2/+1 |
| | | | | llvm-svn: 55792 | ||||
* | Do not unswitch if the function notes say we're optimizing this function for ↵ | Devang Patel | 2008-09-04 | 1 | -1/+7 |
| | | | | | | size. llvm-svn: 55786 | ||||
* | Tidy up several unbeseeming casts from pointer to intptr_t. | Dan Gohman | 2008-09-04 | 1 | -1/+1 |
| | | | | llvm-svn: 55779 | ||||
* | Do not try to update dominator info while manipulating CFG. This code does ↵ | Devang Patel | 2008-07-03 | 1 | -281/+19 |
| | | | | | | | | not handle all cases and keeps invalid dom info around some cases, which misleads other passes down stream. Right now, dom info is recaluclated in the end if the loop is switched. llvm-svn: 53106 | ||||
* | Remove unused function. | Bill Wendling | 2008-07-03 | 1 | -16/+0 |
| | | | | llvm-svn: 53090 | ||||
* | Remove extra FIXME | Devang Patel | 2008-07-03 | 1 | -1/+0 |
| | | | | llvm-svn: 53087 | ||||
* | Reconstruct dom info, if loop is unswitched. | Devang Patel | 2008-07-03 | 1 | -4/+9 |
| | | | | llvm-svn: 53086 | ||||
* | LoopUnswitch does not preserve dominator info in all cases. | Devang Patel | 2008-07-03 | 1 | -2/+3 |
| | | | | llvm-svn: 53085 | ||||
* | Undo previous patch. It is not that simple to fix dom info here. | Devang Patel | 2008-07-03 | 1 | -16/+2 |
| | | | | llvm-svn: 53062 | ||||
* | Preserve dom info while simplifing loop after the unswitch. | Devang Patel | 2008-07-02 | 1 | -2/+32 |
| | | | | llvm-svn: 53052 | ||||
* | reuse vectors. | Devang Patel | 2008-07-02 | 1 | -5/+9 |
| | | | | llvm-svn: 53007 | ||||
* | Fix comment. | Devang Patel | 2008-07-02 | 1 | -1/+1 |
| | | | | llvm-svn: 53006 | ||||
* | Preserve loop data so that it is not fetched everytime it is needed. | Devang Patel | 2008-07-02 | 1 | -69/+85 |
| | | | | | | Keep track of currentLoop. llvm-svn: 53005 | ||||
* | Preserve dominance frontier while trivially unswitching loop. | Devang Patel | 2008-06-18 | 1 | -0/+17 |
| | | | | llvm-svn: 52438 | ||||
* | Update dom tree. Fix PR 2372. | Devang Patel | 2008-06-02 | 1 | -1/+4 |
| | | | | llvm-svn: 51887 | ||||
* | Tidy up BasicBlock::getFirstNonPHI, and change a bunch of places to | Dan Gohman | 2008-05-23 | 1 | -2/+1 |
| | | | | | | use it instead of duplicating its functionality. llvm-svn: 51499 | ||||
* | Clean up the use of static and anonymous namespaces. This turned up | Dan Gohman | 2008-05-13 | 1 | -11/+11 |
| | | | | | | | 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 Gohman | 2008-05-06 | 1 | -1/+1 |
| | | | | llvm-svn: 50696 | ||||
* | Remove 'unwinds to' support from mainline. This patch undoes r47802 r47989 | Nick Lewycky | 2008-04-25 | 1 | -7/+3 |
| | | | | | | r48047 r48084 r48085 r48086 r48088 r48096 r48099 r48109 and r48123. llvm-svn: 50265 | ||||
* | fit some more code in 80 cols. | Chris Lattner | 2008-04-21 | 1 | -12/+14 |
| | | | | llvm-svn: 50016 | ||||
* | API changes for class Use size reduction, wave 1. | Gabor Greif | 2008-04-06 | 1 | -10/+10 |
| | | | | | | | | Specifically, introduction of XXX::Create methods for Users that have a potentially variable number of Uses. llvm-svn: 49277 | ||||
* | Update the block cloner which fixes bugpoint on code using unwind_to (phew!) | Nick Lewycky | 2008-03-09 | 1 | -3/+7 |
| | | | | | | and also update the cloning interface's major user, the loop optimizations. llvm-svn: 48088 | ||||
* | Remove attribution from file headers, per discussion on llvmdev. | Chris Lattner | 2007-12-29 | 1 | -2/+2 |
| | | | | llvm-svn: 45418 | ||||
* | Get rid of annoying spaces. | David Greene | 2007-12-17 | 1 | -1/+1 |
| | | | | llvm-svn: 45100 | ||||
* | Make LoopInfoBase more generic, in preparation for having MachineLoopInfo. ↵ | Owen Anderson | 2007-11-27 | 1 | -3/+3 |
| | | | | | | This involves a small interface change. llvm-svn: 44348 |