Michael Ilseman
d331ea92fa
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
eb6c004862
whitespace
...
llvm-svn: 163518
2012-09-10 16:56:31 +00:00
Michael Liao
2791a08d7e
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
fe38f1d2b0
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
a271aaded5
Minor cleanup. No functional change.
...
llvm-svn: 163510
2012-09-10 13:20:00 +00:00
Nadav Rotem
cb9794b1c7
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
42f7a4f93a
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
d5b75d5eec
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
56cdc6a59a
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
37ce5fbc3b
Make helper function static.
...
llvm-svn: 163504
2012-09-10 11:52:14 +00:00
Benjamin Kramer
3d97b600fa
Move bypassSlowDivision into the llvm namespace.
...
llvm-svn: 163503
2012-09-10 11:52:08 +00:00
Benjamin Kramer
a4a2829a23
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
Evgeniy Stepanov
24b5faa541
GTest on Android needs a custom tmpdir path.
...
llvm-svn: 163501
2012-09-10 10:32:29 +00:00
Nadav Rotem
edd576d454
Fix a typo in the comment.
...
llvm-svn: 163496
2012-09-10 08:51:46 +00:00
Nadav Rotem
917505e474
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
8442a2ec90
Teach the DAGBuilder about lifetime markers which are generated from PHINodes.
...
llvm-svn: 163494
2012-09-10 08:43:23 +00:00
Hans Wennborg
754348c070
Fix style issues from r163302 pointed out by Evan.
...
llvm-svn: 163491
2012-09-10 07:44:22 +00:00
Nick Lewycky
023f7006a9
Move spaces to the right places. No functionality change.
...
llvm-svn: 163485
2012-09-09 23:41:11 +00:00
Nick Lewycky
ad25150d03
Add missing space before {. No functionality change.
...
llvm-svn: 163484
2012-09-09 23:40:55 +00:00
Craig Topper
fb97f05d3c
Teach DAG combiner to constant fold fneg of a BUILD_VECTOR of constants.
...
llvm-svn: 163483
2012-09-09 22:58:45 +00:00
Aaron Ballman
db629b721e
Fixing a type width warning with MSVC.
...
llvm-svn: 163481
2012-09-09 20:34:25 +00:00
Benjamin Kramer
56915b8d2f
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
957f1f617e
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
a91d731898
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
NAKAMURA Takumi
57a661f79f
lit: Util.which(): Use os.path.isfile() instead of os.path.exists(), or it hits to the directory.
...
For example, which('loop-convert') returns 'loop-convert' when the directory 'loop-convert' exists.
llvm-svn: 163469
2012-09-08 12:07:24 +00:00
Craig Topper
9bda7e421e
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
53ec08b4fc
Add support for lowering FABS of vector types.
...
llvm-svn: 163461
2012-09-08 07:31:51 +00:00
Craig Topper
eb1db45675
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
4440f8539f
Revert "Add -exact-match option to FileCheck to allow clients to do exact matches without using regular expressions."
...
Turns out I did not need it after all. If we find a use for it in the future, we
can resurrect it.
llvm-svn: 163457
2012-09-08 04:32:13 +00:00
Ted Kremenek
beadef0e28
Add operator< for FoldingSetNodeID.
...
llvm-svn: 163454
2012-09-08 04:25:29 +00:00
Andrew Trick
822cf12e93
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
Anshuman Dasgupta
5b2793f0a5
Refactored DFA generator. Merged transition class into state class.
...
Patch by Ivan Llopard!
llvm-svn: 163424
2012-09-07 21:35:43 +00:00
Alex Rosenberg
f65b7d68a1
Add IRC handle entry to CREDITS.TXT as a test commit.
...
llvm-svn: 163423
2012-09-07 21:34:50 +00:00
Sandeep Patel
ca3f86baec
Correct an unfortunately necessary typo.
...
llvm-svn: 163422
2012-09-07 21:20:20 +00:00
Benjamin Kramer
f7e00de5d0
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
Jack Carter
775e191ae5
Initial relocations test for the Mips standalone assembler.
...
This is not an exhaustive set, but something we can build on.
Contributer: Vladimir Medic
llvm-svn: 163419
2012-09-07 20:38:18 +00:00
Chad Rosier
678022a15d
Fix indent.
...
llvm-svn: 163416
2012-09-07 20:23:29 +00:00
Benjamin Kramer
bd07d928aa
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
35af7f9a20
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
b062caadab
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
f7fdee3ce3
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
2c1f1b0513
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
2e362224b1
MipsAsmParser: Fix a couple of string use-after-frees and misuses of classof.
...
llvm-svn: 163383
2012-09-07 09:47:42 +00:00
Nuno Lopes
68629f7c98
yet another attempt at fixing @OCAMLOPT@ for sed.
...
Patch by Rick Foos.
llvm-svn: 163380
2012-09-07 09:24:13 +00:00
Hans Wennborg
2848f5f742
SimplifyCFG: ValidLookupTableConstant should be static
...
llvm-svn: 163378
2012-09-07 08:22:57 +00:00
Ted Kremenek
29ac4e350e
Add -exact-match option to FileCheck to allow clients to do exact matches without using regular expressions.
...
llvm-svn: 163371
2012-09-07 06:47:16 +00:00
Michael Liao
54009dd489
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
Jack Carter
93a95cbdde
The Mips standalone assembler aliased instruction support.
...
The assembler can alias one instruction into another based
on the operands. For example the jump instruction "J" takes
and immediate operand, but if the operand is a register the
assembler will change it into a jump register "JR" instruction.
These changes are in the instruction td file.
Test cases included
Contributer: Vladimir Medic
llvm-svn: 163368
2012-09-07 01:42:38 +00:00
Jack Carter
d4ab2f65df
The Mips standalone assembler intial directive support.
...
Actually these are just stubs for parsing the directives.
Semantic support will come later.
Test cases included
Contributer: Vladimir Medic
llvm-svn: 163364
2012-09-07 00:48:02 +00:00
Jack Carter
0a824e63ab
The Mips standalone assembler fpu instruction support.
...
Test cases included
Contributer: Vladimir Medic
llvm-svn: 163363
2012-09-07 00:23:42 +00:00