summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* This header isn't necessary now.Wojciech Matyjewicz2008-07-201-2/+0
| | | | llvm-svn: 53811
* Fix PR2088. Use modulo linear equation solver to compute loop iterationWojciech Matyjewicz2008-07-202-23/+72
| | | | | | count. llvm-svn: 53810
* Fix for first part of PR2562. Generate the "pinsrw" instruction for insertsBill Wendling2008-07-201-0/+2
| | | | | | into v4i16 vectors. llvm-svn: 53807
* Pull r53795 from Gaz into mainline:Bill Wendling2008-07-201-14/+29
| | | | | | | | If .loc and .file aren't used, always emit the "debug_line" section. This requires at least one entry in the line matrix. So if there's nothing to emit into the matrix, emit an end of matrix value anyway. llvm-svn: 53803
* Unbreak build: 'DarwinTargetAsmInfo' was already taken as PPC TAI flavour.Anton Korobeynikov2008-07-193-12/+14
| | | | llvm-svn: 53801
* Make sure custom lowering for LegalizeTypesDuncan Sands2008-07-191-4/+10
| | | | | | | | | | returns a node with the right number of return values. This fixes codegen of Generic/cast-fp.ll, Generic/fp_to_int.ll and PowerPC/multiple-return-values.ll when using -march=ppc32 -mattr=+64bit. llvm-svn: 53794
* Use chars, where possibleAnton Korobeynikov2008-07-191-25/+25
| | | | llvm-svn: 53791
* Switch MIPS to new ELFTargetAsmInfo. Add few FIXMEs.Anton Korobeynikov2008-07-194-138/+114
| | | | llvm-svn: 53790
* Fix a FIXME :)Anton Korobeynikov2008-07-192-6/+7
| | | | llvm-svn: 53789
* Use generic ELFTargetAsmInfo and DarwinTargetAsmInfo for X86 codeAnton Korobeynikov2008-07-193-268/+26
| | | | llvm-svn: 53788
* Add TargetAsmInfo stuff for all darwin-based targetsAnton Korobeynikov2008-07-191-0/+129
| | | | llvm-svn: 53787
* Add TargetAsmInfo for all ELF-based targetsAnton Korobeynikov2008-07-191-0/+164
| | | | llvm-svn: 53786
* Use aligned stack spills, where possible. This fixes PR2549.Anton Korobeynikov2008-07-191-19/+23
| | | | llvm-svn: 53784
* Fix a memory leak in LiveIntervalAnalysis.Evan Cheng2008-07-192-11/+13
| | | | llvm-svn: 53779
* Softfloat support for FDIV. Patch by Duncan Sands2008-07-182-0/+14
| | | | | | Richard Pennington. llvm-svn: 53773
* Eliminate unused variable.Duncan Sands2008-07-181-1/+1
| | | | llvm-svn: 53772
* Supress a gcc-4.3 warning.Duncan Sands2008-07-181-1/+1
| | | | llvm-svn: 53771
* Revert 53729, after waking up in the middle ofDuncan Sands2008-07-181-4/+3
| | | | | | | | | | | | | | | | the night realising that it was wrong :) I think the reason the same type was being used for the shufflevec of indices as for the actual indices is so that if one of them needs splitting then so does the other. After my patch it might be that the indices need splitting but not the rest, yet there is no good way of handling that. I think the right solution is to not have the shufflevec be an operand at all: just have it be the list of numbers it actually is, stored as extra info in the node. llvm-svn: 53768
* In the CBackend, use casts to force integer add, subtract, andDan Gohman2008-07-181-0/+28
| | | | | | | multiply to be done as unsigned, so that they have well defined behavior on overflow. This fixes PR2408. llvm-svn: 53767
* Fix a LocalSpiller leak. This fixes tramp3d-v4.Dan Gohman2008-07-181-0/+1
| | | | llvm-svn: 53766
* Make PRE actually handle critical edges (by splitting them). Confirmed that ↵Owen Anderson2008-07-181-3/+6
| | | | | | bootstrap passes with this change. llvm-svn: 53762
* Reapply r53735. My last patch fixed the failures Dan observed.Owen Anderson2008-07-181-52/+9
| | | | llvm-svn: 53761
* Add some checks that got lost in the shuffle. This fixes 464.h264ref.Owen Anderson2008-07-181-0/+4
| | | | llvm-svn: 53760
* Revert r53735. It broke SPEC 464.h264ref.Dan Gohman2008-07-181-9/+52
| | | | llvm-svn: 53757
* verify limits-fndefn.c from the GCC testsuite before theChris Lattner2008-07-181-1/+1
| | | | | | | heat death of the universe, fixing an O(N^2) problem in the size of a basic block. llvm-svn: 53749
* Re-introduce LeakDetector support for MachineInstrs and MachineBasicBlocks.Dan Gohman2008-07-174-6/+26
| | | | | | | Fix a leak that this turned up in LowerSubregs.cpp. And, comment a leak in LiveIntervalAnalysis.cpp. llvm-svn: 53746
* When printing MemOperand nodes, only use print() forDan Gohman2008-07-171-3/+10
| | | | | | | | PseudoSourceValue values, which never have names. Use getName() for all other values, because we want to print just a short summary of the value, not the entire instruction. llvm-svn: 53738
* Use MergeBlockIntoPredecessor to simplify some code.Owen Anderson2008-07-171-52/+9
| | | | llvm-svn: 53735
* Subreg live interval valno may not have a corresponding def machineinstr ↵Evan Cheng2008-07-171-1/+1
| | | | | | since it's less precise. llvm-svn: 53734
* Make MergeBlockIntoPredecessor more aggressive when the same successor appearsOwen Anderson2008-07-171-5/+24
| | | | | | more than once. llvm-svn: 53731
* Enable PRE. My last batch of changes fixed the miscompile.Owen Anderson2008-07-171-1/+1
| | | | llvm-svn: 53730
* Use a legal type for elements of the vector_shuffleDuncan Sands2008-07-171-3/+4
| | | | | | | | | | | | | | | | | | mask. These are just indices into the shuffled vector so their type is unrelated to the type of the shuffled elements (which is what was being used before). This fixes vec_shuffle-11.ll when using LegalizeTypes. What seems to have happened is that Dan's recent change r53687, which corrected the result type of the shuffle, somehow caused LegalizeTypes to notice that the mask operand was a BUILD_VECTOR with a legal type but elements of an illegal type (i64). LegalizeTypes legalized this by introducing a new BUILD_VECTOR of i32 and bitcasting it to the old type. But the mask operand is not supposed to be a bitcast but a straight BUILD_VECTOR of constants, causing a crash. llvm-svn: 53729
* Add a new function, ReplaceAllUsesOfValuesWith, which handles bulkDan Gohman2008-07-1715-246/+382
| | | | | | | | | | | | | | | | | | | | | | | | | | | replacement of multiple values. This is slightly more efficient than doing multiple ReplaceAllUsesOfValueWith calls, and theoretically could be optimized even further. However, an important property of this new function is that it handles the case where the source value set and destination value set overlap. This makes it feasible for isel to use SelectNodeTo in many very common cases, which is advantageous because SelectNodeTo avoids a temporary node and it doesn't require CSEMap updates for users of values that don't change position. Revamp MorphNodeTo, which is what does all the work of SelectNodeTo, to handle operand lists more efficiently, and to correctly handle a number of corner cases to which its new wider use exposes it. This commit also includes a change to the encoding of post-isel opcodes in SDNodes; now instead of being sandwiched between the target-independent pre-isel opcodes and the target-dependent pre-isel opcodes, post-isel opcodes are now represented as negative values. This makes it possible to test if an opcode is pre-isel or post-isel without having to know the size of the current target's post-isel instruction set. These changes speed up llc overall by 3% and reduce memory usage by 10% on the InstructionCombining.cpp testcase with -fast and -regalloc=local. llvm-svn: 53728
* LegalizeTypes support for what seems to be theDuncan Sands2008-07-172-0/+18
| | | | | | | only missing ppc long double operations: FNEG and FP_EXTEND. llvm-svn: 53723
* Remove unnecessary readme entryNate Begeman2008-07-171-9/+0
| | | | llvm-svn: 53722
* Turn LegalizeTypes back off again for the moment:Duncan Sands2008-07-171-6/+4
| | | | | | | it is breaking Darwin bootstrap due to missing functionality. llvm-svn: 53721
* Fix a typo in last commitNate Begeman2008-07-171-1/+1
| | | | llvm-svn: 53720
* SSE codegen for vsetcc nodesNate Begeman2008-07-174-43/+206
| | | | llvm-svn: 53719
* Make GlobalOpt preserve address spaces when scalar replacing aggregate globals.Matthijs Kooijman2008-07-171-2/+4
| | | | llvm-svn: 53716
* Fix PR2553Chris Lattner2008-07-171-1/+2
| | | | llvm-svn: 53715
* When lowering certain atomics, we need to copy the memoperand from the oldMon P Wang2008-07-171-1/+5
| | | | | | atomic operation to the new one. llvm-svn: 53714
* Factorize some code for determining which libcall to use.Duncan Sands2008-07-174-562/+204
| | | | llvm-svn: 53713
* Inliner tweak. Function calls should cost more than one instruction!Evan Cheng2008-07-171-0/+5
| | | | llvm-svn: 53712
* Factor MergeBlockIntoPredecessor out into BasicBlockUtils.Owen Anderson2008-07-172-51/+56
| | | | llvm-svn: 53705
* Mark function used by asm block as used, otherwise optimizer may not see the ↵Devang Patel2008-07-161-1/+3
| | | | | | use and may delete the function. llvm-svn: 53692
* There's no need to iterate block merging and PRE. In fact, iterating the latterOwen Anderson2008-07-161-14/+12
| | | | | | could cause problems for memdep when it breaks critical edges. llvm-svn: 53691
* Somehow, custom lowering of i64 multiplications got dropped along the way.Scott Michel2008-07-161-104/+105
| | | | llvm-svn: 53689
* Fix the result type of X86's truncate to i8.Dan Gohman2008-07-161-5/+3
| | | | llvm-svn: 53688
* Fix the result type of a VECTOR_SHUFFLE+BIT_CONVERT dagcombine. ThisDan Gohman2008-07-161-3/+2
| | | | | | | was turned up by some new SelectionDAG assertion checks that I'm working on. llvm-svn: 53687
* Add support for promoting and expanding AssertZextDuncan Sands2008-07-162-0/+42
| | | | | | | and AssertSext. Needed when passing huge integer parameters with the zeroext or signext attributes. llvm-svn: 53684
OpenPOWER on IntegriCloud