summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
Commit message (Collapse)AuthorAgeFilesLines
* Fix test: Linker/2003-10-27-LinkOncePromote.llChris Lattner2003-10-271-27/+29
| | | | | | Fix PR58 llvm-svn: 9530
* Get the list of PHI node values before the basic block is split. Also, addChris Lattner2003-10-271-9/+16
| | | | | | | | PHI node entries for unwind instructions just like for call instructions which became invokes! This fixes PR57, tested by Inline/2003-10-26-InlineInvokeExceptionDestPhi.ll llvm-svn: 9526
* We might as well strip off any CPRs before propagationChris Lattner2003-10-231-1/+4
| | | | llvm-svn: 9437
* * We were forgetting to pass varargs arguments through a callChris Lattner2003-10-231-0/+18
| | | | | | * Add a work around for bug PR56, gross but necessary for now. llvm-svn: 9428
* Check in initial version of ipcpChris Lattner2003-10-231-0/+110
| | | | llvm-svn: 9423
* Make this pass substantially stronger by having it delete dead return valuesChris Lattner2003-10-231-127/+354
| | | | | | | | | as well as arguments. Now it can delete arguments and return values which are only passed into other arguments or are returned, if they are dead. This causes it to delete several hundred extra args/retvals from the C++ hello world program, shrinking it by about 2K. llvm-svn: 9398
* This important patch fixes two warnings in the linker which can occur from ↵Chris Lattner2003-10-221-4/+33
| | | | | | | | linking valid pieces of code llvm-svn: 9390
* Update the 'used' flag correctlyChris Lattner2003-10-221-6/+7
| | | | llvm-svn: 9366
* Loop over the module, not the symbol table. This makes the code handleChris Lattner2003-10-221-21/+18
| | | | | | unused external functions again llvm-svn: 9365
* Implement FunctionResolve/2003-10-21-GlobalResolveHack.llChris Lattner2003-10-221-2/+34
| | | | llvm-svn: 9363
* Fix bug: FunctionResolve/2003-10-21-GlobalTypeDifference.llChris Lattner2003-10-211-55/+19
| | | | llvm-svn: 9359
* Fix bug: Linker/2003-10-21-ConflictingTypesTolerance.llChris Lattner2003-10-211-13/+10
| | | | llvm-svn: 9357
* Fix message to make more sense and confuse Chris lessChris Lattner2003-10-211-2/+7
| | | | llvm-svn: 9354
* Added LLVM copyright header.John Criswell2003-10-214-0/+28
| | | | llvm-svn: 9321
* Added LLVM copyright notice to Makefiles.John Criswell2003-10-207-0/+56
| | | | llvm-svn: 9312
* Added LLVM project notice to the top of every C++ source file.John Criswell2003-10-2064-0/+448
| | | | | | Header files will be on the way. llvm-svn: 9298
* Reorder for minor efficiency gainChris Lattner2003-10-201-1/+1
| | | | llvm-svn: 9285
* Change the Opcode enum for PHI nodes from "Instruction::PHINode" to ↵Chris Lattner2003-10-194-7/+7
| | | | | | "Instruction::PHI" to be more consistent with the other instructions. llvm-svn: 9269
* Fix PR#50Chris Lattner2003-10-181-6/+6
| | | | llvm-svn: 9227
* ADd support for the new varargs instructionsChris Lattner2003-10-181-1/+2
| | | | llvm-svn: 9225
* Do not crash on empty structuresChris Lattner2003-10-171-0/+5
| | | | llvm-svn: 9195
* Add support for 'weak' linkage.Chris Lattner2003-10-161-5/+32
| | | | llvm-svn: 9171
* This code does not require random access use_listsChris Lattner2003-10-161-7/+2
| | | | llvm-svn: 9156
* Eliminate using declarationChris Lattner2003-10-161-29/+35
| | | | | | Rewrite code to work with use_lists what are either random access or bidirectional llvm-svn: 9155
* Decrease usage of use_size()Chris Lattner2003-10-155-18/+18
| | | | llvm-svn: 9135
* CleanupChris Lattner2003-10-151-5/+2
| | | | llvm-svn: 9133
* Do not move variable sized allocations to the top of the caller, which mightChris Lattner2003-10-141-7/+5
| | | | | | | | break dominance relationships, and is otherwise bad. This fixes bug: Inline/2003-10-13-AllocaDominanceProblem.ll. This also fixes miscompilation of 3 176.gcc source files (reload1.c, global.c, flow.c) llvm-svn: 9109
* Whoops, we inserted into the wrong set. What's up with the dead set anyway?Chris Lattner2003-10-131-4/+2
| | | | llvm-svn: 9094
* Use external df iterators to avoid revisiting blocks in functions withChris Lattner2003-10-131-1/+3
| | | | | | multiple setjmp calls. llvm-svn: 9093
* Wrap code at 80 columnsChris Lattner2003-10-131-6/+10
| | | | llvm-svn: 9073
* Regularize header file commentsChris Lattner2003-10-1313-35/+37
| | | | llvm-svn: 9071
* Regularize header file comment, eliminate using'sChris Lattner2003-10-131-22/+20
| | | | llvm-svn: 9069
* Minor cleanupsChris Lattner2003-10-131-5/+3
| | | | llvm-svn: 9067
* Checkin an improvement contributed by Bill:Chris Lattner2003-10-131-6/+30
| | | | | | | | | | | Only transform call sites in a setjmp'ing function which are reachable from the setjmp. If the call dominates the setjmp (for example), the called function cannot longjmp to the setjmp. This dramatically reduces the number of invoke instructions created in some large testcases. llvm-svn: 9066
* Add support to the loop canonicalization pass to make it transform loops toChris Lattner2003-10-131-21/+163
| | | | | | | | have a SINGLE backedge. This is useful to, for example, the -indvars pass. This implements testcase LoopSimplify/single-backedge.ll and closes PR#34 llvm-svn: 9065
* Rename loop preheaders pass to loop simplifyChris Lattner2003-10-124-5/+7
| | | | llvm-svn: 9061
* File is renamed to LoopSimplify.cppChris Lattner2003-10-121-1/+1
| | | | llvm-svn: 9059
* First step in renaming the preheaders pass to loopsimplifyChris Lattner2003-10-121-16/+21
| | | | llvm-svn: 9058
* The preheader insertion pass only depends on the CFG. Mark it as such, whichChris Lattner2003-10-121-1/+2
| | | | | | allows GCCAS to only run it once. llvm-svn: 9056
* Include <cstdio> instead of <stdio.h>.Brian Gaeke2003-10-101-1/+1
| | | | llvm-svn: 9032
* Don't include Config/stdio.h or <stdio.h>.Brian Gaeke2003-10-101-1/+0
| | | | llvm-svn: 9031
* Fix spelling.Misha Brukman2003-10-1023-48/+48
| | | | llvm-svn: 9027
* Fixing the spelling of this filename.Misha Brukman2003-10-101-669/+0
| | | | llvm-svn: 9009
* Update commentChris Lattner2003-10-081-2/+2
| | | | llvm-svn: 8965
* Use a set to keep track of which edges have been noticed as executable alreadyChris Lattner2003-10-081-15/+27
| | | | | | | to avoid reprocessing PHI nodes needlessly. This speeds up the big bad PHI testcase 43%: from 104.9826 to 73.5157s llvm-svn: 8964
* Minor fixes here and thereChris Lattner2003-10-081-22/+21
| | | | llvm-svn: 8963
* Avoid building data structures we don't really need. This improves the runtimeChris Lattner2003-10-081-10/+39
| | | | | | | | of a test that Bill Wendling sent me from 228.5s to 105s. Obviously there is more improvement to be had, but this is a nice speedup which should be "felt" by many programs. llvm-svn: 8962
* whoops, don't accidentally lose variable namesChris Lattner2003-10-071-1/+1
| | | | llvm-svn: 8955
* Fix bug: InstCombine/cast.ll:test11 / PR#7Chris Lattner2003-10-071-1/+23
| | | | llvm-svn: 8954
* Refactor code a bitChris Lattner2003-10-071-4/+12
| | | | llvm-svn: 8952
OpenPOWER on IntegriCloud