summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
Commit message (Collapse)AuthorAgeFilesLines
...
* Put the hack back in that removes features, causes regressions to fail, butReid Spencer2005-06-151-0/+2
| | | | | | allows test programs to succeed. Actual fix for this is forthcoming. llvm-svn: 22213
* Unbreak several InstCombine regression checks introduced by a hack toReid Spencer2005-06-131-2/+0
| | | | | | fix the bzip2 test. A better hack is needed. llvm-svn: 22209
* Fix a 64-bit problem, passing (int)0 through ... instead of (void*)0Chris Lattner2005-06-091-4/+4
| | | | llvm-svn: 22206
* Fix a problem on 64-bit targets where we passed (int)0 through ... instead ofChris Lattner2005-06-091-7/+7
| | | | | | (void*)0. llvm-svn: 22205
* hack to fix bzip2 (bug 571)Andrew Lenharth2005-06-041-0/+2
| | | | llvm-svn: 22192
* Make the registration hash_map static. No other module needs it. Also,Reid Spencer2005-05-211-1/+5
| | | | | | document what its for a little better. llvm-svn: 22164
* Adjust the file comment to read a little easier.Reid Spencer2005-05-211-6/+7
| | | | llvm-svn: 22163
* Make sure ... arguments are casted to sbyte* where needed.Reid Spencer2005-05-211-13/+12
| | | | llvm-svn: 22162
* Add a "brief" comment for CastToCStrReid Spencer2005-05-211-0/+1
| | | | llvm-svn: 22161
* Fix mismatched type problem that crashed on cases like this:Chris Lattner2005-05-201-8/+17
| | | | | | | | sprintf(P, "%s", X); Where X is not an sbyte*. This fixes the bug JohnMC reported on llvm-bugs. llvm-svn: 22159
* Fix Transforms/SimplifyCFG/switch-simplify-crash.llChris Lattner2005-05-201-0/+7
| | | | llvm-svn: 22158
* teach the inliner about coldcc and noreturn functionsChris Lattner2005-05-181-0/+15
| | | | llvm-svn: 22113
* Don't look for __builtin_ffs, we'll never see it from llvm-gcc and there'sReid Spencer2005-05-151-14/+0
| | | | | | not reason to include it for other front ends. llvm-svn: 22070
* Provide this optimization as well:Reid Spencer2005-05-151-5/+45
| | | | | | ffs(x) -> (x == 0 ? 0 : 1+llvm.cttz(x)) llvm-svn: 22068
* Duh .. you actually have to #include Config/config.h before you can testReid Spencer2005-05-151-0/+1
| | | | | | for one of the values that it defines! llvm-svn: 22058
* Changes for ffs lib call simplification:Reid Spencer2005-05-141-3/+74
| | | | | | | | * Check for availability of ffsll call in configure script * Support ffs, ffsl, and ffsll conversion to constant value if the argument is constant. llvm-svn: 22027
* Preserve calling conv when hacking on callsChris Lattner2005-05-142-0/+6
| | | | llvm-svn: 22025
* preserve calling conventions when hacking on codeChris Lattner2005-05-142-1/+4
| | | | llvm-svn: 22024
* Make sure to preserve the calling convention when changing an invoke intoChris Lattner2005-05-141-0/+2
| | | | | | | a call. This fixes Prolangs-C++/deriv2, kimwitu++, and Misc-C++/bigfib on X86 with -enable-x86-fastcc. llvm-svn: 22023
* calling a function with the wrong CC is undefined, turn it into an unreachableChris Lattner2005-05-131-0/+14
| | | | | | | instruction. This is useful for catching optimizers that don't preserve calling conventions llvm-svn: 21928
* When lowering invokes to calls, amke sure to preserve the calling conv. ThisChris Lattner2005-05-131-7/+9
| | | | | | fixes Ptrdist/anagram with x86 llcbeta llvm-svn: 21925
* Prefer int 0 instead of long 0 for GEP arguments.Chris Lattner2005-05-131-3/+3
| | | | llvm-svn: 21924
* Fix Reassociate/shifttest.llChris Lattner2005-05-101-6/+7
| | | | llvm-svn: 21839
* If a function contains no allocas, all of the calls in it are triviallyChris Lattner2005-05-091-3/+45
| | | | | | suitable for tail calls. llvm-svn: 21836
* implement and.ll:test33Chris Lattner2005-05-091-2/+18
| | | | llvm-svn: 21809
* Preserve calling conventions when doing IPOChris Lattner2005-05-093-5/+13
| | | | llvm-svn: 21798
* wrap long lines, preserve calling conventions when cloning functions andChris Lattner2005-05-092-6/+14
| | | | | | turning calls into invokes llvm-svn: 21797
* Convert non-address taken functions with C calling conventions to fastcc.Chris Lattner2005-05-081-1/+41
| | | | llvm-svn: 21791
* Implement Reassociate/mul-neg-add.llChris Lattner2005-05-081-0/+12
| | | | llvm-svn: 21788
* Bail out earlierChris Lattner2005-05-081-4/+4
| | | | llvm-svn: 21786
* Teach reassociate that 0-X === X*-1Chris Lattner2005-05-081-4/+46
| | | | llvm-svn: 21785
* Fix PR557 and basictest[34].ll.Chris Lattner2005-05-081-12/+27
| | | | | | | | This makes reassociate realize that loads should be treated as unmovable, and gives distinct ranks to distinct values defined in the same basic block, allowing reassociate to do its thing. llvm-svn: 21783
* Add debugging informationChris Lattner2005-05-081-0/+18
| | | | llvm-svn: 21781
* eliminate gotosChris Lattner2005-05-081-3/+4
| | | | llvm-svn: 21780
* Improve reassociation handling of inverses, implementing inverses.ll.Chris Lattner2005-05-081-2/+104
| | | | llvm-svn: 21778
* clean up and modernize this pass.Chris Lattner2005-05-081-24/+18
| | | | llvm-svn: 21776
* Strength reduce SAR into SHR if there is no way sign bits could be shiftedChris Lattner2005-05-081-0/+10
| | | | | | | | | | | in. This tends to get cases like this: X = cast ubyte to int Y = shr int X, ... Tested by: shift.ll:test24 llvm-svn: 21775
* Refactor some codeChris Lattner2005-05-081-45/+55
| | | | llvm-svn: 21772
* Handle some simple cases where we can see that values get annihilated.Chris Lattner2005-05-081-7/+42
| | | | llvm-svn: 21771
* Fix a miscompilation of crafty by clobbering the "A" variable.Chris Lattner2005-05-071-9/+10
| | | | llvm-svn: 21770
* Rewrite the guts of the reassociate pass to be more efficient and logical. ↵Chris Lattner2005-05-071-103/+185
| | | | | | | | | Instead of trying to do local reassociation tweaks at each level, only process an expression tree once (at its root). This does not improve the reassociation pass in any real way. llvm-svn: 21768
* * Add two strlen optimizations:Reid Spencer2005-05-071-23/+56
| | | | | | | | | | | | strlen(x) != 0 -> *x != 0 strlen(x) == 0 -> *x == 0 * Change nested statistics to use style of other LLVM statistics so that only the name of the optimization (simplify-libcalls) is used as the statistic name, and the description indicates which specific all is optimized. Cuts down on some redundancy and saves a few bytes of space. * Make note of stpcpy optimization that could be done. llvm-svn: 21766
* Don't increment the counter unless the debug flag is set.Reid Spencer2005-05-071-1/+1
| | | | llvm-svn: 21762
* Convert shifts to muls to assist reassociation. This implementsChris Lattner2005-05-071-2/+27
| | | | | | Reassociate/shifttest.ll llvm-svn: 21761
* Simplify the code and rearrange it. No major functionality changes here.Chris Lattner2005-05-071-62/+82
| | | | llvm-svn: 21759
* BAD typeo which caused many testsuite failures last night. Note to self, doChris Lattner2005-05-061-1/+1
| | | | | | not change code after testing it without retesting! llvm-svn: 21741
* Preserve tail markerChris Lattner2005-05-063-4/+7
| | | | llvm-svn: 21737
* Implement Transforms/Inline/inline-tail.llChris Lattner2005-05-061-1/+16
| | | | llvm-svn: 21736
* preserve the tail markerChris Lattner2005-05-063-0/+6
| | | | llvm-svn: 21734
* Wrap long linesChris Lattner2005-05-061-6/+10
| | | | llvm-svn: 21720
OpenPOWER on IntegriCloud