Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Re-committing the failed r97807 commit with changes to eliminate warnings. | Wesley Peck | 2010-03-06 | 7 | -76/+207 | |
| | | | | llvm-svn: 97891 | |||||
* | Add verification of union types. | Nick Lewycky | 2010-03-06 | 1 | -0/+9 | |
| | | | | llvm-svn: 97889 | |||||
* | Describe what's going on with mingw alloca and why do we need separate ↵ | Anton Korobeynikov | 2010-03-06 | 1 | -1/+9 | |
| | | | | | | instruction. llvm-svn: 97888 | |||||
* | Initial bits of ARMv4-only support. | Anton Korobeynikov | 2010-03-06 | 6 | -29/+101 | |
| | | | | | | Patch by John Tytgat! llvm-svn: 97886 | |||||
* | Lower dynamic stack allocation on mingw32 to separate instruction. | Anton Korobeynikov | 2010-03-06 | 4 | -20/+56 | |
| | | | | | | | We cannot use a normal call here since it has extra unmodelled side effects (it changes stack pointer). This should fix PR5292. llvm-svn: 97884 | |||||
* | make APFloat::toString be const. | Chris Lattner | 2010-03-06 | 2 | -2/+2 | |
| | | | | llvm-svn: 97883 | |||||
* | disable this for mingw as well, we really need a 'has no dynamic linking' ↵ | Chris Lattner | 2010-03-06 | 1 | -1/+1 | |
| | | | | | | predicate. llvm-svn: 97882 | |||||
* | Do not use '&' prefix for globals when register base field is non-zero, ↵ | Anton Korobeynikov | 2010-03-06 | 6 | -27/+35 | |
| | | | | | | | | otherwise msp430-as will silently miscompile the code (TI's assembler report an error though). This fixes PR6349 llvm-svn: 97877 | |||||
* | Let the fallthrough handle whether or not we've changed anything | Eric Christopher | 2010-03-06 | 1 | -1/+3 | |
| | | | | | | before we try to optimize. llvm-svn: 97876 | |||||
* | Migrate _chk call lowering from SimplifyLibCalls to InstCombine. Stub | Eric Christopher | 2010-03-06 | 6 | -140/+132 | |
| | | | | | | | | out the remainder of the calls that we should lower in some way and move the tests to the new correct directory. Fix up tests that are now optimized more than they were before by -instcombine. llvm-svn: 97875 | |||||
* | Add static methods to handle Linkage Types. | Rafael Espindola | 2010-03-06 | 1 | -20/+62 | |
| | | | | llvm-svn: 97871 | |||||
* | clean this up. | Chris Lattner | 2010-03-06 | 1 | -6/+7 | |
| | | | | llvm-svn: 97870 | |||||
* | revert r97807, it introduced build warnings. | Chris Lattner | 2010-03-06 | 6 | -257/+61 | |
| | | | | llvm-svn: 97869 | |||||
* | Thumb1 epilogue code generation needs to take into account that callee-saved | Jim Grosbach | 2010-03-06 | 1 | -4/+18 | |
| | | | | | | | registers may be restored via a pop instruction, not just a tRestore. This fixes nightly test 471.omnetep for Thumb1. llvm-svn: 97867 | |||||
* | Temporarily revert: | Eric Christopher | 2010-03-06 | 2 | -26/+0 | |
| | | | | | | | | | | | | | Log: Transform @llvm.objectsize to integer if the argument is a result of malloc of known size. Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp llvm/trunk/test/Transforms/InstCombine/objsize.ll It appears to be causing swb and nightly test failures. llvm-svn: 97866 | |||||
* | Fix another case where LSR was affected by debug info. | Dale Johannesen | 2010-03-06 | 1 | -1/+12 | |
| | | | | llvm-svn: 97865 | |||||
* | Don't update physical register def. | Evan Cheng | 2010-03-06 | 1 | -2/+3 | |
| | | | | llvm-svn: 97861 | |||||
* | Transform @llvm.objectsize to integer if the argument is a result of malloc ↵ | Evan Cheng | 2010-03-06 | 2 | -0/+26 | |
| | | | | | | of known size. llvm-svn: 97860 | |||||
* | Add a LLVMWriteBitcodeToFD that exposes the raw_fd_ostream options. | Erick Tryzelaar | 2010-03-06 | 6 | -10/+80 | |
| | | | | llvm-svn: 97858 | |||||
* | Whoops, the old LLVMWriteBitcodeToFileHandle closed the stream. | Erick Tryzelaar | 2010-03-06 | 1 | -1/+1 | |
| | | | | | | Luckily this never was released. llvm-svn: 97857 | |||||
* | LLVMWriteBitcodeToFileHandle should work on all architectures now. | Erick Tryzelaar | 2010-03-06 | 1 | -11/+0 | |
| | | | | llvm-svn: 97856 | |||||
* | Add some new bits of debug info handling. No | Dale Johannesen | 2010-03-06 | 4 | -3/+142 | |
| | | | | | | functional change yet. llvm-svn: 97855 | |||||
* | Reapply r97778 and r97779, enabled only for unsigned i64 to f64 | Dan Gohman | 2010-03-06 | 1 | -0/+25 | |
| | | | | | | conversions. llvm-svn: 97854 | |||||
* | Test case for r97851. | Devang Patel | 2010-03-05 | 1 | -0/+10 | |
| | | | | llvm-svn: 97852 | |||||
* | Update CMake build. | Ted Kremenek | 2010-03-05 | 1 | -0/+1 | |
| | | | | llvm-svn: 97846 | |||||
* | Don't emit global symbols into the (__TEXT,__ustring) section on Darwin. This | Charles Davis | 2010-03-05 | 2 | -3/+2 | |
| | | | | | | | | | is a workaround for <rdar://problem/7672401/> (which I filed). This let's us build Wine on Darwin, and it gets the Qt build there a little bit further (so Doug says). llvm-svn: 97845 | |||||
* | Move SimplifyLibCalls's LibCall builders to a separate file so they | Eric Christopher | 2010-03-05 | 3 | -386/+453 | |
| | | | | | | | | can be used in more places. Add an argument for the TargetData that most of them need. Update for the getInt8PtrTy() change. Should be no functionality change. llvm-svn: 97844 | |||||
* | Add support for an i8* type accessor. | Eric Christopher | 2010-03-05 | 1 | -0/+4 | |
| | | | | llvm-svn: 97841 | |||||
* | Better handling of dead super registers in LiveVariables. We used to do this: | Jakob Stoklund Olesen | 2010-03-05 | 2 | -22/+22 | |
| | | | | | | | | | | | | | | | | | | | | | CALL ... %RAX<imp-def> ... [not using %RAX] %EAX = ..., %RAX<imp-use, kill> RET %EAX<imp-use,kill> Now we do this: CALL ... %RAX<imp-def, dead> ... [not using %RAX] %EAX = ... RET %EAX<imp-use,kill> By not artificially keeping %RAX alive, we lower register pressure a bit. The correct number of instructions for 2008-08-05-SpillerBug.ll is obviously 55, anybody can see that. Sheesh. llvm-svn: 97838 | |||||
* | We don't really care about correct register liveness information after the | Jakob Stoklund Olesen | 2010-03-05 | 2 | -4/+59 | |
| | | | | | | post-ra scheduler has run. Disable the verifier checks that late in the game. llvm-svn: 97837 | |||||
* | Avoid creating bad PHI instructions when BR is being const-folded. | Jakob Stoklund Olesen | 2010-03-05 | 2 | -0/+44 | |
| | | | | llvm-svn: 97836 | |||||
* | Fix a case where LSR is sensitive to debug info. | Dale Johannesen | 2010-03-05 | 1 | -0/+9 | |
| | | | | llvm-svn: 97830 | |||||
* | Safely turn memset_chk etc. to non-chk variant if the known object size is ↵ | Evan Cheng | 2010-03-05 | 2 | -13/+37 | |
| | | | | | | >= memset / memcpy / memmove size. llvm-svn: 97828 | |||||
* | Instcombine should turn llvm.objectsize of a alloca with static size to an ↵ | Evan Cheng | 2010-03-05 | 2 | -9/+42 | |
| | | | | | | integer. llvm-svn: 97827 | |||||
* | Fix typo. | Evan Cheng | 2010-03-05 | 1 | -1/+1 | |
| | | | | llvm-svn: 97818 | |||||
* | fix bss section printing for cell, patch by Kalle Raiskila! | Chris Lattner | 2010-03-05 | 2 | -0/+8 | |
| | | | | llvm-svn: 97814 | |||||
* | fix PR6512, a case where instcombine would incorrectly merge loads | Chris Lattner | 2010-03-05 | 2 | -0/+42 | |
| | | | | | | from different addr spaces. llvm-svn: 97813 | |||||
* | Reworking the stack layout that the MicroBlaze backend generates. | Wesley Peck | 2010-03-05 | 6 | -61/+257 | |
| | | | | | | | | | | | The MicroBlaze backend was generating stack layouts that did not conform correctly to the ABI. This update generates stack layouts which are closer to what GCC does. Variable arguments support was added as well but the stack layout for varargs has not been finalized. llvm-svn: 97807 | |||||
* | Adding MBlaze to cmake target list. | Wesley Peck | 2010-03-05 | 1 | -0/+1 | |
| | | | | llvm-svn: 97806 | |||||
* | Fix PR6503. This turned into a much more interesting and nasty bug. Various | Chris Lattner | 2010-03-05 | 4 | -139/+122 | |
| | | | | | | | | | | | parts of the cmp|cmp and cmp&cmp folding logic wasn't prepared for vectors (unrelated to the bug but noticed while in the code) and the code was *definitely* not safe to use by the (cast icmp)|(cast icmp) handling logic that I added in r95855. Fix all this up by changing the various routines to more consistently use IRBuilder and not pass in the I which had the wrong type. llvm-svn: 97801 | |||||
* | make these less sensitive to temporary naming. | Chris Lattner | 2010-03-05 | 3 | -15/+15 | |
| | | | | llvm-svn: 97799 | |||||
* | remove this testcase, it isn't clear what it was testing and it is subsumed ↵ | Chris Lattner | 2010-03-05 | 1 | -18/+0 | |
| | | | | | | by or.ll llvm-svn: 97798 | |||||
* | Fix an oops in x86 sibcall optimization. If the ByVal callee argument is ↵ | Evan Cheng | 2010-03-05 | 2 | -8/+35 | |
| | | | | | | itself passed as a pointer, then it's obviously not safe to do a tail call. llvm-svn: 97797 | |||||
* | If LD_LIBRARY_PATH is set in the system environment, use it. | Duncan Sands | 2010-03-05 | 1 | -0/+1 | |
| | | | | llvm-svn: 97796 | |||||
* | simplify some functions and make them work with vector | Chris Lattner | 2010-03-05 | 1 | -62/+25 | |
| | | | | | | compares, noticed by inspection. llvm-svn: 97795 | |||||
* | fix a nice subtle reassociate bug which would only occur | Chris Lattner | 2010-03-05 | 2 | -7/+34 | |
| | | | | | | | in a very specific use pattern embodied in the carefully reduced testcase. llvm-svn: 97794 | |||||
* | Move GetStringLength and helper from SimplifyLibCalls to ValueTracking. | Eric Christopher | 2010-03-05 | 3 | -124/+133 | |
| | | | | | | No functionality change. llvm-svn: 97793 | |||||
* | Revert r97788 because it broke test/FrontendC/2010-02-16-DbgVarScope.c. | Jeffrey Yasskin | 2010-03-05 | 3 | -26/+22 | |
| | | | | llvm-svn: 97792 | |||||
* | Fix PR6497, a bug where we'd fold a load into an addc | Chris Lattner | 2010-03-05 | 2 | -0/+27 | |
| | | | | | | | | | | | node which has a flag. That flag in turn was used by an already-selected adde which turned into an ADC32ri8 which used a selected load which was chained to the load we folded. This flag use caused us to form a cycle. Fix this by not ignoring chains in IsLegalToFold even in cases where the isel thinks it can. llvm-svn: 97791 | |||||
* | cleanup | Chris Lattner | 2010-03-05 | 1 | -6/+6 | |
| | | | | llvm-svn: 97790 |