Andrew Trick [Thu, 26 Sep 2013 05:53:35 +0000 (05:53 +0000)]
Added temp flag -misched-bench for staging in default changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191423
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Thu, 26 Sep 2013 05:53:31 +0000 (05:53 +0000)]
whitespace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191422
91177308-0d34-0410-b5e6-
96231b3b80d8
David Majnemer [Thu, 26 Sep 2013 05:22:11 +0000 (05:22 +0000)]
PPC: Do not introduce ISD nodes for fctid and fctiw
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191421
91177308-0d34-0410-b5e6-
96231b3b80d8
David Majnemer [Thu, 26 Sep 2013 04:11:24 +0000 (04:11 +0000)]
PPC: Add support for fctid and fctiw
Encodings were checked against the Power ISA documents and double
checked against binutils.
This fixes PR17350.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191419
91177308-0d34-0410-b5e6-
96231b3b80d8
Jack Carter [Thu, 26 Sep 2013 00:09:46 +0000 (00:09 +0000)]
[mips][msa] Direct Object Emission for 3R instructions.
This is the first set of instructions with a ".b" modifier thus we need to add the required code to disassemble a MSA128B register class.
Patch by Matheus Almeida
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191415
91177308-0d34-0410-b5e6-
96231b3b80d8
Jack Carter [Thu, 26 Sep 2013 00:02:44 +0000 (00:02 +0000)]
[mips][msa] Updates encoding of 3R instructions to match the latest revision of the MSA spec (1.06).
Internal changes only.
Patch by Matheus Almeida
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191414
91177308-0d34-0410-b5e6-
96231b3b80d8
Jack Carter [Wed, 25 Sep 2013 23:56:25 +0000 (23:56 +0000)]
[mips][msa] Direct Object Emission for 2RF instructions.
Patch by Matheus Almeida
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191413
91177308-0d34-0410-b5e6-
96231b3b80d8
Jack Carter [Wed, 25 Sep 2013 23:50:44 +0000 (23:50 +0000)]
[mips][msa] Direct Object Emission support for the MSA instruction set.
In more detail, this patch adds the ability to parse, encode and decode MSA registers ($w0-$w31). The format of 2RF instructions (MipsMSAInstrFormat.td) was updated so that we could attach a test case to this patch i.e., the test case parses, encodes and decodes 2 MSA instructions. Following patches will add the remainder of the instructions.
Note that DecodeMSA128BRegisterClass is missing from MipsDisassembler.td because it's not yet required at this stage and having it would cause a compiler warning (unused function).
Patch by Matheus Almeida
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191412
91177308-0d34-0410-b5e6-
96231b3b80d8
Jack Carter [Wed, 25 Sep 2013 23:42:03 +0000 (23:42 +0000)]
[mips][msa] Updates encoding of 2RF instructions to match the latest revision of the MSA spec (1.06).
This only changes internal encodings and doesn't affect output.
Patch by Matheus Almeida
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191411
91177308-0d34-0410-b5e6-
96231b3b80d8
Weiming Zhao [Wed, 25 Sep 2013 23:12:06 +0000 (23:12 +0000)]
Fix PR 17368: disable vector mul distribution for square of add/sub for ARM
Generally, it is desirable to distribute (a + b) * c to a*c + b*c for
ARM with VMLx forwarding, where a, b and c are vectors.
However, for (a + b)*(a + b), distribution will result in one extra
instruction.
With distribution:
x = a + b (add)
y = a * x (mul)
z = y + b * y (mla)
Without distribution:
x = a + b (add)
z = x * x (mul)
This patch checks if a mul is a square of add/sub. If yes, skip
distribution.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191410
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Wed, 25 Sep 2013 23:02:44 +0000 (23:02 +0000)]
Add gnu pubsections as options to llvm-dwarfdump.
Argument spelling feedback welcome.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191409
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Wed, 25 Sep 2013 23:02:41 +0000 (23:02 +0000)]
Dump the normal dwarf pubtypes section as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191408
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Wed, 25 Sep 2013 23:02:36 +0000 (23:02 +0000)]
Unify pubsection/gnu pubsection printing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191407
91177308-0d34-0410-b5e6-
96231b3b80d8
Josh Magee [Wed, 25 Sep 2013 22:07:48 +0000 (22:07 +0000)]
Test commit. Removed trailing whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191402
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Wed, 25 Sep 2013 21:17:37 +0000 (21:17 +0000)]
Slight formatting change for pubnames/pubtypes output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191401
91177308-0d34-0410-b5e6-
96231b3b80d8
Reed Kotler [Wed, 25 Sep 2013 20:58:50 +0000 (20:58 +0000)]
Fix a bad typo in the inline assembly code for mips16 pic fp stubs
and make one cosmetic cleanup to make it look the same as gcc
in this area; adjusting test cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191400
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrea Di Biagio [Wed, 25 Sep 2013 19:01:01 +0000 (19:01 +0000)]
Teach DAGCombiner how to canonicalize dags according to the rule
(shl (zext (shr A, X)), X) => (zext (shl (shr A, X), X)).
The rule only triggers when there are no other uses of the
zext to avoid materializing more instructions.
This helps the DAGCombiner understand that the shl/shr
sequence can then be converted into an and instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191393
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Wed, 25 Sep 2013 18:14:12 +0000 (18:14 +0000)]
Mark the x86 machine model as incomplete. PR17367.
Ideally, the machinel model is added at the time the instructions are
defined. But many instructions in X86InstrSSE.td still need a model.
Without this workaround the scheduler asserts because x86 already has
itinerary classes for these instructions, indicating they should be
modeled by the scheduler. Since we use the new machine model for other
instructions, it expects a new machine model for these too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191391
91177308-0d34-0410-b5e6-
96231b3b80d8
Joerg Sonnenberger [Wed, 25 Sep 2013 17:49:57 +0000 (17:49 +0000)]
Undefine NetBSD, it may have been defined by an earlier include of
sys/param.h.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191384
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 25 Sep 2013 14:06:55 +0000 (14:06 +0000)]
Set the minimal stack size with msvc when using cmake >= 2.8.11.
This makes sure we get the same behavior with all supported cmake versions. Once
we support only versions >= 2.8.11 we can experiment with other values or just
setting it for some binaries.
Patch by Greg Bedwell.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191372
91177308-0d34-0410-b5e6-
96231b3b80d8
Arnold Schwaighofer [Wed, 25 Sep 2013 14:02:32 +0000 (14:02 +0000)]
SLPVectorize: Put horizontal reductions feeding a store under separate flag
Put them under a separate flag for experimentation. They are more likely to
interfere with loop vectorization which happens later in the pass pipeline.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191371
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Wed, 25 Sep 2013 11:11:53 +0000 (11:11 +0000)]
[SystemZ] Define the GR64 low-word logic instructions as pseudo aliases.
Another patch to avoid duplication of encoding information. Things like
NILF, NILL and NILH are used as both 32-bit and 64-bit instructions.
Here the 64-bit versions are defined as aliases of the 32-bit ones.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191369
91177308-0d34-0410-b5e6-
96231b3b80d8
David Majnemer [Wed, 25 Sep 2013 10:47:21 +0000 (10:47 +0000)]
MC: Add support for treating $ as a reference to the PC
The binutils assembler supports a mode called DOLLAR_DOT which treats
the dollar sign token as a reference to the current program counter if
the dollar sign doesn't precede a constant or identifier.
This commit adds a new MCAsmInfo flag stating whether or not a given
target supports this interpretation of the dollar sign token; by
default, this flag is not enabled.
Further, enable this flag for PPC. The system assembler for AIX and
binutils both support using the dollar sign in this manner.
This fixes PR17353.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191368
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Wed, 25 Sep 2013 10:37:17 +0000 (10:37 +0000)]
[SystemZ] Define the call instructions as pseudo aliases.
Similar to r191364, but for calls. This patch also removes the shortening
of BRASL to BRAS within a TU. Doing that was a bit controversial internally,
since there's a strong expectation with the z assembler that WYWIWYG.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191366
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Wed, 25 Sep 2013 10:29:47 +0000 (10:29 +0000)]
[SystemZ] Use subregs for 64-bit truncating stores
Another patch to reduce the duplication of encoding information.
Rather than define separate patterns for truncating 64-bit stores,
use the 32-bit stores with a subreg. No behavioral changed intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191365
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Wed, 25 Sep 2013 10:20:08 +0000 (10:20 +0000)]
[SystemZ] Define the return instruction as a pseudo alias of BR
This is the first of a few patches to reduce the dupliation of encoding
information. The return instruction is a normal BR in which one of the
registers is fixed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191364
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Wed, 25 Sep 2013 10:11:07 +0000 (10:11 +0000)]
[SystemZ] Add instruction-shortening pass
When loading immediates into a GR32, the port prefered LHI, followed by
LLILH or LLILL, followed by IILF. LHI and IILF are natural 32-bit
operations, but LLILH and LLILL also clear the upper 32 bits of the register.
This was represented as taking a 32-bit subreg of a 64-bit assignment.
Using subregs for something as simple as a move immediate was probably
a bad idea. Also, I have patches to add support for the high-word facility,
and we don't want something like LLILH and LLILL to stop the high word of
the same GPR from being used.
This patch therefore uses LHI and IILF to begin with and adds a late
machine-specific pass to use LLILH and LLILL if the other half of the
register is not live. The high-word patches extend this behavior to
IIHF, LLIHL and LLIHH.
No behavioral change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191363
91177308-0d34-0410-b5e6-
96231b3b80d8
David Majnemer [Wed, 25 Sep 2013 09:36:11 +0000 (09:36 +0000)]
MC: Remove vestigial PCSymbol field from AsmInfo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191362
91177308-0d34-0410-b5e6-
96231b3b80d8
Evgeniy Stepanov [Wed, 25 Sep 2013 08:56:00 +0000 (08:56 +0000)]
[msan] Fix -Wreturn-type warnings in non-self-hosted build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191361
91177308-0d34-0410-b5e6-
96231b3b80d8
Peter Collingbourne [Wed, 25 Sep 2013 07:52:21 +0000 (07:52 +0000)]
Try again to fix the MSVC build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191359
91177308-0d34-0410-b5e6-
96231b3b80d8
Peter Collingbourne [Wed, 25 Sep 2013 07:11:58 +0000 (07:11 +0000)]
Wrap the #include of <stdbool.h> in an #ifndef __cplusplus.
This should fix the MSVC build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191357
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Wed, 25 Sep 2013 06:40:22 +0000 (06:40 +0000)]
Fix doxygen comments to use correct function name.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191356
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Wed, 25 Sep 2013 06:37:18 +0000 (06:37 +0000)]
Replace EVT with MVT in CodeGenDAGAPatterns.cpp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191355
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Wed, 25 Sep 2013 00:52:34 +0000 (00:52 +0000)]
Revert r191350.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191353
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Wed, 25 Sep 2013 00:34:42 +0000 (00:34 +0000)]
[mips] Move public functions to the beginning of the class definition.
No intended functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191352
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Wed, 25 Sep 2013 00:30:25 +0000 (00:30 +0000)]
[mips] Define getTargetNode as a template function.
No intended functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191350
91177308-0d34-0410-b5e6-
96231b3b80d8
Quentin Colombet [Wed, 25 Sep 2013 00:26:17 +0000 (00:26 +0000)]
[PR16882] Ignore noreturn definitions when setting isPhysRegUsed.
PEI inserts a save/restore sequence for the link register, according to the
information it gets from the MachineRegisterInfo.
MachineRegisterInfo is populated by the VirtRegMap pass.
This pass was not aware of noreturn calls and was registering the definitions of
these calls the same way as regular operations.
Modify VirtRegPass so that it does not set the isPhysRegUsed information for
registers only defined by noreturn calls.
The rational is that a noreturn call is the "last instruction" of the program
(if it returns the behavior is undefined), so everything that is defined by it
cannot be used and will not interfere with anything else. Therefore, it is
pointless to account for then.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191349
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Wed, 25 Sep 2013 00:26:16 +0000 (00:26 +0000)]
CriticalAntiDepBreaker is no longer needed for armv7 scheduling.
This is being disabled because it is no longer needed for
performance. It is only used by postRAscheduler which is also planned
for removal, and it is implemented with an out-dated view of register
liveness. It consideres aliases instead of register units, assumes
valid kill flags, and assumes implicit uses on partial register
defs. Kill flags and implicit operands are error prone and impossible
to verify. We should gradually eliminate dependence on them in the
postRA phases.
Targets that still benefit from this should move to the MI
scheduler. If that doesn't solve the problem, then we should add a
hook to regalloc to optimize reload placement.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191348
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 24 Sep 2013 23:56:31 +0000 (23:56 +0000)]
MachO: Improve backend diagnostic for overalignment.
Give the symbol's name and disengage the enchanced crash reporting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191344
91177308-0d34-0410-b5e6-
96231b3b80d8
Peter Collingbourne [Tue, 24 Sep 2013 23:52:22 +0000 (23:52 +0000)]
Move LTO support library to a component, allowing it to be tested
more reliably across platforms. Patch by Tom Roeder!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191343
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Tue, 24 Sep 2013 22:50:14 +0000 (22:50 +0000)]
Add missing check to SETCC optimization.
PR17338.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191337
91177308-0d34-0410-b5e6-
96231b3b80d8
David Blaikie [Tue, 24 Sep 2013 20:23:36 +0000 (20:23 +0000)]
llvm-dwarfdump: add missing opening quotation mark lost in r191330
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191333
91177308-0d34-0410-b5e6-
96231b3b80d8
Stepan Dyatkovskiy [Tue, 24 Sep 2013 20:06:31 +0000 (20:06 +0000)]
Patch that forces MergeFunctions pass for clang.
It is temporary patch. We need to keep it in trunk, since it makes easer to test it on buildbots on different platforms.
Once we see stable MergeFunctions behaviour with satisfied perfomance, this patch will be removed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191331
91177308-0d34-0410-b5e6-
96231b3b80d8
David Blaikie [Tue, 24 Sep 2013 19:56:27 +0000 (19:56 +0000)]
llvm-dwarfdump: re-add field formatting for the entry kind lost in r191329
CR feedback from Eric Christopher
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191330
91177308-0d34-0410-b5e6-
96231b3b80d8
David Blaikie [Tue, 24 Sep 2013 19:50:00 +0000 (19:50 +0000)]
llvm-dwarfdump support for gnu_pubtypes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191329
91177308-0d34-0410-b5e6-
96231b3b80d8
Yi Jiang [Tue, 24 Sep 2013 19:33:53 +0000 (19:33 +0000)]
Test case for r191314.
Some supplemental information for r191314: We would like to make sure SLP Vectorizer will not try to vectorize tiny trees even with a negative threshold so we set the cost to INT_MAX.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191327
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Tue, 24 Sep 2013 18:37:49 +0000 (18:37 +0000)]
Verify that we don't optimize null return checks to the nothrow_t version of operator new.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191325
91177308-0d34-0410-b5e6-
96231b3b80d8
Yunzhong Gao [Tue, 24 Sep 2013 18:21:52 +0000 (18:21 +0000)]
Adding a feature flag to the llvm backend for x86 TBM instruction set.
Adding TBM feature to bdver2 processor; piledriver supports this instruction set
according to the following document:
http://developer.amd.com/wordpress/media/2012/10/New-Bulldozer-and-Piledriver-Instructions.pdf
Phabricator code review is located here: http://llvm-reviews.chandlerc.com/D1692
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191324
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Tue, 24 Sep 2013 17:49:08 +0000 (17:49 +0000)]
MemoryBuiltins: Remove posix_memalign from the list and replace it with a TODO.
This code isn't ready to deal with allocation functions where the return is not
the allocated pointer. The checks below will reject posix_memalign anyways.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191319
91177308-0d34-0410-b5e6-
96231b3b80d8
Roman Divacky [Tue, 24 Sep 2013 17:44:41 +0000 (17:44 +0000)]
Make the size and expr arguments of .fill directive optional.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191318
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Tue, 24 Sep 2013 17:34:29 +0000 (17:34 +0000)]
MemoryBuiltins: Reinstate optimizing (uninitialized) loads from operator new.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191315
91177308-0d34-0410-b5e6-
96231b3b80d8
Yi Jiang [Tue, 24 Sep 2013 17:26:43 +0000 (17:26 +0000)]
set the cost of tiny trees to INT_MAX in SLP vectorizer to disable vectorization on them
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191314
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Tue, 24 Sep 2013 17:15:14 +0000 (17:15 +0000)]
MemoryBuiltins: Fix operator new bits.
We really don't want to optimize malloc return value checks away.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191313
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Tue, 24 Sep 2013 17:11:19 +0000 (17:11 +0000)]
Comment typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191312
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Tue, 24 Sep 2013 16:37:51 +0000 (16:37 +0000)]
Teach MemoryBuiltins and InstructionSimplify that operator new never returns NULL.
This is safe per C++11 18.6.1.1p3: [operator new returns] a non-null pointer to
suitably aligned storage (3.7.4), or else throw a bad_alloc exception. This
requirement is binding on a replacement version of this function.
Brings us a tiny bit closer to eliminating more vector push_backs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191310
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Tue, 24 Sep 2013 16:37:40 +0000 (16:37 +0000)]
Push analysis passes to InstSimplify when they're around anyways.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191309
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Sanders [Tue, 24 Sep 2013 14:53:25 +0000 (14:53 +0000)]
[mips][msa] Added support for matching pckev, and pckod from normal IR (i.e. not intrinsics)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191306
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Sanders [Tue, 24 Sep 2013 14:36:12 +0000 (14:36 +0000)]
[mips][msa] Added support for matching ilv[lr], ilvod, and ilvev from normal IR (i.e. not intrinsics)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191304
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Tue, 24 Sep 2013 14:21:28 +0000 (14:21 +0000)]
DAGCombiner: Unify rotate matching for extended and unextended amounts.
No functionality change, lots of indentation changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191303
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Sanders [Tue, 24 Sep 2013 14:20:00 +0000 (14:20 +0000)]
[mips][msa] Added support for matching shf from normal IR (i.e. not intrinsics)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191302
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Sanders [Tue, 24 Sep 2013 14:02:15 +0000 (14:02 +0000)]
[mips][msa] Added support for matching vshf from normal IR (i.e. not intrinsics)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191301
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Sanders [Tue, 24 Sep 2013 13:33:07 +0000 (13:33 +0000)]
[mips][msa] Remove the VSPLAT and VSPLATD nodes in favour of matching BUILD_VECTOR.
Most constant BUILD_VECTOR's are matched using ComplexPatterns which cover
bitcasted as well as normal vectors. However, it doesn't seem to be possible to
match ldi.[bhwd] in a type-agnostic manner (e.g. to support the widest range of
immediates, it should be possible to use ldi.b to load v2i64) using TableGen so
ldi.[bhwd] is matched using custom code in MipsSEISelDAGToDAG.cpp
This made the majority of the constant splat BUILD_VECTOR lowering redundant.
The only transformation remaining for constant splats is when an (up-to) 32-bit
constant splat is possible but the value does not fit into a 10-bit signed
integer. In this case, the BUILD_VECTOR is transformed into a bitcasted
BUILD_VECTOR so that fill.[bhw] can be used to splat the vector from a GPR32
register (which is initialized using the usual lui/addui sequence).
There are no additional tests since this is a re-implementation of previous
functionality. The change is intended to make it easier to implement some of
the upcoming instruction selection patches since they can rely on existing
support for BUILD_VECTOR's in the DAGCombiner.
compare_float.ll changed slightly because a BITCAST is no longer
introduced during legalization.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191299
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Sanders [Tue, 24 Sep 2013 13:16:15 +0000 (13:16 +0000)]
[mips][msa] Non-constant BUILD_VECTOR's should be expanded to INSERT_VECTOR_ELT instead of memory operations.
The resulting code is the same length, but doesnt cause memory traffic or latency.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191297
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Sanders [Tue, 24 Sep 2013 13:02:08 +0000 (13:02 +0000)]
[mips][msa] Added partial support for matching fmax_a from normal IR (i.e. not intrinsics)
This covers the case where fmax_a can be used to implement ISD::FABS.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191296
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Sanders [Tue, 24 Sep 2013 12:45:36 +0000 (12:45 +0000)]
[mips][msa] Line wrapping.
No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191295
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Sanders [Tue, 24 Sep 2013 12:32:47 +0000 (12:32 +0000)]
[mips][msa] Added support for matching andi, ori, nori, and xori from normal IR (i.e. not intrinsics)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191293
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Sanders [Tue, 24 Sep 2013 12:18:31 +0000 (12:18 +0000)]
[mips][msa] Added support for matching max, maxi, min, mini from normal IR (i.e. not intrinsics)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191291
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Sanders [Tue, 24 Sep 2013 12:04:44 +0000 (12:04 +0000)]
[mips][msa] Added support for matching bsel and bseli from normal IR (i.e. not intrinsics)
This required correcting the definition of the bsel and bseli intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191290
91177308-0d34-0410-b5e6-
96231b3b80d8
Patrik Hagglund [Tue, 24 Sep 2013 11:38:45 +0000 (11:38 +0000)]
Remove error output from configure if CFLAGS is set (r174313).
This fixes PR16724.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191289
91177308-0d34-0410-b5e6-
96231b3b80d8
Evgeniy Stepanov [Tue, 24 Sep 2013 11:20:27 +0000 (11:20 +0000)]
[msan] Handling of atomic load/store, atomic rmw, cmpxchg.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191287
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Sanders [Tue, 24 Sep 2013 10:46:19 +0000 (10:46 +0000)]
[mips][msa] Added support for matching comparisons from normal IR (i.e. not intrinsics)
MIPS SelectionDAG changes:
* Added VCEQ, VCL[ET]_[SU] nodes to represent vector comparisons that produce a bitmask.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191286
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Sanders [Tue, 24 Sep 2013 10:28:18 +0000 (10:28 +0000)]
[mips][msa] Added support for matching slli, srai, and srli from normal IR (i.e. not intrinsics)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191285
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 24 Sep 2013 07:19:30 +0000 (07:19 +0000)]
Followup to r191252.
Make sure that the code that handles the constant addresses is run for the
GEPs. This just refactors that code and then calls it for the GEPs that are
collected during the iteration.
<rdar://problem/
12445434>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191281
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Tue, 24 Sep 2013 06:21:04 +0000 (06:21 +0000)]
Fix formatting to match coding standards.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191280
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Tue, 24 Sep 2013 04:14:29 +0000 (04:14 +0000)]
llvm/test/CodeGen/AArch64/neon-scalar-reduce-pairwise.ll: Use -mtriple here, or aach64-pecoff might be misassumed on win32 hosts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191275
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Tue, 24 Sep 2013 03:23:07 +0000 (03:23 +0000)]
DWARFTypeUnit::dump(): Use PRIx64 to format uint64_t.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191266
91177308-0d34-0410-b5e6-
96231b3b80d8
Jiangning Liu [Tue, 24 Sep 2013 02:47:27 +0000 (02:47 +0000)]
Initial support for Neon scalar instructions.
Patch by Ana Pazos.
1.Added support for v1ix and v1fx types.
2.Added Scalar Pairwise Reduce instructions.
3.Added initial implementation of Scalar Arithmetic instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191263
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael Gottesman [Tue, 24 Sep 2013 02:10:55 +0000 (02:10 +0000)]
[stackprotector] Forgot to add in PR number to test case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191261
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael Gottesman [Tue, 24 Sep 2013 01:50:26 +0000 (01:50 +0000)]
[stackprotector] Allow for copies from vreg -> vreg to be in a terminator sequence.
Sometimes a copy from a vreg -> vreg sneaks into the middle of a terminator
sequence. It is safe to slice this into the stack protector success bb.
This fixes PR16979.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191260
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Tue, 24 Sep 2013 00:36:09 +0000 (00:36 +0000)]
Misc fixes for cpp backend.
PR17317.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191258
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Tue, 24 Sep 2013 00:17:57 +0000 (00:17 +0000)]
Add namespaces to the list of items that we expose via pubnames.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191257
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Tue, 24 Sep 2013 00:17:54 +0000 (00:17 +0000)]
Regenerate testcase from source.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191256
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Tue, 24 Sep 2013 00:17:49 +0000 (00:17 +0000)]
Format the index entry kind string to align.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191255
91177308-0d34-0410-b5e6-
96231b3b80d8
David Blaikie [Tue, 24 Sep 2013 00:13:23 +0000 (00:13 +0000)]
Make dwarfdump-type-units.test order-independent
The order in which the comdat type unit sections appear in the output is
unspecified and may vary from machine to machine.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191253
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 24 Sep 2013 00:13:08 +0000 (00:13 +0000)]
Selecting the address from a very long chain of GEPs can blow the stack.
The recursive nature of the address selection code can cause the stack to
explode if there is a long chain of GEPs. Convert the recursive bit into a
iterative method to avoid this.
<rdar://problem/
12445434>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191252
91177308-0d34-0410-b5e6-
96231b3b80d8
David Blaikie [Mon, 23 Sep 2013 23:39:55 +0000 (23:39 +0000)]
Comments for r191234 as suggested by Eric Christopher.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191244
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Kleckner [Mon, 23 Sep 2013 23:26:57 +0000 (23:26 +0000)]
Explicitly request unsigned enum types when desired
The underlying type of all plain enums in MSVC is 'int', even if the
enumerator contains large 32-bit unsigned values or values greater than
UINT_MAX. The only way to get a large or unsigned enum type is to
request it explicitly with the C++11 strong enum types feature.
However, since LLVM isn't C++11 yet, I had to add a conditional
LLVM_ENUM_INT_TYPE to Compiler.h to control its usage.
The motivating true positive for this change is compiling PointerIntPair
with MSVC for win64. The PointerIntMask value is supposed to be pointer
sized value of all ones with some low zeros. Instead, it's truncated to
32-bits! We are only saved later because it is sign extended back in
the AND with int64_t, and we happen to want all ones.
This silences lots of -Wmicrosoft warnings during a clang self-host
targeting Windows.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191241
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Mon, 23 Sep 2013 23:15:58 +0000 (23:15 +0000)]
Add more external types to the pubtypes table. Expand the asm
checking patch until we get full dumping support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191239
91177308-0d34-0410-b5e6-
96231b3b80d8
David Blaikie [Mon, 23 Sep 2013 23:15:57 +0000 (23:15 +0000)]
Unbreak the build (from r191233)since we're calling printf.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191238
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Mon, 23 Sep 2013 22:59:14 +0000 (22:59 +0000)]
Rename IsStatic variable to Linkage in order to be a bit more descriptive.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191236
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Mon, 23 Sep 2013 22:59:11 +0000 (22:59 +0000)]
Formatting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191235
91177308-0d34-0410-b5e6-
96231b3b80d8
David Blaikie [Mon, 23 Sep 2013 22:44:47 +0000 (22:44 +0000)]
llvm-dwarfdump/libDebugInfo support for type units
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191234
91177308-0d34-0410-b5e6-
96231b3b80d8
David Blaikie [Mon, 23 Sep 2013 22:44:40 +0000 (22:44 +0000)]
Exract most of DWARFCompileUnit into a new DWARFUnit to prepare for the coming DWARFTypeUnit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191233
91177308-0d34-0410-b5e6-
96231b3b80d8
Reed Kotler [Mon, 23 Sep 2013 22:36:11 +0000 (22:36 +0000)]
Make nomips16 mask not repeat if it ends with a '.'.
This mask is purely for debugging and testing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191231
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 23 Sep 2013 20:57:47 +0000 (20:57 +0000)]
Reformat code with clang-format.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191226
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Mon, 23 Sep 2013 20:55:35 +0000 (20:55 +0000)]
Handle gnu pubtypes sections:
a) Make sure we are emitting the correct section in our section labels
when we begin the module.
b) Make sure we are emitting the correct pubtypes section in the
presence of gnu pubtypes.
c) For C++ struct, union, class, and enumeration types are default
external.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191225
91177308-0d34-0410-b5e6-
96231b3b80d8
Peter Collingbourne [Mon, 23 Sep 2013 20:14:21 +0000 (20:14 +0000)]
Add a paragraph on prefix data layout.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191219
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Mon, 23 Sep 2013 19:50:59 +0000 (19:50 +0000)]
Remove remaining references to -O4.
Thanks to Hal Finkel for noticing it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191216
91177308-0d34-0410-b5e6-
96231b3b80d8
Kay Tiong Khoo [Mon, 23 Sep 2013 18:43:51 +0000 (18:43 +0000)]
fix typo: than -> then
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191214
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Mitton [Mon, 23 Sep 2013 17:56:20 +0000 (17:56 +0000)]
Fixed debug_aranges handling for common symbols.
The size of common symbols is now tracked correctly, so they can be listed in the arange section without needing knowledge of other following symbols.
.comm (and .lcomm) do not indicate to the system assembler any particular section to use, so we have to treat them as having no section.
Test case update to account for this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191210
91177308-0d34-0410-b5e6-
96231b3b80d8