- Jan 21, 2015
-
-
Simon Pilgrim authored
Some folding patterns + tests are missing (marked as TODO) - these will be added in a future patch for review. llvm-svn: 226621
-
Simon Pilgrim authored
The SSE42 version of the AVX1 float stack folding tests will be added shortly, this renames the AVX1 file so that the files will be near each other in a directory listing to help ensure they are kept in sync. llvm-svn: 226620
-
Chandler Carruth authored
This creates a small internal pass which runs the InstCombiner over a function. This is the hard part of porting InstCombine to the new pass manager, as at this point none of the code in InstCombine has access to a Pass object any longer. The resulting interface for the InstCombiner is pretty terrible. I'm not planning on leaving it that way. The key thing missing is that we need to separate the worklist from the combiner a touch more. Once that's done, it should be possible for *any* part of LLVM to just create a worklist with instructions, populate it, and then combine it until empty. The pass will just be the (obvious and important) special case of doing that for an entire function body. For now, this is the first increment of factoring to make all of this work. llvm-svn: 226618
-
Greg Clayton authored
llvm-svn: 226617
-
Adrian Prantl authored
Follow-up to r226588. llvm-svn: 226616
-
Eric Fiselier authored
llvm-svn: 226615
-
Zachary Turner authored
At some point we will need to either provide a pexpect equivalent on Windows, or provide some other method of doing out-of-process tests. Even with a pexpect replacement, it may be worth re-evaluating some of these tests to see if they would be better served as in-process tests. The larger issue of coming up with a pexpect replacement on Windows is tracked in http://llvm.org/pr22274. llvm-svn: 226614
-
Rafael Espindola authored
It broke the msan build. llvm-svn: 226613
-
Kevin Enderby authored
llvm-svn: 226612
-
Rafael Espindola authored
ELF linkers by default allow shared libraries to contain undefined references and it is up to the dynamic linker to look for them. On COFF and MachO, that is not the case. This creates a situation where a .so might build on an ELF system, but the build of the corresponding .dylib or .dll will fail. This patch changes the cmake build to use -Wl,-z,defs when linking and updates the dependencies so that -DBUILD_SHARED_LIBS=ON build still works. llvm-svn: 226611
-
Chandler Carruth authored
don't get muddied up by formatting changes. Some of these don't really seem like improvements to me, but they also don't seem any worse and I care much more about not formatting them manually than I do about the particular formatting. =] llvm-svn: 226610
-
Rafael Espindola authored
This is in preparation for changing the link to use -Wl,-z,defs. llvm-svn: 226609
-
Greg Clayton authored
lldb::pid_t Host::LaunchApplication (const FileSpec &app_file_spec); This had use of a function FSPathMakeRef(const UInt8*, FSRef *, ...) that was deprecated in 10.8. Removing this fucntion since it wasn't used and was causing warnings. llvm-svn: 226608
-
Greg Clayton authored
Update the deployment target on MacOSX to be 10.8. The change is mainly to get the REG_ENHANCED stuff in regex.h and shouldn't affect other targets. llvm-svn: 226607
-
Colin LeMahieu authored
llvm-svn: 226606
-
Ben Langmuir authored
In a few places we didn't check that Category->getClassInterface() was not null before using it. llvm-svn: 226605
-
Kaelyn Takata authored
The test case is based on the reduction from PR21679 and has to be freestanding to work correctly, since some of the expected errors (and some of the problems that were fixed) only occur when the end of the file is reached. llvm-svn: 226603
-
Colin LeMahieu authored
llvm-svn: 226602
-
Hans Wennborg authored
This code adds the -mstack-probe-size command line option and implements the /Gs compiler switch for clang-cl. This should fix http://llvm.org/bugs/show_bug.cgi?id=21896 Patch by Andrew H! Differential Revision: http://reviews.llvm.org/D6685 llvm-svn: 226601
-
Daniel Jasper authored
This addresses part of llvm.org/PR22262. Specifically, it prevents considering the densities of sub-ranges that have fewer than TLI.getMinimumJumpTableEntries() elements. Those densities won't help jump tables. This is not a complete solution but works around the most pressing issue. Review: http://reviews.llvm.org/D7070 llvm-svn: 226600
-
Ramkumar Ramachandra authored
With the appropriate Verifier changes, exactracting the result out of a statepoint wrapping a vararg function crashes. However, a void vararg function works fine: commit this first step. Differential Revision: http://reviews.llvm.org/D7071 llvm-svn: 226599
-
Adrian Prantl authored
This reapplies r225379. ChangeLog: - The assertion that this commit previously ran into about the inability to handle indirect variables has since been removed and the backend can handle this now. - Testcases were upgrade to the new MDLocation format. - Instead of keeping a DebugDeclares map, we now use llvm::FindAllocaDbgDeclare(). Original commit message follows. Debug info: Teach SROA how to update debug info for fragmented variables. This allows us to generate debug info for extremely advanced code such as typedef struct { long int a; int b;} S; int foo(S s) { return s.b; } which at -O1 on x86_64 is codegen'd into define i32 @foo(i64 %s.coerce0, i32 %s.coerce1) #0 { ret i32 %s.coerce1, !dbg !24 } with this patch we emit the following debug info for this TAG_formal_parameter [3] AT_location( 0x00000000 0x0000000000000000 - 0x0000000000000006: rdi, piece 0x00000008, rsi, piece 0x00000004 0x0000000000000006 - 0x0000000000000008: rdi, piece 0x00000008, rax, piece 0x00000004 ) AT_name( "s" ) AT_decl_file( "/Volumes/Data/llvm/_build.ninja.release/test.c" ) Thanks to chandlerc, dblaikie, and echristo for their feedback on all previous iterations of this patch! llvm-svn: 226598 -
Tom Stellard authored
This is disabled by default, but can be enabled with the subtarget feature: 'vgpr-spilling' llvm-svn: 226597
-
Tom Stellard authored
llvm-svn: 226596
-
Jozef Kolek authored
llvm-svn: 226595
-
Chandler Carruth authored
prior to refactoring it. llvm-svn: 226594
-
Manman Ren authored
ConstantArrays constructed during linking can cause quadratic memory explosion. An example is the ConstantArrays constructed when linking in GlobalVariables with appending linkage. Releasing all unused constants can cause a 20% LTO compile-time slowdown for a large application. So this commit releases unused ConstantArrays only. rdar://19040716. It reduces memory footprint from 20+G to 6+G. llvm-svn: 226592
-
Tom Stellard authored
llvm-svn: 226591
-
Zachary Turner authored
The use of std::future introduces an implicit dependency on the PPL subcomponent of ConcRT. ConcRT in general is pretty noisy with warnings, so this patch just disables one of the noisy warnings. llvm-svn: 226590
-
Chandler Carruth authored
the object in a moved-from state, and its simpler to write the code that way. llvm-svn: 226589
-
Adrian Prantl authored
llvm-svn: 226588
-
Zachary Turner authored
This fixes file paths on Windows, as you can now write, for example, file d:\foo\bar.txt, but does not break the case that this tokenization logic was originally designed for, which is to allow escaping of things like quotes and double quotes, so that all of the escapable characters can appear in the same string together. Reviewed by: Jim Ingham, Greg Clayton Differential Revision: http://reviews.llvm.org/D7018 llvm-svn: 226587
-
Tom Stellard authored
We were passing the scratch buffer address to the shaders via user sgprs, but now we use external symbols and have the driver patch the shader using reloc information. llvm-svn: 226586
-
Tom Stellard authored
This allows us to re-use the same register for the scratch offset when accessing large private arrays. llvm-svn: 226585
-
Tom Stellard authored
We don't have a good way of legalizing this if the frame index offset is more than the 12-bits, which is size of MUBUF's offset field, so now we store the frame index in the vaddr field. llvm-svn: 226584
-
Tom Stellard authored
Now that we have our own custom register operand types, we need to handle them in the verifiier. llvm-svn: 226583
-
Aaron Ballman authored
llvm-svn: 226581
-
Rafael Espindola authored
This fixes running a few tests (including test/elf/Mips/e-flags-merge-1.test) under asan. llvm-svn: 226580
-
Duncan P. N. Exon Smith authored
This reverts commit r226571. GCC really doesn't like it [1]. [1]: http://bb.pgr.jp/builders/cmake-llvm-x86_64-linux/builds/20260 llvm-svn: 226579
-
Fariborz Jahanian authored
property-dot syntax on 'super' with no super class. Patch by Jason Haslam. llvm-svn: 226578
-