summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
...
* Add a method to TargetRegisterInfo to get the register number that the Win64 EHCharles Davis2011-05-243-0/+30
| | | | | | | scheme uses internally. Implement it for x86 (the only architecture that LLVM supports for which this matters right now). llvm-svn: 131969
* Clean up the lazy initialization of DIBuilder a bit.Cameron Zwarich2011-05-244-13/+8
| | | | llvm-svn: 131956
* Work around code generation bug in Visual Studio 2010.Jakob Stoklund Olesen2011-05-241-2/+2
| | | | | | See http://llvm.org/pr9976 for details. llvm-svn: 131954
* Make LoadAndStorePromoter preserve debug info and create llvm.dbg.values whenCameron Zwarich2011-05-249-27/+125
| | | | | | promoting allocas to SSA variables. Fixes <rdar://problem/9479036>. llvm-svn: 131953
* Explain FIXME.Rafael Espindola2011-05-241-4/+5
| | | | llvm-svn: 131952
* Fix the defaults for .eh_frame. We were marking it as writable.Rafael Espindola2011-05-242-2/+7
| | | | llvm-svn: 131951
* - Teach SelectionDAG::isKnownNeverZero to return true (op x, c) when c isEvan Cheng2011-05-243-12/+45
| | | | | | | | | | non-zero. - Teach X86 cmov optimization to eliminate the cmov from ctlz, cttz extension when the source of X86ISD::BSR / X86ISD::BSF is proven to be non-zero. rdar://9490949 llvm-svn: 131948
* Remove dead option.Evan Cheng2011-05-241-5/+0
| | | | llvm-svn: 131947
* FileCheck-ize a couple of IV unit tests.Andrew Trick2011-05-242-7/+13
| | | | llvm-svn: 131946
* Fix cmake dependencies.Rafael Espindola2011-05-241-1/+1
| | | | llvm-svn: 131943
* Simplify offset calculation of stack frame objects for $gp restore location andAkira Hatanaka2011-05-241-56/+31
| | | | | | | | variable arguments in LowerCall and LowerFormalArguments. This should also fix the bug in which handling of variable arguments is incorrect when the front-end optimizes away unused fixed arguments. llvm-svn: 131942
* Fix debug info for blocks' variable.Devang Patel2011-05-241-6/+21
| | | | llvm-svn: 131940
* Test case for r130799 - indvars: Added canExpandBackEdgeTakenCount.Andrew Trick2011-05-241-1/+5
| | | | llvm-svn: 131939
* Remove unnecessary comment.Devang Patel2011-05-231-1/+0
| | | | llvm-svn: 131936
* Expand f64 FPOW.Akira Hatanaka2011-05-231-0/+1
| | | | llvm-svn: 131928
* Add pattern for double-to-integer conversion. Patch by Sasa Stankovic.Akira Hatanaka2011-05-232-0/+9
| | | | llvm-svn: 131927
* Revert 121907 (it causes llc crash) and apply original patch from PR9817.Devang Patel2011-05-232-3/+3
| | | | llvm-svn: 131926
* Fixes related to coding style.Akira Hatanaka2011-05-231-36/+36
| | | | llvm-svn: 131922
* Document llvm.exp and llvm.pow. Dan Gohman2011-05-231-0/+68
| | | | llvm-svn: 131921
* When checking for signed multiplication overflow, watch out for INT_MIN and -1.Dan Gohman2011-05-232-0/+20
| | | | | | This fixes PR9845. llvm-svn: 131919
* Propagate error correctly in the MC Asm parser for leading '$' expressions.Jim Grosbach2011-05-231-1/+1
| | | | llvm-svn: 131918
* Fix MipsAsmPrinter::printSavedRegsBitmaskChange. Remove functions and variablesAkira Hatanaka2011-05-232-38/+40
| | | | | | in MipsFunctionInfo that are no longer used. llvm-svn: 131917
* clarify this, apparently it is confusing :)Chris Lattner2011-05-231-1/+3
| | | | llvm-svn: 131916
* Change StackDirection from StackGrowsUp to StackGrowsDown.Akira Hatanaka2011-05-236-252/+94
| | | | | | | | | | | | | | | | The following improvements are accomplished as a result of applying this patch: - Fixed frame objects' offsets (relative to either the virtual frame pointer or the stack pointer) are set before instruction selection is completed. There is no need to wait until Prologue/Epilogue Insertion is run to set them. - Calculation of final offsets of fixed frame objects is straightforward. It is no longer necessary to assign negative offsets to fixed objects for incoming arguments in order to distinguish them from the others. - Since a fixed object has its relative offset set during instruction selection, there is no need to conservatively set its alignment to 4. - It is no longer necessary to reorder non-fixed frame objects in MipsFrameLowering::adjustMipsStackFrame. llvm-svn: 131915
* Test case for r131908.Devang Patel2011-05-231-0/+102
| | | | llvm-svn: 131909
* Preserve debug info during iSel by keeping DanglingDebugInfoMap live until ↵Devang Patel2011-05-233-1/+19
| | | | | | | | end of function. Patch by Micah Villmow llvm-svn: 131908
* While replacing all uses of a SDValue with another value, do not forget to ↵Devang Patel2011-05-232-0/+51
| | | | | | transfer SDDbgValue. llvm-svn: 131907
* Clear list of instructions without DebugLoc.Devang Patel2011-05-231-0/+1
| | | | llvm-svn: 131906
* The dragonegg option to disable LLVM optimizations changed.Duncan Sands2011-05-232-2/+2
| | | | llvm-svn: 131903
* Implement .seh_stackalloc and .seh_pushframe parsing.Charles Davis2011-05-231-4/+27
| | | | | | | | | I haven't implemented any of the ones that take registers yet. The problem is that for x86-64 the streamer methods expect a native x86 register number (note: %r8-%r15 want 8-15 instead of 0-7; same for %xmm8-%xmm15). I haven't figured out exactly how I want to do that yet. llvm-svn: 131899
* fix a really nasty basicaa mod/ref calculation bug that was causing ↵Chris Lattner2011-05-232-2/+22
| | | | | | | | miscompilation of UnitTests/ObjC/messages-2.m with the recent optimizer improvements. llvm-svn: 131897
* Fix <rdar://problem/9476260> by having tail calls always generate 32-bit ↵Cameron Zwarich2011-05-232-6/+11
| | | | | | | | branches in Darwin Thumb2 code. Tail calls are already disabled on Thumb1. llvm-svn: 131894
* rearrange two transforms, since one subsumes the other. Make the ↵Chris Lattner2011-05-231-16/+23
| | | | | | | | shift-exactness xform recurse. llvm-svn: 131888
* Transform any logical shift of a power of two into an exact/NUW shift whenChris Lattner2011-05-232-0/+38
| | | | | | in a known-non-zero context. llvm-svn: 131887
* Use a more efficient data structure for the "operand map". The number ofBill Wendling2011-05-231-7/+28
| | | | | | | operands to an instruction aren't great, so an iterative search is fairly quick and doesn't have the overhead of std::map. llvm-svn: 131886
* use the valuetracking isPowerOfTwo function, which is more powerful than ↵Chris Lattner2011-05-231-4/+4
| | | | | | | | checking for a constant directly. Thanks to Duncan for pointing this out. llvm-svn: 131885
* Teach valuetracking that byval arguments with a specified alignment areChris Lattner2011-05-233-6/+41
| | | | | | | | | | | | | | | | | | | | | | aligned. Teach memcpyopt to not give up all hope when confonted with an underaligned memcpy feeding an overaligned byval. If the *source* of the memcpy can be determined to be adequeately aligned, or if it can be forced to be, we can eliminate the memcpy. This addresses PR9794. We now compile the example into: define i32 @f(%struct.p* nocapture byval align 8 %q) nounwind ssp { entry: %call = call i32 @g(%struct.p* byval align 8 %q) nounwind ret i32 %call } in both x86-64 and x86-32 mode. We still don't get a tailcall though, because tailcalls apparently can't handle byval. llvm-svn: 131884
* add a helper method to get the byval alignment of an argument.Chris Lattner2011-05-222-0/+9
| | | | llvm-svn: 131883
* Eliminate some temporary variables, and don't call getByValTypeAlignmentChris Lattner2011-05-221-6/+8
| | | | | | when we're just going to throw the result away. No functionality change. llvm-svn: 131880
* add test from PR9164Chris Lattner2011-05-221-0/+6
| | | | llvm-svn: 131876
* testcase for PR9378Chris Lattner2011-05-221-0/+6
| | | | llvm-svn: 131875
* add a missing alias to make us more bug compatible with gcc, PR9378Chris Lattner2011-05-221-0/+1
| | | | llvm-svn: 131874
* document thiscall, PR9101Chris Lattner2011-05-221-5/+8
| | | | llvm-svn: 131873
* implement PR9315, constant folding exp2 in terms of pow (since hosts withoutChris Lattner2011-05-222-2/+13
| | | | | | C99 runtimes don't have exp2). llvm-svn: 131872
* RTABI chapter 4.3.4 specifies __eabi_mem* calls. Specifically, __eabi_memset ↵Renato Golin2011-05-224-4/+99
| | | | | | accepts parameters (ptr, size, value) in a different order than GNU's memset (ptr, value, size), therefore the special lowering in AAPCS mode. Implementation by Evzen Muller. llvm-svn: 131868
* Add methods to parse the SEH directives to the COFFAsmParser. Implement someCharles Davis2011-05-224-4/+161
| | | | | | | of them, particularly the ones that don't take arguments. Also implement .seh_proc and .seh_handler. llvm-svn: 131866
* add a note.Chris Lattner2011-05-221-0/+10
| | | | llvm-svn: 131863
* add some random notes.Chris Lattner2011-05-221-0/+5
| | | | llvm-svn: 131862
* Teach ValueTracking about x86 crc32 intrinsics.Evan Cheng2011-05-221-0/+4
| | | | llvm-svn: 131861
* Carve out a place in instcombine to put transformations which work knowing ↵Chris Lattner2011-05-222-0/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | that their result is non-zero. Implement an example optimization (PR9814), which allows us to transform: A / ((1 << B) >>u 2) into: A >>u (B-2) which we compile into: _divu3: ## @divu3 leal -2(%rsi), %ecx shrl %cl, %edi movl %edi, %eax ret instead of: _divu3: ## @divu3 movb %sil, %cl movl $1, %esi shll %cl, %esi shrl $2, %esi movl %edi, %eax xorl %edx, %edx divl %esi, %eax ret llvm-svn: 131860
OpenPOWER on IntegriCloud