Akira Hatanaka
5ead4f3d78
SelectionDAG node enums for MIPS DSP nodes.
...
llvm-svn: 164430
2012-09-21 23:52:47 +00:00
Akira Hatanaka
00202df6d5
Add MIPS accumulator and DSP control registers.
...
llvm-svn: 164429
2012-09-21 23:48:37 +00:00
Akira Hatanaka
d89661f8bd
Add flags and feature bits for mips dsp.
...
llvm-svn: 164428
2012-09-21 23:41:49 +00:00
Chandler Carruth
438cc8b234
Fix a case where the new SROA pass failed to zap dead operands to
...
selects with a constant condition. This resulted in the operands
remaining live through the SROA rewriter. Most of the time, this just
caused some dead allocas to persist and get zapped by later passes, but
in one case found by Joerg, it caused a crash when we tried to *promote*
the alloca despite it having this dead use. We already have the
mechanisms in place to handle this, just wire select up to them.
llvm-svn: 164427
2012-09-21 23:36:40 +00:00
Eric Christopher
8172c32318
Add an --enable-backtraces option to configure to determine
...
whether or not we want to print out backtrace information. Useful
for libraries that don't need backtrace information on a crash.
rdar://11844710
llvm-svn: 164426
2012-09-21 23:03:29 +00:00
Dan Gohman
d9c407a8be
Add an MDBuilder utility for creating !tbaa.struct nodes.
...
llvm-svn: 164425
2012-09-21 23:00:37 +00:00
Michael J. Spencer
6aa3aae5d6
[CMake] Respect LLVM_BUILD_RUNTIME.
...
llvm-svn: 164424
2012-09-21 22:49:06 +00:00
Chad Rosier
fd5e542cea
[ms-inline asm] Expose the mnemonicIsValid() function in the AsmParser.
...
llvm-svn: 164420
2012-09-21 22:21:26 +00:00
Eric Christopher
b67c16fe92
Have the DbgVariable "isArtificial" and "isObjectPointer" not
...
care about it being an argument variable so that we can decide
that captured block and lambda vars that don't happen to
be arguments could be an argument pointer.
Add the object pointer for one case onto the subprogram die.
rdar://12001329
llvm-svn: 164419
2012-09-21 22:18:52 +00:00
Chad Rosier
bfd7fc3e7e
Add comment.
...
llvm-svn: 164415
2012-09-21 21:08:46 +00:00
Chad Rosier
2cc6afaac6
Add comment.
...
llvm-svn: 164414
2012-09-21 20:51:43 +00:00
Evan Cheng
cbdea3af74
Fix a significant recent(?) regression. StackSlotColoring no longer did anything
...
because LiveStackAnalysis was not preserved by VirtRegWriter. This caused
big stack usage regression in some cases.
rdar://12340383
llvm-svn: 164408
2012-09-21 20:04:28 +00:00
Sean Silva
9a9e2646a3
docs: Fix long-standing typo in yaml2obj.rst.
...
llvm-svn: 164407
2012-09-21 19:48:16 +00:00
Chad Rosier
64fd35f379
Whitespace.
...
llvm-svn: 164406
2012-09-21 19:25:59 +00:00
Dan Gohman
8242a28668
Say "bytes" instead of "address units", since that's what the
...
rest of LangRef uses.
llvm-svn: 164402
2012-09-21 18:41:30 +00:00
Dan Gohman
cacdd7ae8e
Document the new !tbaa.struct metadata.
...
llvm-svn: 164398
2012-09-21 18:21:48 +00:00
David Blaikie
022673f281
Add missing 'to' and rephrase an explanation of GCC's assumptions.
...
Wordsmithing by Matt Beaumont-Gay in response to r164389.
llvm-svn: 164395
2012-09-21 18:03:02 +00:00
David Blaikie
2bafd0b320
Document "do not use defaults in covered switch-over-enum" coding standard.
...
llvm-svn: 164389
2012-09-21 17:47:36 +00:00
Benjamin Kramer
baec630d4c
LoopIdiom: Give up when the loop is not in canonical form.
...
We rely on it when doing the transforms. This can happen when there is an
indirectbr in the loop.
Fixes PR13892.
llvm-svn: 164383
2012-09-21 17:27:23 +00:00
Chad Rosier
a58913fc00
[fast-isel] Fallback to SelectionDAG isel if we require strict alignment for
...
non-aligned i32 loads/stores.
rdar://12304911
llvm-svn: 164381
2012-09-21 16:58:35 +00:00
Benjamin Kramer
3083ebd4de
InstCombine: Make sure we use the pre-zext type when creating a constant of a value that is zext'd.
...
Fixes PR13250.
llvm-svn: 164377
2012-09-21 16:26:41 +00:00
Bill Wendling
be9626d5d1
Encapsulate the "construct*AlignmentFromInt" functions.
...
llvm-svn: 164373
2012-09-21 16:07:28 +00:00
Michael Liao
9a17cba52b
Fix a typo in r164357
...
llvm-svn: 164372
2012-09-21 16:03:03 +00:00
Dmitri Gribenko
aeecde380d
Clarify comment.
...
llvm-svn: 164371
2012-09-21 15:26:34 +00:00
Bill Wendling
38bffadcad
Make the 'get*AlignmentFromAttr' functions into member functions within the Attributes class. Now with fix.
...
llvm-svn: 164370
2012-09-21 15:26:31 +00:00
Benjamin Kramer
fd67118ab5
BitcodeReader: Correctly insert blockaddress constant referring to a already parsed function.
...
We inserted a placeholder that was never replaced because the function was
already visited. Assert that all placeholders have been resolved when tearing
down the bitcode reader.
Fixes PR13895.
llvm-svn: 164369
2012-09-21 14:34:31 +00:00
Alexey Samsonov
ad52a8844e
Fix SymbolRef::getAddress implementation for ELF. The 'value' field in symbol table entry should be treated differently for relocatable and relocated files. This patch fixes symbol addresses printed by llvm-nm for executables and shared objects.
...
llvm-svn: 164365
2012-09-21 07:08:08 +00:00
NAKAMURA Takumi
8c966675e5
llvm/test/CodeGen/X86/pr5145.ll: Tweak expressions to match for darwin target.
...
.LBB0_1: # Linux
LBB0_1: # Darwin
llvm-svn: 164362
2012-09-21 05:19:19 +00:00
Andrew Trick
2545253eda
Cortex-A9 latency fixes (w/ -schedmodel only).
...
Quick review against the manual revealed a few obvious mistakes.
llvm-svn: 164361
2012-09-21 05:06:40 +00:00
Michael Liao
2197b133f8
Add missing i8 max/min/umax/umin support
...
- Fix PR5145 and turn on test 8-bit atomic ops
llvm-svn: 164358
2012-09-21 03:18:52 +00:00
Michael Liao
439a9cea68
Revise td of X86 atomic instructions
...
- Rewirte most atomic instructions in templates for both better
maintenance and future extensions, such as HLE in TSX.
llvm-svn: 164357
2012-09-21 03:00:17 +00:00
Sean Silva
b15391b636
docs: Fix Sphinx warning over Atomics.rst.
...
Atomics.rst was not linked into the toctree.
Docs now build warning-free!
llvm-svn: 164356
2012-09-21 02:46:32 +00:00
Sean Silva
6414239b4d
docs: Fix Sphinx warning over yaml2obj.rst.
...
yaml2obj.rst was not included in the toctree
Input from Michael Spencer.
llvm-svn: 164355
2012-09-21 02:46:30 +00:00
NAKAMURA Takumi
6900d8a214
Mips16FrameLowering.cpp: Remove unused TII introduced in r164349. [-Wunused-variable]
...
llvm-svn: 164354
2012-09-21 02:21:30 +00:00
NAKAMURA Takumi
a7a5a7cd7d
llvm/test/CodeGen/ARM/fast-isel.ll: Fix possible typos, s/@unaligned_i16_store/@unaligned_i16_load/g.
...
I guess this had apparently passed in +Asserts possibly due to verborsity.
llvm-svn: 164350
2012-09-21 01:15:05 +00:00
Akira Hatanaka
39d54479a3
Properly save and restore RA and Mips16 callee save registers S0,S1
...
Patch by Reed Kotler.
llvm-svn: 164349
2012-09-21 01:08:16 +00:00
Chad Rosier
d80fb0b13d
Testcase does not need to be this strict.
...
llvm-svn: 164347
2012-09-21 00:47:08 +00:00
Chad Rosier
c15c6508e0
Add newline.
...
llvm-svn: 164346
2012-09-21 00:43:18 +00:00
Chad Rosier
8a1b0217f6
[fast-isel] Fallback to SelectionDAG isel if we require strict alignment for
...
non-halfword-aligned i16 loads/stores.
rdar://12304911
llvm-svn: 164345
2012-09-21 00:41:42 +00:00
Jim Grosbach
cfecc18fc8
Tidy up. Whitespace.
...
llvm-svn: 164344
2012-09-21 00:36:42 +00:00
Jim Grosbach
8293ae4ed7
Tidy up. Formatting.
...
llvm-svn: 164343
2012-09-21 00:26:53 +00:00
Jim Grosbach
135898ebe3
ARM: Use a dedicated intrinsic for vector bitwise select.
...
The expression based expansion too often results in IR level optimizations
splitting the intermediate values into separate basic blocks, preventing
the formation of the VBSL instruction as the code author intended. In
particular, LICM would often hoist part of the computation out of a loop.
rdar://11011471
llvm-svn: 164340
2012-09-21 00:18:20 +00:00
Jakob Stoklund Olesen
801e92ce89
Ignore PHI-defs for -new-coalescer interference checks.
...
A PHI can't create interference on its own. If two live ranges interfere
at a PHI, they must also interfere when leaving one of the PHI
predecessors.
llvm-svn: 164330
2012-09-20 23:08:42 +00:00
Jakob Stoklund Olesen
32e4e26aa6
Extend -new-coalescer SSA update to handle mapped values as well.
...
The old-fashioned many-to-one value mapping doesn't always work when
merging vector lanes. A value can map to multiple different values, and
it can even be necessary to insert new PHIs.
When a value number is defined by a copy from a value number that
required SSa update, include the live range of the copied value number
in the SSA update as well. It is not necessarily a copy of the original
value number any longer.
llvm-svn: 164329
2012-09-20 23:08:39 +00:00
Eric Christopher
eb7dd83969
Only emit DW_AT_object_pointer if this is a definition.
...
llvm-svn: 164326
2012-09-20 22:51:57 +00:00
Manman Ren
43bb9c6bc6
SimplifyCFG: sink common codes from IF, ELSE blocks down to END block.
...
We already have HoistThenElseCodeToIf, this patch implements
SinkThenElseCodeToEnd. When END block has only two predecessors and each
predecessor terminates with unconditional branches, we compare instructions in
IF and ELSE blocks backwards and check whether we can sink the common
instructions down.
rdar://12191395
llvm-svn: 164325
2012-09-20 22:37:36 +00:00
Evan Cheng
959ad65636
Try to make these tests more portable.
...
llvm-svn: 164320
2012-09-20 21:35:21 +00:00
Benjamin Kramer
83afbbdcc4
Fix broken check lines.
...
llvm-svn: 164317
2012-09-20 19:54:13 +00:00
Andrew Trick
867c22eebd
Fix function names in coding style examples
...
llvm-svn: 164311
2012-09-20 17:02:04 +00:00
Bill Wendling
65a9731d9c
Revert r164308 to fix buildbots.
...
llvm-svn: 164309
2012-09-20 16:59:57 +00:00