Chad Rosier
41ff85d754
Revert r163556. Missed updates to tablegen files.
...
llvm-svn: 163557
2012-09-10 22:30:35 +00:00
Chad Rosier
2089c49db7
Update function names to conform to guidelines. No functional change intended.
...
llvm-svn: 163556
2012-09-10 22:23:45 +00:00
Chad Rosier
7641f58784
[ms-inline asm] Properly emit the asm directives when the AsmPrinterVariant
...
and InlineAsmVariant don't match.
llvm-svn: 163550
2012-09-10 21:36:05 +00:00
Dmitri Gribenko
ca1e27be0d
Remove redundant semicolons which are null statements.
...
llvm-svn: 163547
2012-09-10 21:26:47 +00:00
Nadav Rotem
5a72a23a70
Disable stack coloring because it makes dragonegg fail bootstrapping.
...
llvm-svn: 163545
2012-09-10 21:17:58 +00:00
Chad Rosier
db20a41d99
[ms-inline asm] Pass the correct AsmVariant to the PrintAsmOperand() function
...
and update the printOperand() function accordingly.
llvm-svn: 163544
2012-09-10 21:10:49 +00:00
Chad Rosier
6f8d8b2406
[ms-inline asm] Add support for .att_syntax directive.
...
llvm-svn: 163542
2012-09-10 20:54:39 +00:00
Nadav Rotem
107faf853b
Enable stack coloring.
...
llvm-svn: 163539
2012-09-10 20:15:49 +00:00
Jakob Stoklund Olesen
8b9dce5c18
Don't attempt to use flags from predicated instructions.
...
The ARM backend can eliminate cmp instructions by reusing flags from a
nearby sub instruction with similar arguments.
Don't do that if the sub is predicated - the flags are not written
unconditionally.
<rdar://problem/12263428>
llvm-svn: 163535
2012-09-10 19:17:25 +00:00
Michael J. Spencer
7307fea911
[Object] Extract Elf_Ehdr. Patch by Hemant Kulkarni!
...
llvm-svn: 163532
2012-09-10 19:04:02 +00:00
Nadav Rotem
3c86b78ae4
Stack Coloring: Handle the case where END markers come before BEGIN markers properly.
...
llvm-svn: 163530
2012-09-10 18:51:09 +00:00
Michael Liao
400f7ef871
Enhance PR11334 fix to support extload from v2f32/v4f32
...
- Fix an remaining issue of PR11674 as well
llvm-svn: 163528
2012-09-10 18:33:51 +00:00
Sergei Larin
ef4cc11cf9
Add "blocked" heuristic to the Hexagon MI scheduler.
...
Improve AQ instruction selection in the Hexagon MI scheduler.
llvm-svn: 163523
2012-09-10 17:31:34 +00:00
Michael Ilseman
0666f0580c
Fold multiply by 0 or 1 when in UnsafeFPMath mode in SelectionDAG::getNode().
...
This folding happens as early as possible for performance reasons, and to make sure it isn't foiled by other transforms (e.g. forming FMAs).
llvm-svn: 163519
2012-09-10 17:00:37 +00:00
Michael Ilseman
d5f91515f3
whitespace
...
llvm-svn: 163518
2012-09-10 16:56:31 +00:00
Michael Liao
c3d5b21c39
Add boolean simplification support from CMOV
...
- If a boolean value is generated from CMOV and tested as boolean value,
simplify the use of test result by referencing the original condition.
RDRAND intrinisc is one of such cases.
llvm-svn: 163516
2012-09-10 16:36:16 +00:00
James Molloy
1e5c611815
Fix an assertion failure when optimising a shufflevector incorrectly into concat_vectors, and a followup bug with SelectionDAG::getNode() creating nodes with invalid types.
...
llvm-svn: 163511
2012-09-10 14:01:21 +00:00
Nadav Rotem
ba9a03f279
Minor cleanup. No functional change.
...
llvm-svn: 163510
2012-09-10 13:20:00 +00:00
Nadav Rotem
d62287dc91
Stack Coloring: Debug prints to print the slot number and not the array index.
...
llvm-svn: 163509
2012-09-10 13:17:58 +00:00
Nadav Rotem
ed242a0f1c
Stack Coloring: When searching for disjoint regions, do not compare intervals twice or to theirself.
...
llvm-svn: 163508
2012-09-10 12:47:38 +00:00
Nadav Rotem
6731363185
Stack Coloring: Add support for multiple regions of the same slot, within a single basic block.
...
llvm-svn: 163507
2012-09-10 12:39:35 +00:00
Elena Demikhovsky
264fb0217e
The VPSHUFB 256-bit instruction may be generated when one of input vector is undefined or zeroinitializer.
...
I've added the "zeroinitializer" case in this patch.
llvm-svn: 163506
2012-09-10 12:13:11 +00:00
Benjamin Kramer
47b5c5713b
Make helper function static.
...
llvm-svn: 163504
2012-09-10 11:52:14 +00:00
Benjamin Kramer
1f66f885e8
Move bypassSlowDivision into the llvm namespace.
...
llvm-svn: 163503
2012-09-10 11:52:08 +00:00
Benjamin Kramer
8dd0edc7b1
c bindings: revert LLVMConstInlineAsm to always use the default asm dialect.
...
- The C API should be stable
- InlineAsm::AsmDialect is not exposed to C
- The function didn't match the prototype so this was unreachable code
llvm-svn: 163502
2012-09-10 11:52:00 +00:00
Nadav Rotem
2f41ff93e6
Fix a typo in the comment.
...
llvm-svn: 163496
2012-09-10 08:51:46 +00:00
Nadav Rotem
28e6f8c1fc
Add an assertion that the frame index is indeed inside the declared lifetime region.
...
llvm-svn: 163495
2012-09-10 08:44:15 +00:00
Nadav Rotem
d753a952ca
Teach the DAGBuilder about lifetime markers which are generated from PHINodes.
...
llvm-svn: 163494
2012-09-10 08:43:23 +00:00
Hans Wennborg
7fd5c844af
Fix style issues from r163302 pointed out by Evan.
...
llvm-svn: 163491
2012-09-10 07:44:22 +00:00
Nick Lewycky
12d825d9ca
Move spaces to the right places. No functionality change.
...
llvm-svn: 163485
2012-09-09 23:41:11 +00:00
Nick Lewycky
74bf42c9a1
Add missing space before {. No functionality change.
...
llvm-svn: 163484
2012-09-09 23:40:55 +00:00
Craig Topper
03f39773e0
Teach DAG combiner to constant fold fneg of a BUILD_VECTOR of constants.
...
llvm-svn: 163483
2012-09-09 22:58:45 +00:00
Benjamin Kramer
2b11eb0729
DSE: Poking holes into a SetVector is expensive, avoid it if possible.
...
llvm-svn: 163480
2012-09-09 16:44:05 +00:00
Benjamin Kramer
851c941b8b
LiveVariables: Compute a set of defs and kills to speed up updating LV during critical edge splitting.
...
Previously we checked if the register is def'd in a block via the def/use list a
nd walked the list of kills to check if the register is killed in a block. Both
of these checks can be made much cheaper by walking the block first and
recording all defs and kills.
This reduces the compile time of the test case from PR13651 from 40s to 15s at
-O2. The compile time is still dominated by LV updating but now the main culprit
is SparseBitVector's slowness.
llvm-svn: 163478
2012-09-09 11:56:14 +00:00
Craig Topper
4ed79bd7d7
Add instruction selection for ffloor of vectors when SSE4.1 or AVX is enabled.
...
llvm-svn: 163473
2012-09-08 17:42:27 +00:00
Craig Topper
0955a9f4e1
Use 256-bit alignment for constant pool value for 256-bit vector FNEG lowering.
...
llvm-svn: 163463
2012-09-08 07:46:05 +00:00
Craig Topper
98f2e861a0
Add support for lowering FABS of vector types.
...
llvm-svn: 163461
2012-09-08 07:31:51 +00:00
Craig Topper
3e41a5bb31
Set operation action for FFLOOR to Expand for all vector types for X86. Set FFLOOR of v4f32 to Expand for ARM. v2f64 was already correct.
...
llvm-svn: 163458
2012-09-08 04:58:43 +00:00
Ted Kremenek
0b3e805e4b
Add operator< for FoldingSetNodeID.
...
llvm-svn: 163454
2012-09-08 04:25:29 +00:00
Andrew Trick
d3b4d2cb76
Remove an incorrect assert during branch weight propagation.
...
Patch and test case by Alastair Murray!
llvm-svn: 163437
2012-09-08 00:07:26 +00:00
Benjamin Kramer
68b9f0583f
Fix alignment of .comm and .lcomm on mingw32.
...
For some reason .lcomm uses byte alignment and .comm log2 alignment so we can't
use the same setting for both. Fix this by reintroducing the LCOMM enum.
I verified this against mingw's gcc.
llvm-svn: 163420
2012-09-07 21:08:01 +00:00
Chad Rosier
1f57bcb1a0
Fix indent.
...
llvm-svn: 163416
2012-09-07 20:23:29 +00:00
Benjamin Kramer
ad100ec90e
Contrary to what the documentation says, .lcomm alignment on COFF is in bytes, not power of 2.
...
llvm-svn: 163405
2012-09-07 18:56:10 +00:00
Chad Rosier
b759ede963
Update function names to conform to guidelines. No functional change intended.
...
llvm-svn: 163401
2012-09-07 18:16:38 +00:00
Jakob Stoklund Olesen
e45e22b20f
Custom DAGCombine for and/or/xor are for all ARMs.
...
The 'select' transformations apply to all ARM architectures and don't
require hasV6T2Ops.
llvm-svn: 163396
2012-09-07 17:34:15 +00:00
Benjamin Kramer
47f9ec92cb
MC: Overhaul handling of .lcomm
...
- Darwin lied about not supporting .lcomm and turned it into zerofill in the
asm parser. Push the zerofill-conversion down into macho-specific code.
- This makes the tri-state LCOMMType enum superfluous, there are no targets
without .lcomm.
- Do proper error reporting when trying to use .lcomm with alignment on a target
that doesn't support it.
- .comm and .lcomm alignment was parsed in bytes on COFF, should be power of 2.
- Fixes PR13755 (.lcomm crashes on ELF).
llvm-svn: 163395
2012-09-07 17:25:13 +00:00
Benjamin Kramer
e3d658bb6c
PR13754: llvm-mc/x86 crashes on .cfi directives without the % prefix for registers.
...
gas accepts this and it seems to be common enough to be worth supporting. This
doesn't affect the parsing of reg operands outside of .cfi directives.
llvm-svn: 163390
2012-09-07 14:51:35 +00:00
Benjamin Kramer
fa530570db
MipsAsmParser: Fix a couple of string use-after-frees and misuses of classof.
...
llvm-svn: 163383
2012-09-07 09:47:42 +00:00
Hans Wennborg
08238adbbb
SimplifyCFG: ValidLookupTableConstant should be static
...
llvm-svn: 163378
2012-09-07 08:22:57 +00:00
Michael Liao
b7cd341901
Stop emitting lifetime region info when stack coloring is not enabled in O0
...
- this should fix PR13780
llvm-svn: 163370
2012-09-07 05:13:00 +00:00