platform/upstream/llvm.git
10 years agoR600: Match 24-bit arithmetic patterns in a Target DAGCombine
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

10 years agoR600: Replace dyn_cast + assert with cast
Tom Stellard [Mon, 7 Apr 2014 19:31:13 +0000 (19:31 +0000)]
R600: Replace dyn_cast + assert with cast

llvm-svn: 205730

10 years ago-fms-extensions: Don't define __PRETTY_FUNCTION__ to __FUNCTION__
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

10 years agoThread Safety Analysis: update to internal SExpr handling.
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

10 years agoMangle the vbptr offset into pointers to member functions
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

10 years agoRemove an unused file.
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

10 years agoWhen a CHECK-NEXT fails because there was no match on the next line, include
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

10 years agoUse std::swap
Matt Arsenault [Mon, 7 Apr 2014 16:44:26 +0000 (16:44 +0000)]
Use std::swap

llvm-svn: 205723

10 years agoUse .data() instead of &x[0]
Matt Arsenault [Mon, 7 Apr 2014 16:44:24 +0000 (16:44 +0000)]
Use .data() instead of &x[0]

llvm-svn: 205722

10 years ago[analyzer] Fix mistake in example for potential checker "posix.Errno".
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

10 years ago[analyzer] Re-enable test I accidentally committed commented-out.
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

10 years agoCorrect typo: waychpoint -> watchpoint
Ed Maste [Mon, 7 Apr 2014 16:33:53 +0000 (16:33 +0000)]
Correct typo: waychpoint -> watchpoint

llvm-svn: 205719

10 years agoRevert r205646 (keeping the test in its modified form) as
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

10 years agoFix a typo introduced in r205716
David Majnemer [Mon, 7 Apr 2014 16:19:27 +0000 (16:19 +0000)]
Fix a typo introduced in r205716

llvm-svn: 205717

10 years agoclang-cl: make /Gw map to -fdata-sections
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

