summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
* Select DW_AT_const_value size based on variable size.Devang Patel2011-05-274-5/+44
| | | | llvm-svn: 132193
* Remove DwarfRegNum from the individual bits of the condition register.Rafael Espindola2011-05-271-32/+32
| | | | | | These should be DW_OP_bit_piece of CR (64). llvm-svn: 132192
* Remove DwarfRegNum from CARRY. I should be encoded with DW_OP_bit_piece.Rafael Espindola2011-05-271-1/+1
| | | | llvm-svn: 132190
* Assorted fixes for Win64 EH unwind info emission:Charles Davis2011-05-272-20/+42
| | | | | | | | | | - Flip order of bitfields. This gets our output matching GAS. - Handle case where the end of the prolog wasn't specified. - If the resulting unwind info struct is less than 8 bytes, pad to 8 bytes. Add a test for the latter two. llvm-svn: 132188
* Remove dwarf numbers from subregs. We should use DW_OP_bit_piece toRafael Espindola2011-05-271-45/+45
| | | | | | | | refer to them. I tested this with both check-all and the gdb testsuite. llvm-svn: 132187
* InstCombine: Make switch folding with equality compares more aggressive by ↵Benjamin Kramer2011-05-272-15/+94
| | | | | | | | trying instsimplify on the arm where we know the compared value. Stuff like "x == y ? y : x&y" now folds into "x&y". llvm-svn: 132185
* Fix PR10029 - VerifyCoalescing failure on patterns_dfa.c of 445.gobmk.Cameron Zwarich2011-05-272-2/+58
| | | | llvm-svn: 132181
* Add a test for Win64 EH unwind information emission.Charles Davis2011-05-271-0/+51
| | | | llvm-svn: 132180
* Make the branch encoding for tBcc more obvious that it's a 4-byte opcodeEric Christopher2011-05-272-1/+5
| | | | | | followed by a conditional and imm8. llvm-svn: 132179
* Fix comment.Eric Christopher2011-05-271-1/+1
| | | | llvm-svn: 132178
* Start keeping track of where the various unwind instructions are in the prolog.Charles Davis2011-05-273-32/+50
| | | | | | | Use them to calculate the offset inside the prolog. Emit this value when emitting the unwind codes. llvm-svn: 132177
* Add missing break statements. Align UNWIND_INFO and RUNTIME_FUNCTION structsCharles Davis2011-05-271-0/+6
| | | | | | | | to 4 bytes. I'm surprised no one caught the missing break statements. llvm-svn: 132176
* My attempt at fixing the leak reported by the valgrind buildbots. Valgrind willCharles Davis2011-05-271-2/+4
| | | | | | | | still report leaks, but they're spurious now. Valgrind cannot peer into std::vector objects--or any dynamic array, for that matter--because it doesn't know how big the array is. llvm-svn: 132174
* Fix inverted conditional in SaveReg and SaveXMM. Err when the frame pointer isCharles Davis2011-05-271-3/+7
| | | | | | | already defined, and err when the PushMachFrame operation isn't the first operation (if specified at all). llvm-svn: 132173
* One more debug line number miss in instcombine (although the code in ↵Eli Friedman2011-05-271-5/+1
| | | | | | question isn't actually in instcombine). llvm-svn: 132170
* Fix copy+pastos.Dan Gohman2011-05-271-2/+2
| | | | llvm-svn: 132168
* Final step of instcombine debuginfo; switch a couple more places over to ↵Eli Friedman2011-05-275-16/+34
| | | | | | InsertNewInstWith, and use setDebugLoc for the cases which can't be easily handled by the automated mechanisms. llvm-svn: 132167
* Fix warning about || and && without explicit grouping.Chandler Carruth2011-05-261-2/+2
| | | | | | | | This looks like it flagged an actual bug. Devang, please review. I added the parentheses that change behavior, but make the behavior more closely match commit log's intent. llvm-svn: 132165
* Do not insert anything after terminator.Devang Patel2011-05-261-1/+2
| | | | llvm-svn: 132164
* Renamed llvm.x86.sse42.crc32 intrinsics; crc64 doesn't exist. Chad Rosier2011-05-268-48/+96
| | | | | | | crc32.[8|16|32] have been renamed to .crc32.32.[8|16|32] and crc64.[8|16|32] have been renamed to .crc32.64.[8|64]. llvm-svn: 132163
* Comment cleanup.Eric Christopher2011-05-261-2/+2
| | | | llvm-svn: 132162
* Do not move DBG_VALUE in middle of PHI nodes.Devang Patel2011-05-261-1/+4
| | | | llvm-svn: 132161
* If llvm.dbg.value and the value instruction it refers to are far apart then ↵Devang Patel2011-05-261-1/+13
| | | | | | iSel may not be able to find corresponding Node for llvm.dbg.value during DAG construction. Make iSel's life easier by removing this distance between llvm.dbg.value and its value instruction. llvm-svn: 132151
* Add comment.Devang Patel2011-05-261-0/+3
| | | | llvm-svn: 132149
* During branch folding avoid inserting redundant DBG_VALUE machine instructions.Devang Patel2011-05-262-0/+105
| | | | llvm-svn: 132148
* Use MachineFrameInfo::hasCalls instead of MipsFunctionInfo::hasCall to check ifAkira Hatanaka2011-05-263-10/+2
| | | | | | a function has any function calls. llvm-svn: 132140
* Fix some dwarf register numbers.Rafael Espindola2011-05-263-3/+3
| | | | llvm-svn: 132136
* Make few ExecutionEngine tests XFAIL for ARM, since ExecutionEngine is ↵Galina Kistanova2011-05-2615-0/+31
| | | | | | broken for ARM, please remove the following XFAIL when it will be fixed. llvm-svn: 132135
* Fix LTO builds with xcode 4.Rafael Espindola2011-05-261-1/+11
| | | | llvm-svn: 132132
* Add support for C++ exception handling.Akira Hatanaka2011-05-267-21/+76
| | | | llvm-svn: 132131
* Reorganize these slightly according to operand type.Eric Christopher2011-05-261-2/+2
| | | | llvm-svn: 132128
* Set HasSetDirective to true.Akira Hatanaka2011-05-261-1/+0
| | | | llvm-svn: 132127
* Fix test on Windows.Eli Friedman2011-05-261-2/+2
| | | | llvm-svn: 132126
* Revert r132111. I built Release (without Asserts), so I didn't know about theCharles Davis2011-05-261-2/+0
| | | | | | assert that prevented setting alignment on section creation. llvm-svn: 132113
* Fix definitions of UOP_SaveXMM128, UOP_SaveXMM128Big, and UOP_PushMachFrameCharles Davis2011-05-261-1/+1
| | | | | | to match Microsoft's definitions. llvm-svn: 132112
* Align Win64 EH Table sections to 4 bytes.Charles Davis2011-05-261-0/+2
| | | | llvm-svn: 132111
* Add a test for the chained directives that I forgot last time.Charles Davis2011-05-261-0/+3
| | | | llvm-svn: 132110
* Fix MSVC warning regarding mkdir function usage.Francois Pichet2011-05-261-0/+7
| | | | llvm-svn: 132109
* Reverting 132105: it broke some LLVM-GCC DejaGNU tests.Stuart Hastings2011-05-264-116/+15
| | | | llvm-svn: 132108
* Mark tBX as an indirect branch rather than a return.Cameron Zwarich2011-05-262-9/+9
| | | | llvm-svn: 132107
* Test .seh_startchained and .seh_endchained parsing.Charles Davis2011-05-263-15/+18
| | | | | | | | | | | Rework how the MCWin64EHUnwindInfo instances are stored. Fix issues with chained unwind areas exposed by the test that were related to this. The ChainedParent field had the wrong address, because when the chained unwind info was added, the addresses shifted around. Now we store the pointers to the structures, which are now allocated from the MC heap. llvm-svn: 132106
* Correctly handle a one-word struct passed byval on x86_64.Stuart Hastings2011-05-264-15/+116
| | | | | | rdar://problem/6920088 llvm-svn: 132105
* indvars: incremental fixes for -disable-iv-rewrite and testcases.Andrew Trick2011-05-262-22/+138
| | | | | | | | Use a proper worklist for use-def traversal without holding onto an iterator. Now that we process all IV uses, we need complete logic for resusing existing derived IV defs. See HoistStep. llvm-svn: 132103
* Add a RAGreedy::canEvict function.Jakob Stoklund Olesen2011-05-251-4/+62
| | | | | | | | | | | | This doesn't change functionality (much), but it allows for a more fine-grained eviction policy. The current policy only compares spill weights, and that is not always the best thing to do. Spill weights are designed to serve linear scan, and they don't consider live range splitting. Add a mechanism so canEvict() can request that a live range be evicted and split/spilled. This is to avoid infinite eviction loops. llvm-svn: 132101
* Rewrite fast-isel integer cast handling to handle more cases, and to be ↵Eli Friedman2011-05-255-59/+205
| | | | | | | | | | simpler and more consistent. The practical effects here are that x86-64 fast-isel can now handle trunc from i8 to i1, and ARM fast-isel can handle many more constructs involving integers narrower than 32 bits (including loads, stores, and many integer casts). rdar://9437928 . llvm-svn: 132099
* Define WeakRefDirective.Akira Hatanaka2011-05-252-0/+13
| | | | llvm-svn: 132098
* PR9998: ashr exact %x, 31 is not equivalent to sdiv exact %x, -2147483648.Eli Friedman2011-05-252-4/+20
| | | | llvm-svn: 132097
* Remove unused statistical counter.Devang Patel2011-05-251-57/+0
| | | | llvm-svn: 132087
* Convert tBX_CALL / tBXr9_CALL to actual pseudoinstructions.Cameron Zwarich2011-05-252-10/+24
| | | | llvm-svn: 132086
* Add tests for .seh_setframe and .seh_handlerdata parsing. Fix issues withCharles Davis2011-05-254-2/+40
| | | | | | | | | | them. I had to add a special SwitchSectionNoChange method to MCStreamer just for .seh_handlerdata. If this isn't OK, please let me know, and I'll find some other way to fix .seh_handlerdata streaming. llvm-svn: 132084
OpenPOWER on IntegriCloud