Richard Smith [Tue, 8 Apr 2014 12:19:28 +0000 (12:19 +0000)]
PR19346: Adding 0 to a null pointer has defined behavior in C++. Allow it in constant expressions.
llvm-svn: 205757
Joerg Sonnenberger [Tue, 8 Apr 2014 11:43:49 +0000 (11:43 +0000)]
The content of .eh_frame may be misaligned, so use memcpy. This is seen
in the wild on SH3.
llvm-svn: 205756
Richard Smith [Tue, 8 Apr 2014 10:47:04 +0000 (10:47 +0000)]
The LLVM C API shouldn't be including a file from the C++ API. Especially not a
file that it doesn't use.
llvm-svn: 205755
Elena Demikhovsky [Tue, 8 Apr 2014 07:24:02 +0000 (07:24 +0000)]
AVX-512: Added fp_to_uint and uint_to_fp patterns.
llvm-svn: 205754
Andrew Trick [Tue, 8 Apr 2014 03:40:34 +0000 (03:40 +0000)]
Fix a (legacy) PassManager crash that occurs when a ModulePass
indirectly requires a function analysis.
This bug was reported by Jason Kim. He included a test case here:
http://reviews.llvm.org/D3312
llvm-svn: 205753
David Majnemer [Tue, 8 Apr 2014 02:15:13 +0000 (02:15 +0000)]
X86: Split the relocation selection up
Before, we would have conditional operators where one side of the
operator would be of type RelocationTypeAMD64 and the other is of type
RelocationTypeI386. GCC would noisly warn with -Wenum-compare
diagnostic.
Instead, refactor the code so it is more like the X86 ELF object writer.
llvm-svn: 205752
Reid Kleckner [Tue, 8 Apr 2014 00:28:22 +0000 (00:28 +0000)]
intrin.h: Implement __readmsr, __readcr3, and __writecr3
Fixes PR19301.
Based on a patch from Steven Graf!
llvm-svn: 205751
Greg Clayton [Mon, 7 Apr 2014 23:50:17 +0000 (23:50 +0000)]
Fixed an issue where if you called:
SBTarget::AddModule(const char *path,
const char *triple,
const char *uuid_cstr,
const char *symfile);
If "symfile" was filled in, it would cause us to not correctly add the module. Same goes for:
SBTarget::AddModule(SBModuleSpec ...)
Where you filled in the symfile.
<rdar://problem/
16529799>
llvm-svn: 205750
Jim Grosbach [Mon, 7 Apr 2014 23:47:23 +0000 (23:47 +0000)]
Tidy up comments a bit.
Punctuation, grammar, formatting, etc..
llvm-svn: 205749
Jim Grosbach [Mon, 7 Apr 2014 23:47:21 +0000 (23:47 +0000)]
ARM64: Range based for loop in ARM64PromoteConstant pass
llvm-svn: 205748
Jim Grosbach [Mon, 7 Apr 2014 23:14:38 +0000 (23:14 +0000)]
ARM64: Clean up file header comment a bit.
llvm-svn: 205747
David Majnemer [Mon, 7 Apr 2014 23:12:20 +0000 (23:12 +0000)]
obj2yaml: Use the correct relocation type for different machine types
The IO normalizer would essentially lump I386 and AMD64 relocations
together. Relocation types with the same numeric value would then get
mapped in appropriately.
For example:
IMAGE_REL_AMD64_ADDR64 and IMAGE_REL_I386_DIR16 both have a numeric
value of one. We would see IMAGE_REL_I386_DIR16 in obj2yaml conversions
of object files with a machine type of IMAGE_FILE_MACHINE_AMD64.
llvm-svn: 205746
DeLesley Hutchins [Mon, 7 Apr 2014 22:56:24 +0000 (22:56 +0000)]
Thread Safety Analysis: various fixes to new SExpr code.
Implemented ownership policy, updated to use nullptr, const-cleanup.
llvm-svn: 205745
Sean Silva [Mon, 7 Apr 2014 22:46:40 +0000 (22:46 +0000)]
[docs] Fix some links
The TableGen docs have changed structure
Patch by Tay Ray Chuan!
llvm-svn: 205744
Sean Silva [Mon, 7 Apr 2014 22:42:53 +0000 (22:42 +0000)]
[docs] Update link title
docs/TableGen/ is not really just "fundamentals" anymore, but rather
more of a portal for all things TableGen.
llvm-svn: 205743
Sean Silva [Mon, 7 Apr 2014 22:29:53 +0000 (22:29 +0000)]
[docs] Fix some Sphinx warnings that have crept in.
llvm-svn: 205742
Reed Kotler [Mon, 7 Apr 2014 22:11:40 +0000 (22:11 +0000)]
Reverting commit r205628 due to mips64 issues.
llvm-svn: 205741
Greg Clayton [Mon, 7 Apr 2014 21:37:59 +0000 (21:37 +0000)]
Fixed a case where we could spin indefinitely if we got an error from fgets that isn't EINTR.
<rdar://problem/
16535437>
llvm-svn: 205740
Greg Clayton [Mon, 7 Apr 2014 21:37:03 +0000 (21:37 +0000)]
Cleanup the code a bit.
llvm-svn: 205739
Andrew Trick [Mon, 7 Apr 2014 21:29:22 +0000 (21:29 +0000)]
Put a limit on ScheduleDAGSDNodes::ClusterNeighboringLoads to avoid blowing up compile time.
Fixes PR16365 - Extremely slow compilation in -O1 and -O2.
The SD scheduler has a quadratic implementation of load clustering
which absolutely blows up compile time for large blocks with constant
pool loads. The MI scheduler has a better implementation of load
clustering. However, we have not done the work yet to completely
eliminate the SD scheduler. Some benchmarks still seem to benefit from
early load clustering, although maybe by chance.
As an intermediate term fix, I just put a nice limit on the number of
DAG users to search before finding a match. With this limit there are no
binary differences in the LLVM test suite, and the PR16365 test case
does not suffer any compile time impact from this routine.
llvm-svn: 205738
Rui Ueyama [Mon, 7 Apr 2014 21:13:33 +0000 (21:13 +0000)]
Early continue to reduce nesting.
llvm-svn: 205737
Rui Ueyama [Mon, 7 Apr 2014 21:01:11 +0000 (21:01 +0000)]
No else after return.
llvm-svn: 205736
Rui Ueyama [Mon, 7 Apr 2014 20:52:48 +0000 (20:52 +0000)]
[ELF] Unit tests for -o and --noinhibit-exec.
llvm-svn: 205735
Greg Clayton [Mon, 7 Apr 2014 20:13:57 +0000 (20:13 +0000)]
Disable JITLoaderGDB on "vendor == apple" for now due to performance slowdowns for every first run process as a global name lookup in all shared libraries if performed.
<rdar://problem/
16542894>
llvm-svn: 205734
DeLesley Hutchins [Mon, 7 Apr 2014 19:51:32 +0000 (19:51 +0000)]
Thread Safety Analysis: fix warning.
llvm-svn: 205733
Tom Stellard [Mon, 7 Apr 2014 19:45:45 +0000 (19:45 +0000)]
R600/SI: Handle INSERT_SUBREG in SIFixSGPRCopies
llvm-svn: 205732
Tom Stellard [Mon, 7 Apr 2014 19:45:41 +0000 (19:45 +0000)]
R600: Match 24-bit arithmetic patterns in a Target DAGCombine
Moving these patterns from TableGen files to PerformDAGCombine()
should allow us to generate better code by eliminating unnecessary
shifts and extensions earlier.
This also fixes a bug where the MAD pattern was calling
SimplifyDemandedBits with a 24-bit mask on the first operand
even when the full pattern wasn't being matched. This occasionally
resulted in some instructions being incorrectly deleted from the
program.
v2:
- Fix bug with 64-bit mul
llvm-svn: 205731
Tom Stellard [Mon, 7 Apr 2014 19:31:13 +0000 (19:31 +0000)]
R600: Replace dyn_cast + assert with cast
llvm-svn: 205730
Reid Kleckner [Mon, 7 Apr 2014 19:27:58 +0000 (19:27 +0000)]
-fms-extensions: Don't define __PRETTY_FUNCTION__ to __FUNCTION__
This reverts r90596 from 2009. Having this macro definition makes Clang
strictly less useful with -fms-extensions.
llvm-svn: 205729
DeLesley Hutchins [Mon, 7 Apr 2014 18:09:54 +0000 (18:09 +0000)]
Thread Safety Analysis: update to internal SExpr handling.
This patch is the first part of a significant refactoring that seeks to restore
sanity to way thread safety analysis deals with capability expressions. The
current patch merely provides an outline of the structure of the new system.
It's not yet connected to the actual analysis, so there's no change in
functionality.
llvm-svn: 205728
Reid Kleckner [Mon, 7 Apr 2014 18:07:03 +0000 (18:07 +0000)]
Mangle the vbptr offset into pointers to member functions
This can actually be non-zero if you override a function from a virtual
base and you have forced the most_general pointer to member
representation.
llvm-svn: 205727
Richard Smith [Mon, 7 Apr 2014 17:17:00 +0000 (17:17 +0000)]
Remove an unused file.
Using this file would result in an odr violation: it defines an llvm::Interval
class that conflicts with the one in Analysis/Interval.h.
llvm-svn: 205726
Richard Smith [Mon, 7 Apr 2014 17:09:53 +0000 (17:09 +0000)]
When a CHECK-NEXT fails because there was no match on the next line, include
the non-matching next line in the diagnostic to make the problem more obvious.
llvm-svn: 205725
Matt Arsenault [Mon, 7 Apr 2014 16:44:26 +0000 (16:44 +0000)]
Use std::swap
llvm-svn: 205723
Matt Arsenault [Mon, 7 Apr 2014 16:44:24 +0000 (16:44 +0000)]
Use .data() instead of &x[0]
llvm-svn: 205722
Jordan Rose [Mon, 7 Apr 2014 16:36:15 +0000 (16:36 +0000)]
[analyzer] Fix mistake in example for potential checker "posix.Errno".
Found by Richard Osbourne!
llvm-svn: 205721
Jordan Rose [Mon, 7 Apr 2014 16:36:08 +0000 (16:36 +0000)]
[analyzer] Re-enable test I accidentally committed commented-out.
Thanks, Alex!
llvm-svn: 205720
Ed Maste [Mon, 7 Apr 2014 16:33:53 +0000 (16:33 +0000)]
Correct typo: waychpoint -> watchpoint
llvm-svn: 205719
Fariborz Jahanian [Mon, 7 Apr 2014 16:32:54 +0000 (16:32 +0000)]
Revert r205646 (keeping the test in its modified form) as
it is subsumed by r205521.
llvm-svn: 205718
David Majnemer [Mon, 7 Apr 2014 16:19:27 +0000 (16:19 +0000)]
Fix a typo introduced in r205716
llvm-svn: 205717
David Majnemer [Mon, 7 Apr 2014 16:14:38 +0000 (16:14 +0000)]
clang-cl: make /Gw map to -fdata-sections
Note that /Gy no longer implies -fdata-sections.
llvm-svn: 205716
Richard Smith [Mon, 7 Apr 2014 15:16:58 +0000 (15:16 +0000)]
Fix clang-tidy warning (argument comments don't match parameter names).
llvm-svn: 205715
Dmitri Gribenko [Mon, 7 Apr 2014 14:59:13 +0000 (14:59 +0000)]
libclang: add clang_CXXMethod_isConst API that allows to determine if a C++
member function or member function template is declared 'const'
Patch by Kevin Funk with testcase updates by me.
llvm-svn: 205714
Eric Christopher [Mon, 7 Apr 2014 13:55:21 +0000 (13:55 +0000)]
Invert the option to enable debug info verification. No functional
change outside of the command line to enable it.
llvm-svn: 205713
Ed Maste [Mon, 7 Apr 2014 13:42:05 +0000 (13:42 +0000)]
Add decorator for FreeBSD DynamicValueTestCase failure
Not yet root-caused, but I presume it is the same issue that affects
Linux.
llvm-svn: 205712
Eric Christopher [Mon, 7 Apr 2014 13:36:26 +0000 (13:36 +0000)]
Revert the last couple of patches here and go back to something
that at least failed reliably.
llvm-svn: 205711
Eric Christopher [Mon, 7 Apr 2014 13:36:21 +0000 (13:36 +0000)]
Handle vlas during inline cost computation if they'll be turned
into a constant size alloca by inlining.
Ran a run over the testsuite, no results out of the noise, fixes
the testcase in the PR.
PR19115.
llvm-svn: 205710
Marshall Clow [Mon, 7 Apr 2014 13:32:26 +0000 (13:32 +0000)]
Fix PR19819
llvm-svn: 205709
Eric Christopher [Mon, 7 Apr 2014 13:10:27 +0000 (13:10 +0000)]
XFAIL this completely at the moment:
cygwin has llvm-dwarfdump problems and isn't paying attention to the
specific xfail there.
s390x isn't matching for an unknown reason.
llvm-svn: 205708
Simon Atanasyan [Mon, 7 Apr 2014 12:59:36 +0000 (12:59 +0000)]
Fix a typo in the comment.
llvm-svn: 205707
Eric Christopher [Mon, 7 Apr 2014 12:46:30 +0000 (12:46 +0000)]
Add NDEBUG markers around debug only function.
llvm-svn: 205706
Eric Christopher [Mon, 7 Apr 2014 12:32:17 +0000 (12:32 +0000)]
Add debug location information to the vectorizer debug statements.
Patch by Zinovy Nis.
llvm-svn: 205705
Eric Christopher [Mon, 7 Apr 2014 12:32:12 +0000 (12:32 +0000)]
Make test run on most platforms and only fail on cygwin/mingw while
it's being investigated for those.
llvm-svn: 205704
Manuel Klimek [Mon, 7 Apr 2014 10:23:19 +0000 (10:23 +0000)]
Update arc config to new domain.
llvm-svn: 205703
Manuel Klimek [Mon, 7 Apr 2014 10:22:41 +0000 (10:22 +0000)]
Update arc config to new domain.
llvm-svn: 205702
Manuel Klimek [Mon, 7 Apr 2014 10:21:33 +0000 (10:21 +0000)]
Make docs point to new domain.
llvm-svn: 205701
Marshall Clow [Mon, 7 Apr 2014 07:28:33 +0000 (07:28 +0000)]
Removed 'sized deallocation' from C++14 status page since it turned out to require no library work, and fixed a typo in index.html. Thanks to Tobias for pointing these out.
llvm-svn: 205700
Craig Topper [Mon, 7 Apr 2014 06:59:39 +0000 (06:59 +0000)]
Use 'false' for a bool instead of '0'
llvm-svn: 205699
Rui Ueyama [Mon, 7 Apr 2014 04:52:24 +0000 (04:52 +0000)]
Update Phabricator server.
llvm-svn: 205698
Craig Topper [Mon, 7 Apr 2014 04:17:22 +0000 (04:17 +0000)]
[C++11] Make use of 'nullptr' in the Support library.
llvm-svn: 205697
Serge Pavlov [Mon, 7 Apr 2014 03:57:04 +0000 (03:57 +0000)]
Updated phabricator server.
llvm-svn: 205696
Serge Pavlov [Mon, 7 Apr 2014 03:39:55 +0000 (03:39 +0000)]
Updated phabricator server.
llvm-svn: 205695
Rui Ueyama [Sun, 6 Apr 2014 21:23:24 +0000 (21:23 +0000)]
[ELF] Accept "-rpath=<foo>" as well as "-rpath <foo>".
llvm-svn: 205694
Rui Ueyama [Sun, 6 Apr 2014 21:15:05 +0000 (21:15 +0000)]
[ELF] Fix driver bug.
GNU LD-comptaible driver wrongly requires a space after '=' for a few
options such as "-init=<symbol>" or "-entry=<symbol>". This patch is
to fix that bug and add a few tests for it.
llvm-svn: 205693
Simon Atanasyan [Sun, 6 Apr 2014 19:44:50 +0000 (19:44 +0000)]
[ELF] Use typedefs to make class field declarations shorter.
No functional changes.
llvm-svn: 205692
David Blaikie [Sun, 6 Apr 2014 17:14:06 +0000 (17:14 +0000)]
DebugInfo: Support type alias templates
We already got the type alias correct (though I've included a test case
here) since Clang represents that like any other typedef - but type
alias templates weren't being handled.
llvm-svn: 205691
Elena Demikhovsky [Sun, 6 Apr 2014 11:08:33 +0000 (11:08 +0000)]
Changes in IntelJITEventListener - By Arch Robinson
- take->release: LLVM has moved to C++11. MockWrapper became an instance of unique_ptr.
- method symbol_iterator::increment disappeared recently, in this revision:
r200442 | rafael | 2014-01-29 20:49:50 -0600 (Wed, 29 Jan 2014) | 9 lines
Simplify the handling of iterators in ObjectFile.
None of the object file formats reported error on iterator increment. In
retrospect, that is not too surprising: no object format stores symbols or
sections in a linked list or other structure that requires chasing pointers.
As a consequence, all error checking can be done on begin() and end().
This reduces the text segment of bin/llvm-readobj in my machine from 521233 to
518526 bytes.
My change mimics the change that the revision made to lib/DebugInfo/DWARFContext.cpp .
- const_cast: Shut up a warning from gcc.
I ran unittests/ExecutionEngine/JIT/Debug+Asserts/JITTests to make sure it worked.
- Arch
llvm-svn: 205689
NAKAMURA Takumi [Sun, 6 Apr 2014 10:01:23 +0000 (10:01 +0000)]
Quick fix: Triple::isOSMSVCRT() should be false for targeting cygwin.
It affected callee's stack pop in x86. It is one of devergences between cygwin and mingw since mingw-gcc-4.6.
Added testcases to llvm/test/CodeGen/X86/win32_sret.ll for cygwin.
llvm-svn: 205688
Simon Atanasyan [Sun, 6 Apr 2014 09:02:55 +0000 (09:02 +0000)]
[yaml2obj][ELF] Rename class SectionNameToIdxMap => NameToIdxMap. It can
be used for indexing not only section's names.
No functional changes.
llvm-svn: 205687
David Blaikie [Sun, 6 Apr 2014 06:30:03 +0000 (06:30 +0000)]
DebugInfo: emit namespace aliases as named imported declarations instead of named imported entities
Apparently that's how DWARF4 suggests they be emitted. So let's do that.
llvm-svn: 205686
David Blaikie [Sun, 6 Apr 2014 06:29:01 +0000 (06:29 +0000)]
DebugInfo: Support namespace aliases as DW_TAG_imported_declaration instead of DW_TAG_imported_module
I really should read the spec more often (and test GCC more often too).
I just assumed that namespace aliases would be the same as using
directives, except with a name. But apparently that's not how the DWARF
standards suggests they be implemented. DWARF4 provides an example and
other non-normative text suggesting that namespace aliases be
implemented by named imported declarations intsead of named imported
modules.
So be it.
llvm-svn: 205685
Argyrios Kyrtzidis [Sun, 6 Apr 2014 03:21:44 +0000 (03:21 +0000)]
[Frontend] If the module file lock owner have died, try to get the lock again. Needs llvm r205683.
llvm-svn: 205684
Argyrios Kyrtzidis [Sun, 6 Apr 2014 03:19:31 +0000 (03:19 +0000)]
[Support] Modify LockFileManager::waitForUnlock() to return info about how the lock was released.
llvm-svn: 205683
David Blaikie [Sat, 5 Apr 2014 23:33:25 +0000 (23:33 +0000)]
Remove unused parameter
Also update a few null pointers in this function to be consistent with
new null pointers being added.
Patch by Robert Matusewicz!
Differential Revision: http://reviews.llvm.org/D3123
llvm-svn: 205682
Saleem Abdulrasool [Sat, 5 Apr 2014 22:42:53 +0000 (22:42 +0000)]
AsmParser: add a warning for compatibility parsing
This adds a warning when linker_private or linker_private_weak is provided and
we handle it in a compatible manner.
Suggested by Chris Lattner!
llvm-svn: 205681
David Blaikie [Sat, 5 Apr 2014 22:42:04 +0000 (22:42 +0000)]
MachineInstr: introduce explicit_operands and implicit_operands ranges
Makes iteration over implicit and explicit machine operands more
explicit (har har). Insipired by code review discussion for r205565.
llvm-svn: 205680
David Blaikie [Sat, 5 Apr 2014 22:20:50 +0000 (22:20 +0000)]
Remove unnecessary "inline" of inline defined member functions
Member functions defined within a class definition are implicitly
'inline' for linkage purposes. Compilers might slightly favor inlining
functions explicitly marked 'inline', but LLVM doesn't make a stylistic
habit of doing this generally.
llvm-svn: 205679
Saleem Abdulrasool [Sat, 5 Apr 2014 22:09:51 +0000 (22:09 +0000)]
ARM: consolidate MachO checks for ARM asm parser
This consolidates the duplicated MachO checks in the directive parsing for
various directives that are unsupported for Mach-O. The error message change is
unimportant as this restores the behaviour to that prior to the addition of the
new directive handling. Furthermore, use a more direct check for MachO
targeting rather than an indirect feature check of the assembler.
Also simplify the test execution command to avoid temporary files. Further more,
perform the check in both object and assembly emission.
Whether all non-applicable directives are handled is another question. .fnstart
is marked as being unsupported, however, the complementary .fnend is not. The
additional unwinding directives are also still honoured. This change does not
change that, though, it would be good to validate and mark them as being
unsupported if they are unsupported for the MachO emission.
llvm-svn: 205678
David Blaikie [Sat, 5 Apr 2014 21:53:04 +0000 (21:53 +0000)]
Simplify compression API by compressing into a SmallVector rather than a MemoryBuffer
This is the other half of r205676.
llvm-svn: 205677
David Blaikie [Sat, 5 Apr 2014 21:26:44 +0000 (21:26 +0000)]
Simplify compression API by decompressing into a SmallVector rather than a MemoryBuffer
This avoids an extra copy during decompression and avoids the use of
MemoryBuffer which is a weirdly esoteric device that includes unrelated
concepts like "file name" (its rather generic name is a bit misleading).
Similar refactoring of zlib::compress coming up.
llvm-svn: 205676
Saleem Abdulrasool [Sat, 5 Apr 2014 20:51:58 +0000 (20:51 +0000)]
AsmParser: restore LLVM IR compatibility for linker_private{,_weak}
This restores the linker_private and linker_private_weak lexemes to permit
translation of the deprecated lexmes. The behaviour is identical to the bitcode
handling: linker_private and linker_private_weak are handled as if private had
been specified. This enables compatibility with IR generated by LLVM 3.4.
Reported on IRC by ki9a!
llvm-svn: 205675
David Blaikie [Sat, 5 Apr 2014 20:30:31 +0000 (20:30 +0000)]
Fixing typo.
Differential Revision: http://reviews.llvm.org/D3154
llvm-svn: 205674
David Blaikie [Sat, 5 Apr 2014 20:28:13 +0000 (20:28 +0000)]
Fix typo
Differential Revision: http://reviews.llvm.org/D3237
llvm-svn: 205673
David Blaikie [Sat, 5 Apr 2014 20:20:46 +0000 (20:20 +0000)]
Remove unused function
llvm-svn: 205672
David Blaikie [Sat, 5 Apr 2014 07:46:57 +0000 (07:46 +0000)]
Reapply r205655, DebugInfo: Place global constants in their appropriate context.
This was reverted in 205664 and seems to be fixed by 205668... though
that may be more by accident than anything well founded.
llvm-svn: 205669
David Blaikie [Sat, 5 Apr 2014 07:23:17 +0000 (07:23 +0000)]
DebugInfo: Avoid emitting constnants for every use
While the folding set would deduplicate the nodes themselves and LLVM
would handle not emitting the same global twice, it still meant creating
a long/redundant list of global variables.
llvm-svn: 205668
Jordan Rose [Sat, 5 Apr 2014 06:10:28 +0000 (06:10 +0000)]
[analyzer] Add an ErrnoChecker (PR18701) to the Potential Checkers list.
llvm-svn: 205667
Jordan Rose [Sat, 5 Apr 2014 06:10:22 +0000 (06:10 +0000)]
[analyzer] Update Open Projects page with BitwiseConstraintManager.
Also, add the names of people most recently working on particular projects,
and remove "relate bugs and checkers" (thanks, Alex!).
llvm-svn: 205666
Richard Trieu [Sat, 5 Apr 2014 05:17:01 +0000 (05:17 +0000)]
Add a new subgroup to -Wtautological-compare, -Wtautological-overlap-compare,
which warns on compound conditionals that always evaluate to the same value.
For instance, (x > 5 && x < 3) will always be false since no value for x can
satisfy both conditions.
This patch also changes the CFG to use these tautological values for better
branch analysis. The test for -Wunreachable-code shows how this change catches
additional dead code.
Patch by Anders Rönnholm.
llvm-svn: 205665
David Blaikie [Sat, 5 Apr 2014 03:39:29 +0000 (03:39 +0000)]
Revert "DebugInfo: Place global constants in their appropriate context."
This reverts commit r205655.
Breaks the compiler-rt build with an assertion failure in LLVM...
reverting while I investigate.
llvm-svn: 205664
Rui Ueyama [Sat, 5 Apr 2014 02:15:23 +0000 (02:15 +0000)]
[ELF] Add a test for -rpath.
llvm-svn: 205663
Rui Ueyama [Sat, 5 Apr 2014 02:07:04 +0000 (02:07 +0000)]
[ELF] Fix --soname option.
Currently LLD accepts only "-soname <string>", but all the following
options are actually valid.
--soname=foo
--soname foo
-soname=foo
-soname foo
-h foo
This patch fixes that issue.
llvm-svn: 205662
Jordan Rose [Sat, 5 Apr 2014 02:01:41 +0000 (02:01 +0000)]
[analyzer] Look through temporary destructors when finding a region to construct.
Fixes a false positive when temporary destructors are enabled where a temporary
is destroyed after a variable is constructed but before the VarDecl itself is
processed, which occurs when the variable is in the condition of an if or while.
Patch by Alex McCarthy, with an extra test from me.
llvm-svn: 205661
Hal Finkel [Sat, 5 Apr 2014 00:16:28 +0000 (00:16 +0000)]
[PowerPC] Remove unused TM member variable to unbreak build
Fix "error: private field 'TM' is not used [-Werror,-Wunused-private-field]"
llvm-svn: 205660
Fariborz Jahanian [Fri, 4 Apr 2014 23:53:45 +0000 (23:53 +0000)]
Objective-C arc [Sema]. Allow bridge cast of a qualified-id expression
when bridged Objective-C type conforms to the protocols in CF types's
Objective-C class. // rdar://
16393330
llvm-svn: 205659
Hal Finkel [Fri, 4 Apr 2014 23:51:18 +0000 (23:51 +0000)]
[PowerPC] Adjust load/store costs in PPCTTI
This provides more realistic costs for the insert/extractelement instructions
(which are load/store pairs), accounts for the cheap unaligned Altivec load
sequence, and for unaligned VSX load/stores.
Bad news:
MultiSource/Applications/sgefa/sgefa - 35% slowdown (this will require more investigation)
SingleSource/Benchmarks/McGill/queens - 20% slowdown (we no longer vectorize this, but it was a constant store that was scalarized)
MultiSource/Benchmarks/FreeBench/pcompress2/pcompress2 - 2% slowdown
Good news:
SingleSource/Benchmarks/Shootout/ary3 - 54% speedup
SingleSource/Benchmarks/Shootout-C++/ary - 40% speedup
MultiSource/Benchmarks/Ptrdist/ks/ks - 35% speedup
MultiSource/Benchmarks/FreeBench/neural/neural - 30% speedup
MultiSource/Benchmarks/TSVC/Symbolics-flt/Symbolics-flt - 20% speedup
Unfortunately, estimating the costs of the stack-based scalarization sequences
is hard, and adjusting these costs is like a game of whac-a-mole :( I'll
revisit this again after we have better codegen for vector extloads and
truncstores and unaligned load/stores.
llvm-svn: 205658
Hal Finkel [Fri, 4 Apr 2014 23:51:11 +0000 (23:51 +0000)]
[PowerPC] PPCTTI Cleanup
Remove the declaration of an unimplemented function.
llvm-svn: 205657
Andrew Trick [Fri, 4 Apr 2014 23:49:35 +0000 (23:49 +0000)]
Minor change to StackMapLiveness DEBUG output.
llvm-svn: 205656
David Blaikie [Fri, 4 Apr 2014 23:16:44 +0000 (23:16 +0000)]
DebugInfo: Place global constants in their appropriate context.
We also don't need to duplicate the name in the LinkageName field. Just
leave it empty.
llvm-svn: 205655
Rui Ueyama [Fri, 4 Apr 2014 22:36:30 +0000 (22:36 +0000)]
[ELF] Diagnose malformed --dynsym option.
llvm-svn: 205654