- Nov 02, 2011
-
-
Craig Topper authored
llvm-svn: 143529
-
- Nov 01, 2011
-
-
Eli Friedman authored
Teach the x86 backend a couple tricks for dealing with v16i8 sra by a constant splat value. Fixes PR11289. llvm-svn: 143498
-
Richard Osborne authored
This can happen if the address + addend is less than the start of the cp / dp. llvm-svn: 143459
-
Richard Osborne authored
llvm-svn: 143458
-
Richard Osborne authored
llvm-svn: 143457
-
Craig Topper authored
llvm-svn: 143455
-
- Oct 31, 2011
-
-
Craig Topper authored
llvm-svn: 143336
-
Craig Topper authored
llvm-svn: 143332
-
Craig Topper authored
llvm-svn: 143331
-
Nick Lewycky authored
-enable-dwarf-directory. llvm-svn: 143326
-
- Oct 30, 2011
-
-
Benjamin Kramer authored
X86: Emit logical shift by constant splat of <16 x i8> as a <8 x i16> shift and zero out the bits where zeros should've been shifted in. llvm-svn: 143315
-
Craig Topper authored
Fix return type for X86 mpsadbw instrinsic. The instruction takes in a vector of 8-bit integers, but produces a vector of 16-bit integers. llvm-svn: 143313
-
Nadav Rotem authored
Fix pr11266. On x86: (shl V, 1) -> add V,V Hardware support for vector-shift is sparse and in many cases we scalarize the result. Additionally, on sandybridge padd is faster than shl. llvm-svn: 143311
-
Nadav Rotem authored
llvm-svn: 143307
-
- Oct 29, 2011
-
-
Nadav Rotem authored
If all of the inputs are zero/any_extended, create a new simple BV which can be further optimized by other BV optimizations. llvm-svn: 143297
-
Benjamin Kramer authored
llvm-svn: 143291
-
Dan Gohman authored
llvm-svn: 143262
-
NAKAMURA Takumi authored
llvm-svn: 143247
-
- Oct 28, 2011
-
-
Dan Gohman authored
fixes: Use a separate register, instead of SP, as the calling-convention resource, to avoid spurious conflicts with actual uses of SP. Also, fix unscheduling of calling sequences, which can be triggered by pseudo-two-address dependencies. llvm-svn: 143206
-
NAKAMURA Takumi authored
Don't assume APInt::getRawData() would hold target-aware endianness nor host-compliant endianness. rawdata[0] holds most lower i64, even on big endian host. FIXME: Add a testcase for big endian target. FIXME: Ditto on CompileUnit::addConstantFPValue() ? llvm-svn: 143194
-
NAKAMURA Takumi authored
llvm-svn: 143189
-
Duncan Sands authored
it fixes the dragonegg self-host (it looks like gcc is miscompiled). Original commit messages: Eliminate LegalizeOps' LegalizedNodes map and have it just call RAUW on every node as it legalizes them. This makes it easier to use hasOneUse() heuristics, since unneeded nodes can be removed from the DAG earlier. Make LegalizeOps visit the DAG in an operands-last order. It previously used operands-first, because LegalizeTypes has to go operands-first, and LegalizeTypes used to be part of LegalizeOps, but they're now split. The operands-last order is more natural for several legalization tasks. For example, it allows lowering code for nodes with floating-point or vector constants to see those constants directly instead of seeing the lowered form (often constant-pool loads). This makes some things somewhat more complicated today, though it ought to allow things to be simpler in the future. It also fixes some bugs exposed by Legalizing using RAUW aggressively. Remove the part of LegalizeOps that attempted to patch up invalid chain operands on libcalls generated by LegalizeTypes, since it doesn't work with the new LegalizeOps traversal order. Instead, define what LegalizeTypes is doing to be correct, and transfer the responsibility of keeping calls from having overlapping calling sequences into the scheduler. Teach the scheduler to model callseq_begin/end pairs as having a physical register definition/use to prevent calls from having overlapping calling sequences. This is also somewhat complicated, though there are ways it might be simplified in the future. This addresses rdar://9816668, rdar://10043614, rdar://8434668, and others. Please direct high-level questions about this patch to management. Delete #if 0 code accidentally left in. llvm-svn: 143188
-
Nick Lewycky authored
tools that read the debug info in the .o files by making the DIE sizes more consistent. llvm-svn: 143186
-
Dan Gohman authored
on every node as it legalizes them. This makes it easier to use hasOneUse() heuristics, since unneeded nodes can be removed from the DAG earlier. Make LegalizeOps visit the DAG in an operands-last order. It previously used operands-first, because LegalizeTypes has to go operands-first, and LegalizeTypes used to be part of LegalizeOps, but they're now split. The operands-last order is more natural for several legalization tasks. For example, it allows lowering code for nodes with floating-point or vector constants to see those constants directly instead of seeing the lowered form (often constant-pool loads). This makes some things somewhat more complicated today, though it ought to allow things to be simpler in the future. It also fixes some bugs exposed by Legalizing using RAUW aggressively. Remove the part of LegalizeOps that attempted to patch up invalid chain operands on libcalls generated by LegalizeTypes, since it doesn't work with the new LegalizeOps traversal order. Instead, define what LegalizeTypes is doing to be correct, and transfer the responsibility of keeping calls from having overlapping calling sequences into the scheduler. Teach the scheduler to model callseq_begin/end pairs as having a physical register definition/use to prevent calls from having overlapping calling sequences. This is also somewhat complicated, though there are ways it might be simplified in the future. This addresses rdar://9816668, rdar://10043614, rdar://8434668, and others. Please direct high-level questions about this patch to management. llvm-svn: 143177
-
Dan Gohman authored
llvm-svn: 143164
-
Jakob Stoklund Olesen authored
Previously, we were only setting the alignment bits on over-aligned loads and stores. llvm-svn: 143160
-
- Oct 27, 2011
-
-
-
Pete Cooper authored
llvm-svn: 143116
-
Nick Lewycky authored
llvm-svn: 143097
-
Eli Friedman authored
llvm-svn: 143095
-
Chad Rosier authored
llvm-svn: 143086
-
- Oct 26, 2011
-
-
Rafael Espindola authored
Patch by Sanjoy Das. llvm-svn: 143066
-
Rafael Espindola authored
Patch by Sanjoy Das. llvm-svn: 143064
-
Rafael Espindola authored
MORESTACK_RET_RESTORE_R10; which are lowered to a RET and a RET followed by a MOV respectively. Having a fake instruction prevents the verifier from seeing a MachineBasicBlock end with a non-terminator (MOV). It also prevents the rather eccentric case of a MachineBasicBlock ending with RET but having successors nevertheless. Patch by Sanjoy Das. llvm-svn: 143062
-
Lang Hames authored
llvm-svn: 143055
-
Jim Grosbach authored
llvm-svn: 143034
-
James Molloy authored
Revert r142530 at least temporarily while a discussion is had on llvm-commits regarding exactly how much optsize should optimize for size over performance. llvm-svn: 143023
-
Evan Cheng authored
on Darwin platforms where -Os means optimize for size without hurting performance. llvm-svn: 143002
-
- Oct 25, 2011
-
-
Dan Gohman authored
llvm-svn: 142880
-
Dan Gohman authored
llvm-svn: 142878
-