Johnny Chen
28a32ef2d7
Add a test case for MSRi.
...
llvm-svn: 128494
2011-03-29 21:52:02 +00:00
Cameron Zwarich
95260e5ebb
Add Neon SINT_TO_FP and UINT_TO_FP lowering from v4i16 to v4f32. Fixes
...
<rdar://problem/8875309> and <rdar://problem/9057191>.
llvm-svn: 128492
2011-03-29 21:41:55 +00:00
Jakob Stoklund Olesen
a292fa3d1e
Recompute register class and hint for registers created during spilling.
...
The spill weight is not recomputed for an unspillable register - it stays infinite.
llvm-svn: 128490
2011-03-29 21:20:19 +00:00
Argyrios Kyrtzidis
e923f22a2e
In ClangSACheckersEmitter:
...
- Also emit a list of packages and groups sorted by name
- Avoid iterating over DenseSet so that the output of the arrays is deterministic.
llvm-svn: 128489
2011-03-29 21:16:19 +00:00
Kevin Enderby
1ece39d99c
Added support symbolic floating point constants in the MC assembler for Infinity
...
and Nans with the same strings as GAS supports. rdar://8673024
llvm-svn: 128488
2011-03-29 21:11:52 +00:00
Johnny Chen
3c4cb78640
Add a thumb test file for printf (iOS 4.3).
...
llvm-svn: 128487
2011-03-29 21:09:30 +00:00
Jim Grosbach
30c2338560
Instantiate a JITMemoryManager for MCJIT Dyld
...
llvm-svn: 128485
2011-03-29 21:03:05 +00:00
Oscar Fuentes
4fe82e640f
Fixed the build of Clang's unit tests on MinGW. Also removed some
...
unnecesary conditionals and introduced a new convenience function.
The problem was that the list of libraries for Clang's unit tests was
<clang libraries> <system libraries> <llvm libraries>. As the llvm
libraries references symbols defined on the system libraries, those
were reported as undefined.
llvm-svn: 128484
2011-03-29 20:51:08 +00:00
Benjamin Kramer
a28b1da096
DSE: Remove an early exit optimization that depended on the ordering of a SmallPtrSet.
...
Fixes PR9569 and will hopefully make selfhost on ASLR-enabled systems more deterministic.
llvm-svn: 128482
2011-03-29 20:28:57 +00:00
Owen Anderson
c2b8d6ac65
Check early if this is an unsupported opcode, so that we can avoid needlessly instantiating the base register in some cases.
...
llvm-svn: 128481
2011-03-29 20:27:38 +00:00
Johnny Chen
ab342ac374
A8.6.188 STC, STC2
...
The STC_OPTION and STC2_OPTION instructions should have their coprocessor option enclosed in {}.
rdar://problem/9200661
llvm-svn: 128478
2011-03-29 19:49:38 +00:00
Johnny Chen
9a61664869
Rename invalid-VLDMSDB-arm.txt to be invalid-VLDMSDB_UPD-arm.txt.
...
llvm-svn: 128477
2011-03-29 19:10:06 +00:00
Johnny Chen
1cd323de0a
Add and modify some tests.
...
llvm-svn: 128476
2011-03-29 19:08:52 +00:00
Argyrios Kyrtzidis
71261edb9b
For ClangSACheckersEmitter, allow a package to belong to checker group, in which all its checkers will go into the group.
...
llvm-svn: 128474
2011-03-29 18:53:00 +00:00
Jakob Stoklund Olesen
229e589bd1
Remember to use the correct register when rematerializing for snippets.
...
llvm-svn: 128469
2011-03-29 17:47:02 +00:00
Jakob Stoklund Olesen
4676323ac8
Run dead code elimination immediately after rematerialization.
...
This may eliminate some uses of the spilled registers, and we don't want to
insert reloads for that.
llvm-svn: 128468
2011-03-29 17:47:00 +00:00
Owen Anderson
3310282e25
Add safety check that didn't show up in testing.
...
llvm-svn: 128467
2011-03-29 17:42:25 +00:00
Devang Patel
1b0c19617d
Document llvm.dbg.sp, llvm.dbg.gv and llvm.dbg.enum
...
llvm-svn: 128466
2011-03-29 17:27:08 +00:00
Bill Wendling
7469ccb3bd
Inline check that's used only once.
...
llvm-svn: 128465
2011-03-29 17:12:55 +00:00
Owen Anderson
d73041e884
Get rid of the non-writeback versions VLDMDB and VSTMDB, which don't actually exist.
...
llvm-svn: 128461
2011-03-29 16:45:53 +00:00
Bill Wendling
47b8e67328
Rework the logic (and removing the bad check for an unreachable block) so that
...
the FailBB dominator is correctly calculated. Believe it or not, there isn't a
functionality change here.
llvm-svn: 128455
2011-03-29 07:28:52 +00:00
Cameron Zwarich
d49e32233c
Do some simple copy propagation through integer loads and stores when promoting
...
vector types. This helps a lot with inlined functions when using the ARM soft
float ABI. Fixes <rdar://problem/9184212>.
llvm-svn: 128453
2011-03-29 05:19:52 +00:00
Bill Wendling
ded022ad8b
Don't try to add stack protector logic to a dead basic block. It messes up
...
dominator information.
llvm-svn: 128452
2011-03-29 05:15:48 +00:00
Bill Wendling
59493294dd
Spruce up the error output.
...
llvm-svn: 128451
2011-03-29 04:28:26 +00:00
Jakob Stoklund Olesen
a92d74e8cb
Handle the special case when all uses follow the last split point.
...
llvm-svn: 128450
2011-03-29 03:12:04 +00:00
Jakob Stoklund Olesen
c209e050dd
Properly enable rematerialization when spilling after live range splitting.
...
The instruction to be rematerialized may not be the one defining the register
that is being spilled. The traceSiblingValue() function sees through sibling
copies to find the remat candidate.
llvm-svn: 128449
2011-03-29 03:12:02 +00:00
Daniel Dunbar
26ea306fac
C-API: Include DataTypes.h instead of stdint.h.
...
llvm-svn: 128446
2011-03-29 02:30:34 +00:00
Rafael Espindola
b103223cdd
Reduce test case.
...
llvm-svn: 128445
2011-03-29 02:18:54 +00:00
Evan Cheng
5bcaef9cc9
Optimizing (zext A + zext B) * C, to (VMULL A, C) + (VMULL B, C) during
...
isel lowering to fold the zero-extend's and take advantage of no-stall
back to back vmul + vmla:
vmull q0, d4, d6
vmlal q0, d5, d6
is faster than
vaddl q0, d4, d5
vmovl q1, d6
vmul q0, q0, q1
This allows us to vmull + vmlal for:
f = vmull_u8( vget_high_u8(s), c);
f = vmlal_u8(f, vget_low_u8(s), c);
rdar://9197392
llvm-svn: 128444
2011-03-29 01:56:09 +00:00
Francois Pichet
b4a845ecbe
Fix the MSVC build.
...
llvm-svn: 128441
2011-03-29 00:30:01 +00:00
Devang Patel
db381d9aff
Expoert c interface for disassembler.
...
llvm-svn: 128440
2011-03-29 00:01:39 +00:00
Bill Wendling
cb8447ad52
In some cases, the "fail BB dominator" may be null after the BB was split (and
...
becomes reachable when before it wasn't). Check to make sure that it's not null
before trying to use it.
llvm-svn: 128434
2011-03-28 23:02:18 +00:00
Daniel Dunbar
cec6959c23
Integrated-As: Add support for setting the AllowTemporaryLabels flag via
...
integrated-as.
llvm-svn: 128431
2011-03-28 22:49:19 +00:00
Daniel Dunbar
5d8c7d0d36
MC: Add support for disabling "temporary label" behavior. Useful for debugging
...
on Darwin.
llvm-svn: 128430
2011-03-28 22:49:15 +00:00
Ted Kremenek
737cbac625
Unbreak CMake build.
...
llvm-svn: 128426
2011-03-28 20:43:53 +00:00
Devang Patel
ce52d006e1
Remove scripts used by TEST=dbg from here. They now live inside llvm test suite.
...
llvm-svn: 128425
2011-03-28 20:28:30 +00:00
Johnny Chen
8b921cebc6
Fix ARM disassembly for PLD/PLDW/PLI which suffers from code rot and add some test cases.
...
Add comments to ThumbDisassemblerCore.h for recent change made for t2PLD disassembly.
llvm-svn: 128417
2011-03-28 18:41:58 +00:00
Kevin Enderby
8c488cb152
Again adding a C API to the disassembler for use by such tools as Darwin's
...
otool(1), this time with the needed fix for case sensitive file systems :) .
This is a work in progress as the interface for producing symbolic operands is
not done. But a hacked prototype using information from the object file's
relocation entiries and replacing immediate operands with MCExpr's has been
shown to work with no changes to the instrucion printer. These APIs will be
moved into a dynamic library at some point.
llvm-svn: 128415
2011-03-28 18:25:07 +00:00
Nick Lewycky
ff3780a12e
Remove tabs I accidentally added.
...
llvm-svn: 128413
2011-03-28 17:48:26 +00:00
Jay Foad
bfb0312e40
Make more use of PHINode::getNumIncomingValues().
...
llvm-svn: 128406
2011-03-28 13:03:10 +00:00
Che-Liang Chiou
a4ae414c30
ptx: clean up branch code a bit
...
llvm-svn: 128405
2011-03-28 10:23:13 +00:00
NAKAMURA Takumi
2bdbab1457
docs/GettingStarted.html: [PR8850] Add a note for x86_64-w64-mingw32.
...
llvm-svn: 128404
2011-03-28 06:27:12 +00:00
NAKAMURA Takumi
f77260b34b
docs/GettingStarted.html: Add blurb "--enable-shared" on cygming.
...
llvm-svn: 128403
2011-03-28 06:27:06 +00:00
Frits van Bommel
c458e6512d
Add some debug output when -instcombine uses RAUW. This can make debug output for those cases much clearer since without this it only showed that the original instruction was removed, not what it was replaced with.
...
llvm-svn: 128399
2011-03-27 23:32:31 +00:00
Jakob Stoklund Olesen
18eaae730c
Amend debug output.
...
llvm-svn: 128398
2011-03-27 22:49:23 +00:00
Jakob Stoklund Olesen
9b9cae35db
Drop interference reassignment in favor of eviction.
...
The reassignment phase was able to move interference with a higher spill weight,
but it didn't happen very often and it was fairly expensive.
The existing interference eviction picks up the slack.
llvm-svn: 128397
2011-03-27 22:49:21 +00:00
Nick Lewycky
fd664969bc
Teach the transformation that moves binary operators around selects to preserve
...
the subclass optional data.
llvm-svn: 128388
2011-03-27 19:51:23 +00:00
Benjamin Kramer
ea0ac8fafa
Use APInt's umul_ov instead of rolling our own overflow detection.
...
llvm-svn: 128380
2011-03-27 15:04:38 +00:00
Frits van Bommel
c234349939
Constant folding support for calls to umul.with.overflow(), basically identical to the smul.with.overflow() code.
...
llvm-svn: 128379
2011-03-27 14:26:13 +00:00
Duncan Sands
c9b450fae7
Partially revert commit 127155: I think it is much more convenient
...
to have structured log files rather than one big file produced by
piping output.
llvm-svn: 128378
2011-03-27 13:52:32 +00:00