10 years agoFix clang-tidy warning (argument comments don't match parameter names).
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

10 years agolibclang: add clang_CXXMethod_isConst API that allows to determine if a C++
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

10 years agoInvert the option to enable debug info verification. No functional
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

10 years agoAdd decorator for FreeBSD DynamicValueTestCase failure
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

10 years agoRevert the last couple of patches here and go back to something
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

10 years agoHandle vlas during inline cost computation if they'll be turned
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

10 years agoFix PR19819
Marshall Clow [Mon, 7 Apr 2014 13:32:26 +0000 (13:32 +0000)]
Fix PR19819

llvm-svn: 205709

10 years agoXFAIL this completely at the moment:
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

10 years agoFix a typo in the comment.
Simon Atanasyan [Mon, 7 Apr 2014 12:59:36 +0000 (12:59 +0000)]
Fix a typo in the comment.

llvm-svn: 205707

10 years agoAdd NDEBUG markers around debug only function.
Eric Christopher [Mon, 7 Apr 2014 12:46:30 +0000 (12:46 +0000)]
Add NDEBUG markers around debug only function.

llvm-svn: 205706

10 years agoAdd debug location information to the vectorizer debug statements.
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

10 years agoMake test run on most platforms and only fail on cygwin/mingw while
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

10 years agoUpdate arc config to new domain.
Manuel Klimek [Mon, 7 Apr 2014 10:23:19 +0000 (10:23 +0000)]
Update arc config to new domain.

llvm-svn: 205703

10 years agoUpdate arc config to new domain.
Manuel Klimek [Mon, 7 Apr 2014 10:22:41 +0000 (10:22 +0000)]
Update arc config to new domain.

llvm-svn: 205702

10 years agoMake docs point to new domain.
Manuel Klimek [Mon, 7 Apr 2014 10:21:33 +0000 (10:21 +0000)]
Make docs point to new domain.

llvm-svn: 205701

10 years agoRemoved 'sized deallocation' from C++14 status page since it turned out to require...
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

10 years agoUse 'false' for a bool instead of '0'
Craig Topper [Mon, 7 Apr 2014 06:59:39 +0000 (06:59 +0000)]
Use 'false' for a bool instead of '0'

llvm-svn: 205699

10 years agoUpdate Phabricator server.
Rui Ueyama [Mon, 7 Apr 2014 04:52:24 +0000 (04:52 +0000)]
Update Phabricator server.

llvm-svn: 205698

10 years ago[C++11] Make use of 'nullptr' in the Support library.
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

10 years agoUpdated phabricator server.
Serge Pavlov [Mon, 7 Apr 2014 03:57:04 +0000 (03:57 +0000)]
Updated phabricator server.

llvm-svn: 205696

10 years agoUpdated phabricator server.
Serge Pavlov [Mon, 7 Apr 2014 03:39:55 +0000 (03:39 +0000)]
Updated phabricator server.

llvm-svn: 205695

10 years ago[ELF] Accept "-rpath=<foo>" as well as "-rpath <foo>".
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

10 years ago[ELF] Fix driver bug.
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

10 years ago[ELF] Use typedefs to make class field declarations shorter.
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

10 years agoDebugInfo: Support type alias templates
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

10 years agoChanges in IntelJITEventListener - By Arch Robinson
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

10 years agoQuick fix: Triple::isOSMSVCRT() should be false for targeting cygwin.
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

10 years ago[yaml2obj][ELF] Rename class SectionNameToIdxMap => NameToIdxMap. It can
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

10 years agoDebugInfo: emit namespace aliases as named imported declarations instead of named...
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

10 years agoDebugInfo: Support namespace aliases as DW_TAG_imported_declaration instead of DW_TAG...
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

10 years ago[Frontend] If the module file lock owner have died, try to get the lock again. Needs...
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

10 years ago[Support] Modify LockFileManager::waitForUnlock() to return info about how the lock...
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

10 years agoRemove unused parameter
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

10 years agoAsmParser: add a warning for compatibility parsing
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

10 years agoMachineInstr: introduce explicit_operands and implicit_operands ranges
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

10 years agoRemove unnecessary "inline" of inline defined member functions
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

10 years agoARM: consolidate MachO checks for ARM asm parser
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

10 years agoSimplify compression API by compressing into a SmallVector rather than a MemoryBuffer
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

10 years agoSimplify compression API by decompressing into a SmallVector rather than a MemoryBuffer
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

10 years agoAsmParser: restore LLVM IR compatibility for linker_private{,_weak}
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

10 years agoFixing typo.
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

10 years agoFix typo
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

10 years agoRemove unused function
David Blaikie [Sat, 5 Apr 2014 20:20:46 +0000 (20:20 +0000)]
Remove unused function

llvm-svn: 205672

10 years agoReapply r205655, DebugInfo: Place global constants in their appropriate context.
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

10 years agoDebugInfo: Avoid emitting constnants for every use
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

10 years ago[analyzer] Add an ErrnoChecker (PR18701) to the Potential Checkers list.
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

10 years ago[analyzer] Update Open Projects page with BitwiseConstraintManager.
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

10 years agoAdd a new subgroup to -Wtautological-compare, -Wtautological-overlap-compare,
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

10 years agoRevert "DebugInfo: Place global constants in their appropriate context."
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

10 years ago[ELF] Add a test for -rpath.
Rui Ueyama [Sat, 5 Apr 2014 02:15:23 +0000 (02:15 +0000)]
[ELF] Add a test for -rpath.

llvm-svn: 205663

10 years ago[ELF] Fix --soname option.
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

10 years ago[analyzer] Look through temporary destructors when finding a region to construct.
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

10 years ago[PowerPC] Remove unused TM member variable to unbreak build
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

10 years agoObjective-C arc [Sema]. Allow bridge cast of a qualified-id expression
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

10 years ago[PowerPC] Adjust load/store costs in PPCTTI
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

10 years ago[PowerPC] PPCTTI Cleanup
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

10 years agoMinor change to StackMapLiveness DEBUG output.
Andrew Trick [Fri, 4 Apr 2014 23:49:35 +0000 (23:49 +0000)]
Minor change to StackMapLiveness DEBUG output.

llvm-svn: 205656

10 years agoDebugInfo: Place global constants in their appropriate context.
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

10 years ago[ELF] Diagnose malformed --dynsym option.
Rui Ueyama [Fri, 4 Apr 2014 22:36:30 +0000 (22:36 +0000)]
[ELF] Diagnose malformed --dynsym option.

llvm-svn: 205654

10 years agoTry harder about not suggesting methods as corrections when they
Kaelyn Takata [Fri, 4 Apr 2014 22:16:30 +0000 (22:16 +0000)]
Try harder about not suggesting methods as corrections when they
obviously won't work. Specifically, don't suggest methods (static or
not) from unrelated classes when the expression is a method call
through a specific object.

llvm-svn: 205653

10 years agoAdd failure decorators
Ed Maste [Fri, 4 Apr 2014 21:16:39 +0000 (21:16 +0000)]
Add failure decorators

These tests started failing on FreeBSD after r205497 "Make the fail
messages"

llvm.org/pr19347

llvm-svn: 205652

10 years agoDebugInfo: PR19298: function local const variables duplicated in the root scope
David Blaikie [Fri, 4 Apr 2014 20:56:17 +0000 (20:56 +0000)]
DebugInfo: PR19298: function local const variables duplicated in the root scope

See the comment for CodeGenFunction::tryEmitAsConstant that describes
how in some contexts (lambdas) we must not emit references to the
variable, but instead use the constant directly - because of this we end
up emitting a constant for the variable, as well as emitting the
variable itself.

Should we just skip putting the variable on the stack at all and omit
the debug info for the constant? It's not clear to me - what if the
address of the local is taken?

llvm-svn: 205651

10 years agoDriver: add target definition for Windows on ARM
Saleem Abdulrasool [Fri, 4 Apr 2014 20:31:19 +0000 (20:31 +0000)]
Driver: add target definition for Windows on ARM

This introduces the definitions needed for the Windows on ARM target.  Add
target definitions for both the MSVC environment and the MSVC + Itanium C++ ABI
environment.  The Visual Studio definitions correspond to the definitions
provided by Visual Studio 2012.

llvm-svn: 205650

10 years agoAdd DAG parameter to ComputeNumSignBitsForTargetNode
Matt Arsenault [Fri, 4 Apr 2014 20:13:13 +0000 (20:13 +0000)]
Add DAG parameter to ComputeNumSignBitsForTargetNode

This way, you can check the number of sign bits in the
operands. The depth parameter it already has is pretty useless
without this.

llvm-svn: 205649

10 years agoFix tabs
Matt Arsenault [Fri, 4 Apr 2014 20:13:08 +0000 (20:13 +0000)]
Fix tabs

llvm-svn: 205648

10 years agoUpdate the test to use FileCheck.
Juergen Ributzka [Fri, 4 Apr 2014 19:57:01 +0000 (19:57 +0000)]
Update the test to use FileCheck.

llvm-svn: 205647

10 years agoVector [Sema]. Vector "splats" which are truncated should have a warning
Fariborz Jahanian [Fri, 4 Apr 2014 19:33:39 +0000 (19:33 +0000)]
Vector [Sema]. Vector "splats" which are truncated should have a warning
with -Wconversion. // rdar://16502418

llvm-svn: 205646

10 years ago[X86-64] Add missing relocation.
Michael J. Spencer [Fri, 4 Apr 2014 19:22:14 +0000 (19:22 +0000)]
[X86-64] Add missing relocation.

llvm-svn: 205645

10 years agoThis is yet another case clang-modernize failed to add "override".
Rui Ueyama [Fri, 4 Apr 2014 19:17:59 +0000 (19:17 +0000)]
This is yet another case clang-modernize failed to add "override".

llvm-svn: 205644

10 years agoSplit a utility function not to use goto statement.
Rui Ueyama [Fri, 4 Apr 2014 18:34:40 +0000 (18:34 +0000)]
Split a utility function not to use goto statement.

llvm-svn: 205643

10 years agouseNew is set to false in all branches, so set it to false outside the if-else.
Rui Ueyama [Fri, 4 Apr 2014 18:21:53 +0000 (18:21 +0000)]
useNew is set to false in all branches, so set it to false outside the if-else.

llvm-svn: 205642

10 years agoReplace dyn_cast<T>s immediately followed by asserts with cast<T>s.
Rui Ueyama [Fri, 4 Apr 2014 18:21:51 +0000 (18:21 +0000)]
Replace dyn_cast<T>s immediately followed by asserts with cast<T>s.

llvm-svn: 205641

10 years agoXcode 5 crashes if lldb stops at breakpoint if long c++ template lists are present.
Greg Clayton [Fri, 4 Apr 2014 18:15:18 +0000 (18:15 +0000)]
Xcode 5 crashes if lldb stops at breakpoint if long c++ template lists are present.

This fix reduces the stack size of SymbolFileDWARF::ParseType(). It seems that clang is not very good at sharing locations on the stack with local variables in large functions that have many blocks and each variable gets unique locations. The reduction in size was done by:
1 - removing some large locals that were default constructed by not used
2 - Placing some larger local variables into std::unique_ptr<> to make them on the heap
3 - removing local variables there were large and being populated but not being used
4 - reducing the size of some typedefs to llvm::SmallVector<T, N> so that N wasn’t excessively large

<rdar://problem/16431645>

llvm-svn: 205640

10 years agoFix indentation.
Rui Ueyama [Fri, 4 Apr 2014 18:12:27 +0000 (18:12 +0000)]
Fix indentation.

llvm-svn: 205639

10 years agoDon’t exit the command interpreter if we get interrupted by an EINTR when calling...
Greg Clayton [Fri, 4 Apr 2014 18:11:31 +0000 (18:11 +0000)]
Don’t exit the command interpreter if we get interrupted by an EINTR when calling fgets().

llvm-svn: 205638

10 years agoRevert "temporary commit."
Rui Ueyama [Fri, 4 Apr 2014 18:06:56 +0000 (18:06 +0000)]
Revert "temporary commit."

This reverts commit r205635 that was submitted by mistake.

llvm-svn: 205637

10 years agoRemember to clear the cached data for the OptionValueFileSpec in SetValueFromCString.
Jim Ingham [Fri, 4 Apr 2014 18:06:54 +0000 (18:06 +0000)]
Remember to clear the cached data for the OptionValueFileSpec in SetValueFromCString.

<rdar://problem/16179718> target.expr-prefix contents appear to be cached for an entire session

llvm-svn: 205636

10 years agotemporary commit.
Rui Ueyama [Fri, 4 Apr 2014 18:01:52 +0000 (18:01 +0000)]
temporary commit.

llvm-svn: 205635

10 years agoDon’t crash when we get an invalid .debug_aranges set, just ignore it. Also print...
Greg Clayton [Fri, 4 Apr 2014 17:53:30 +0000 (17:53 +0000)]
Don’t crash when we get an invalid .debug_aranges set, just ignore it. Also print out warning messages if LLDB_CONFIGURATION_DEBUG is defined.

<rdar://problem/16516343>

llvm-svn: 205634

10 years agoTidy up naming.
Jim Grosbach [Fri, 4 Apr 2014 17:36:55 +0000 (17:36 +0000)]
Tidy up naming.

llvm-svn: 205633

10 years agoAdd a test where the module map is overriden in the vfs
Ben Langmuir [Fri, 4 Apr 2014 16:42:53 +0000 (16:42 +0000)]
Add a test where the module map is overriden in the vfs

Specifically, we pass two -ivfsoverlay yaml files, and the topmost one
remaps the module map file.

llvm-svn: 205632

10 years ago[mips] Add Octeon cnMips instructions seqi/snei and v3mulu/vmm0/vmulu.
Kai Nacke [Fri, 4 Apr 2014 16:21:59 +0000 (16:21 +0000)]
[mips] Add Octeon cnMips instructions seqi/snei and v3mulu/vmm0/vmulu.

This patch adds the Octeon cnMips instructions seqi/snei and v3mulu/vmm0/vmulu.
It is only for the assembler. Test case is included.

Reviewed by: Daniel.Sanders@imgtec.com

llvm-svn: 205631

10 years ago[PowerPC] Add a full condition code register to make the "cc" clobber work
Hal Finkel [Fri, 4 Apr 2014 15:15:57 +0000 (15:15 +0000)]
[PowerPC] Add a full condition code register to make the "cc" clobber work

gcc inline asm supports specifying "cc" as a clobber of all condition
registers. Add just enough modeling of the full register to make this work.
Fixed PR19326.

llvm-svn: 205630

10 years agoIn preparation for being able to use simple Boolean logic expressions involving capab...
Aaron Ballman [Fri, 4 Apr 2014 15:13:57 +0000 (15:13 +0000)]
In preparation for being able to use simple Boolean logic expressions involving capabilities, the semantics for attributes now looks through the types of the constituent parts of a capability expression instead of at the aggregate expression type.

llvm-svn: 205629

10 years ago[mips] abs.[ds], and neg.[ds] should be allowed regardless of -enable-no-nans-fp...
Daniel Sanders [Fri, 4 Apr 2014 14:52:54 +0000 (14:52 +0000)]
[mips] abs.[ds], and neg.[ds] should be allowed regardless of -enable-no-nans-fp-math

Summary:
They behave in accordance with the Has2008 and ABS2008 configuration bits of the
processor which are used to select between the 1985 and 2008 versions of IEEE
754. In 1985 mode, these instructions are arithmetic (i.e. they raise invalid
operation exceptions when given NaN), in 2008 mode they are non-arithmetic
(i.e. they are copies).

nmadd.[ds], and nmsub.[ds] are still subject to -enable-no-nans-fp-math because
the ISA spec does not explicitly state that they obey Has2008 and ABS2008.

Reviewers: matheusalmeida

Reviewed By: matheusalmeida

Differential Revision: http://llvm-reviews.chandlerc.com/D3274

llvm-svn: 205628