summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
* Avoid read after free.Evan Cheng2008-04-161-1/+1
| | | | llvm-svn: 49760
* Remove X86_64SRet; it isn't used anymore.Dan Gohman2008-04-161-11/+0
| | | | llvm-svn: 49759
* Add movd instructions to move from MMX registersDan Gohman2008-04-152-0/+38
| | | | | | to 64-bit GPR registers on x86-64. llvm-svn: 49757
* Fix the new scheduler assertion checks to work whenDan Gohman2008-04-151-2/+10
| | | | | | | the scheduler has inserted no-ops. This fixes the 2006-07-03-schedulers.ll regression on ppc32. llvm-svn: 49747
* Apple GCC 4.2 builds things differently. It no longer spawns a bunch ofBill Wendling2008-04-151-4/+33
| | | | | | processes, but requires the project to use -j. llvm-svn: 49744
* VisualStudio project files updated. #include <algorithm> added to make ↵Chuck Rose III2008-04-153-0/+20
| | | | | | VisualStudio happy. Also had to undefine setjmp because of #include <csetjmp> turning setjmp into _setjmp in VisualStudio. llvm-svn: 49743
* Make 64-to-32 bit truncations explicit (prevent warnings).Dale Johannesen2008-04-151-3/+5
| | | | | | All values here fit in 32 bits. llvm-svn: 49736
* Don't assume a tail call can't reference a byvalDale Johannesen2008-04-152-2/+22
| | | | | | argument to the outer function, this isn't correct. llvm-svn: 49731
* Use gv's --spartan option, which trades away an extra row of UI buttonsDan Gohman2008-04-151-0/+1
| | | | | | for more space for displaying the graph. llvm-svn: 49730
* A couple minor fixes suggested by Matthijs KooijmanChris Lattner2008-04-152-2/+2
| | | | llvm-svn: 49729
* Change Divided flag to Split, as suggested by EvanNicolas Geoffray2008-04-153-8/+8
| | | | llvm-svn: 49715
* Sort sub-registers and super-registers lists according to super-sub register ↵Evan Cheng2008-04-152-6/+33
| | | | | | relations. e.g. X86::RAX sub-register list is EAX, AX, AL, AH (order of last two are not guaranteed). llvm-svn: 49714
* Install into the directoryBill Wendling2008-04-151-2/+4
| | | | llvm-svn: 49713
* Treat EntryToken nodes as "passive" so that they aren't added to theDan Gohman2008-04-155-37/+54
| | | | | | | | | | | | | | | | | ScheduleDAG; they don't correspond to any actual instructions so they don't need to be scheduled. This fixes a bug where the EntryToken was being scheduled multiple times in some cases, though it ended up not causing any trouble because EntryToken doesn't expand into anything. With this fixed the schedulers reliably schedule the expected number of units, so we can check this with an assertion. This requires a tweak to test/CodeGen/X86/loop-hoist.ll because it ends up getting scheduled differently in a trivial way, though it was enough to fool the prcontext+grep that the test does. llvm-svn: 49701
* In -view-sunit-dags, display "special" chain dependencies as cyanDan Gohman2008-04-142-0/+3
| | | | | | instead of blue to distinguish them from regular dependencies. llvm-svn: 49696
* Remove unnecessary <sstream> includes.Dan Gohman2008-04-142-2/+0
| | | | llvm-svn: 49681
* Avoid creating MERGE_VALUES nodes for single values.Dan Gohman2008-04-141-1/+2
| | | | llvm-svn: 49676
* Teach AliasSetTracker about VAArgInst.Dan Gohman2008-04-142-0/+20
| | | | llvm-svn: 49674
* Minor whitespace and comment cleanups.Dan Gohman2008-04-141-3/+3
| | | | llvm-svn: 49671
* In the special case, call the comparison function instead ofDan Gohman2008-04-141-2/+2
| | | | | | | | manually performing the comparison. This allows the special case to work correctly even in the case where someone is experimenting with a different comparison function :-). llvm-svn: 49670
* Upgrade these tests for the current intrinsic prototypes.Dan Gohman2008-04-142-24/+24
| | | | llvm-svn: 49669
* Remove -unwind-tables-optional everywhere, sinceDale Johannesen2008-04-1416-21/+21
| | | | | | this is now the default. llvm-svn: 49667
* Fix const-correctness issues with the SrcValue handling in theDan Gohman2008-04-147-28/+28
| | | | | | memory intrinsic expansion code. llvm-svn: 49666
* Reverse sense of unwind-tables option. This meansDale Johannesen2008-04-145-13/+12
| | | | | | | stack tracebacks on Darwin x86-64 won't work by default; nevertheless, everybody but me thinks this is a good idea. llvm-svn: 49663
* Clean up some comments.Dan Gohman2008-04-141-5/+5
| | | | llvm-svn: 49661
* Revert r49614. As Dan pointed out, some of these aren't correct.Owen Anderson2008-04-146-7/+7
| | | | llvm-svn: 49657
* Fix /test/CodeGen/PowerPC/big-endian-actual-args.ll for linux/ppc32Nicolas Geoffray2008-04-141-4/+4
| | | | llvm-svn: 49652
* improve diagnostics in call parsing, patch suggested byChris Lattner2008-04-146-7/+7
| | | | | | Matthijs Kooijman llvm-svn: 49648
* VAArg may trap.Dan Gohman2008-04-141-0/+1
| | | | llvm-svn: 49646
* Initial libcall support for LegalizeTypes. This isDuncan Sands2008-04-143-0/+116
| | | | | | | | much simpler than in LegalizeDAG because calls are not yet expanded into call sequences: that happens after type legalization has finished. llvm-svn: 49634
* add a new CallGraphNode::removeCallEdgeFor method, tidy some comments.Chris Lattner2008-04-132-5/+24
| | | | llvm-svn: 49617
* Add support for equality comparison of CallSite's.Chris Lattner2008-04-131-0/+3
| | | | llvm-svn: 49616
* Replace calls of the form V1->setName(V2->getName()) with V1->takeName(V2), Owen Anderson2008-04-136-7/+7
| | | | | | which is significantly more efficient. llvm-svn: 49614
* LegalizeTypes can sometimes have deleted nodesDuncan Sands2008-04-132-0/+51
| | | | | | | | | in its maps. Add some sanity checks that catch this kind of thing. Hopefully these can be removed one day (once all problems are fixed!) but for the moment it seems wise to have them in. llvm-svn: 49612
* Add a divided flag for the first piece of an argument divided into mulitple ↵Nicolas Geoffray2008-04-133-14/+24
| | | | | | parts. Fixes PR1643 llvm-svn: 49611
* The functionality being tested was removed because it was horribly unsafe.Owen Anderson2008-04-131-1/+1
| | | | llvm-svn: 49610
* Fix some serious logic errors that broke the jit on darwin/x86-64.Chris Lattner2008-04-131-3/+3
| | | | llvm-svn: 49606
* Merge LLVMBuilder and FoldingBuilder, callingDuncan Sands2008-04-1318-479/+281
| | | | | | the result IRBuilder. Patch by Dominic Hamon. llvm-svn: 49604
* Gabor points out that reserveOperandSpace takes # of values, Chris Lattner2008-04-131-1/+1
| | | | | | not # of operands as an input. llvm-svn: 49599
* Provide option for stack alignment overrideAnton Korobeynikov2008-04-121-0/+7
| | | | llvm-svn: 49593
* This patch corrects the handling of byval arguments for tailcallArnold Schwaighofer2008-04-124-30/+182
| | | | | | | | | | | | | | | | | | | | | | optimized x86-64 (and x86) calls so that they work (... at least for my test cases). Should fix the following problems: Problem 1: When i introduced the optimized handling of arguments for tail called functions (using a sequence of copyto/copyfrom virtual registers instead of always lowering to top of the stack) i did not handle byval arguments correctly e.g they did not work at all :). Problem 2: On x86-64 after the arguments of the tail called function are moved to their registers (which include ESI/RSI etc), tail call optimization performs byval lowering which causes xSI,xDI, xCX registers to be overwritten. This is handled in this patch by moving the arguments to virtual registers first and after the byval lowering the arguments are moved from those virtual registers back to RSI/RDI/RCX. llvm-svn: 49584
* Factor some libcall code.Duncan Sands2008-04-121-61/+49
| | | | llvm-svn: 49583
* Drop ISD::MEMSET, ISD::MEMMOVE, and ISD::MEMCPY, which are not LegalDan Gohman2008-04-1231-750/+687
| | | | | | | | | | | | | | | | | | | | | | | | | | | on any current target and aren't optimized in DAGCombiner. Instead of using intermediate nodes, expand the operations, choosing between simple loads/stores, target-specific code, and library calls, immediately. Previously, the code to emit optimized code for these operations was only used at initial SelectionDAG construction time; now it is used at all times. This fixes some cases where rep;movs was being used for small copies where simple loads/stores would be better. This also cleans up code that checks for alignments less than 4; let the targets make that decision instead of doing it in target-independent code. This allows x86 to use rep;movs in low-alignment cases. Also, this fixes a bug that resulted in the use of rep;stos for memsets of 0 with non-constant memory size when the alignment was at least 4. It's better to use the library in this case, which can be significantly faster when the size is large. This also preserves more SourceValue information when memory intrinsics are lowered into simple loads/stores. llvm-svn: 49572
* Fix a bug that prevented x86-64 from using rep.movsq forDan Gohman2008-04-122-3/+3
| | | | | | 8-byte-aligned data. llvm-svn: 49571
* 80 col fixNate Begeman2008-04-121-1/+1
| | | | llvm-svn: 49569
* Restore code to disable crash catcher on older OS X systemsNate Begeman2008-04-121-1/+25
| | | | llvm-svn: 49568
* Add debugging code.Evan Cheng2008-04-121-3/+7
| | | | llvm-svn: 49566
* Reenable JIT symbol table.Chris Lattner2008-04-111-1/+1
| | | | llvm-svn: 49548
* Do not add empty live intervals to handled_. They should never be undone for ↵Evan Cheng2008-04-111-2/+1
| | | | | | backtracking. llvm-svn: 49544
* If a PHI node has a single implicit_def source, replace it with an ↵Evan Cheng2008-04-112-5/+3563
| | | | | | implicit_def instead of a copy. llvm-svn: 49543
OpenPOWER on IntegriCloud