Peter Collingbourne [Thu, 27 Oct 2011 19:19:14 +0000 (19:19 +0000)]
Add a pinned metadata name for fpaccuracy, and document it
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143135
91177308-0d34-0410-b5e6-
96231b3b80d8
Peter Collingbourne [Thu, 27 Oct 2011 19:19:07 +0000 (19:19 +0000)]
Document tbaa metadata in LangRef (documentation largely based on
comments at top of TypeBasedAliasAnalysis.cpp).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143134
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Thu, 27 Oct 2011 19:16:21 +0000 (19:16 +0000)]
Reapply commit 143028 with a fix: the problem was casting a ConstantExpr Mul
using BinaryOperator (which only works for instructions) when it should have
been a cast to OverflowingBinaryOperator (which also works for constants).
While there, correct a few other dubious looking uses of BinaryOperator.
Thanks to Chad Rosier for the testcase. Original commit message:
My super-optimizer noticed that we weren't folding this expression to
true: (x *nsw x) sgt 0, where x = (y | 1). This occurs in 464.h264ref.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143125
91177308-0d34-0410-b5e6-
96231b3b80d8
Stepan Dyatkovskiy [Thu, 27 Oct 2011 18:40:45 +0000 (18:40 +0000)]
Fixed llvm-objdump uint64_t formatted output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143120
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Thu, 27 Oct 2011 18:27:45 +0000 (18:27 +0000)]
2>&1 doesn't work here, it just creates an empty file called "&1"
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143117
91177308-0d34-0410-b5e6-
96231b3b80d8
Pete Cooper [Thu, 27 Oct 2011 18:15:58 +0000 (18:15 +0000)]
Changed test to check for correct load size instead of shift as the shift might change if optimised
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143116
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 27 Oct 2011 17:44:01 +0000 (17:44 +0000)]
Trailing whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143113
91177308-0d34-0410-b5e6-
96231b3b80d8
Kevin Enderby [Thu, 27 Oct 2011 17:40:41 +0000 (17:40 +0000)]
Change the sysexit mnemonic (and sysexitl) to never have the REX.W prefix and
not depend on In32BitMode. Use the sysexitq mnemonic for the version with the
REX.W prefix and only allow it only In64BitMode. rdar://
9738584
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143112
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 27 Oct 2011 17:33:59 +0000 (17:33 +0000)]
Thumb2 t2LDMDB[_UPD] assembly parsing to recognize .w suffix.
rdar://
10348844
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143110
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 27 Oct 2011 17:32:36 +0000 (17:32 +0000)]
Expose relocation accessors through the libObject C API.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143109
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 27 Oct 2011 17:16:55 +0000 (17:16 +0000)]
Thumb2 t2MVNi assembly parsing to recognize ".w" suffix.
rdar://
10348584
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143108
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 27 Oct 2011 17:15:47 +0000 (17:15 +0000)]
Add relocation iterators to the libObject C API.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143107
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Thu, 27 Oct 2011 16:38:50 +0000 (16:38 +0000)]
BlockFrequency: Use a smarter overflow check.
This trades one 64 bit div for one 64 bit mul and some arithmetic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143106
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Thu, 27 Oct 2011 15:47:25 +0000 (15:47 +0000)]
Revert Duncan's r143028 expression folding which appears to be the culprit
behind a compile failure on 483.xalancbmk.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143102
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Thu, 27 Oct 2011 14:08:01 +0000 (14:08 +0000)]
LLLexer: Factor hex char parsing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143101
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Thu, 27 Oct 2011 06:44:11 +0000 (06:44 +0000)]
Teach our Dwarf emission to use the string pool.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143097
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Thu, 27 Oct 2011 02:06:39 +0000 (02:06 +0000)]
Don't crash on 128-bit sdiv by constant. Found by inspection.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143095
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Thu, 27 Oct 2011 01:33:51 +0000 (01:33 +0000)]
It is not safe to sink an alloca into a stacksave/stackrestore pair, so don't do that. <rdar://problem/
10352360>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143093
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Thu, 27 Oct 2011 00:21:16 +0000 (00:21 +0000)]
A branch predicated on a constant can just FastEmit an unconditional branch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143086
91177308-0d34-0410-b5e6-
96231b3b80d8
Lang Hames [Wed, 26 Oct 2011 23:50:43 +0000 (23:50 +0000)]
Rename NonScalarIntSafe to something more appropriate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143080
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Wed, 26 Oct 2011 23:34:37 +0000 (23:34 +0000)]
Add a TODO comment. FastISel works by parsing each basic block from the bottom
up. Thus, improving the support for compares is goodness because it increases
the number of terminator instructions we can handle. This creates many more
opportunities for target specific fast-isel.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143079
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Wed, 26 Oct 2011 23:25:44 +0000 (23:25 +0000)]
Factor a little more code into EmitCmp, which should have been done in the first
place. No functional change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143078
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Wed, 26 Oct 2011 23:17:28 +0000 (23:17 +0000)]
Use EmitCmp in SelectBranch. No functional change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143076
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Wed, 26 Oct 2011 22:55:33 +0000 (22:55 +0000)]
Reflow lines, fix comments for doxygen style, fix whitespace. No functionality
change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143074
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 26 Oct 2011 22:55:18 +0000 (22:55 +0000)]
Add include-what-you-use to the External Projects list.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143073
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Wed, 26 Oct 2011 22:47:55 +0000 (22:47 +0000)]
Factor out an EmitCmp function that can be used by both SelectCmp and
SelectBranch. No functional change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143072
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 26 Oct 2011 22:44:41 +0000 (22:44 +0000)]
Trailing whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143071
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 26 Oct 2011 22:22:01 +0000 (22:22 +0000)]
Thumb2 ldr pc-relative encoding fixes.
We were parsing label references to the i12 encoding, which isn't right.
They need to go to the pci variant instead.
More of rdar://
10348687
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143068
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 26 Oct 2011 21:20:26 +0000 (21:20 +0000)]
Run test with -verify-machineinstrs.
Patch by Sanjoy Das.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143066
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 26 Oct 2011 21:16:41 +0000 (21:16 +0000)]
Fixes an issue reported by -verify-machineinstrs.
Patch by Sanjoy Das.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143064
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 26 Oct 2011 21:14:08 +0000 (21:14 +0000)]
ARM parse parenthesized expressions for label references.
Partial fix for rdar://
10348687.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143063
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 26 Oct 2011 21:12:27 +0000 (21:12 +0000)]
This commit introduces two fake instructions MORESTACK_RET and
MORESTACK_RET_RESTORE_R10; which are lowered to a RET and a RET
followed by a MOV respectively. Having a fake instruction prevents
the verifier from seeing a MachineBasicBlock end with a
non-terminator (MOV). It also prevents the rather eccentric case of a
MachineBasicBlock ending with RET but having successors nevertheless.
Patch by Sanjoy Das.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143062
91177308-0d34-0410-b5e6-
96231b3b80d8
Lang Hames [Wed, 26 Oct 2011 20:56:52 +0000 (20:56 +0000)]
Make sure short memsets on ARM lower to stores, even when optimizing for size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143055
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Wed, 26 Oct 2011 20:55:21 +0000 (20:55 +0000)]
The maximum power of 2 dividing a power of 2 is itself. This occurs
in 403.gcc and was spotted by my super-optimizer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143054
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Wed, 26 Oct 2011 20:42:54 +0000 (20:42 +0000)]
Add support for scattered relocations to the MachO relocatation pretty printer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143051
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 26 Oct 2011 18:46:16 +0000 (18:46 +0000)]
Some formatting changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143045
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Wed, 26 Oct 2011 18:44:32 +0000 (18:44 +0000)]
On an ELF system, ".debug_str" is mergeable and contains null terminated strings
composed of one byte characters.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143044
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 26 Oct 2011 18:33:01 +0000 (18:33 +0000)]
Add the blurb about the new exception handling.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143042
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 26 Oct 2011 18:23:06 +0000 (18:23 +0000)]
Add clReflect to the External Projects list.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143041
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 26 Oct 2011 18:20:54 +0000 (18:20 +0000)]
Add LanguageKit and Pragmatic Smalltalk to the External Projects list.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143040
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Wed, 26 Oct 2011 17:28:49 +0000 (17:28 +0000)]
The order of the two symbol listings in a Macho x86_64 subtractor relocation is reversed from what seems intuitive to me.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143035
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 26 Oct 2011 17:28:15 +0000 (17:28 +0000)]
Thumb2 remove redundant ".w" suffix from t2MVNCCi pattern.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143034
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Wed, 26 Oct 2011 17:10:22 +0000 (17:10 +0000)]
Include the full 64 bits of relocation data in the type info for MachO relocations, so that we can recognize scattered relocations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143033
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Wed, 26 Oct 2011 17:08:49 +0000 (17:08 +0000)]
Expand relocation type field to 64 bits. MachO scattered relocations require 33 bits of type info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143032
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Wed, 26 Oct 2011 17:05:20 +0000 (17:05 +0000)]
Improve pretty printing of GOT relocations in MachO on x86_64.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143031
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Wed, 26 Oct 2011 15:31:51 +0000 (15:31 +0000)]
My super-optimizer noticed that we weren't folding this expression to
true: (x *nsw x) sgt 0, where x = (y | 1). This occurs in 464.h264ref.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143028
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Wed, 26 Oct 2011 14:11:18 +0000 (14:11 +0000)]
Simplify SplitVecRes_UnaryOp by removing all the code that is
trying to legalize the operand types when only the result type
is required to be legalized - the type legalization machinery
will get round to the operands later if they need legalizing.
There can be a point to legalizing operands in parallel with
the result: when this saves compile time or results in better
code. There was only one case in which this was true: when
the operand is also split, so keep the logic for that bit.
As a result of this change, additional operand legalization
methods may need to be introduced to handle nodes where the
result and operand types can differ, like SIGN_EXTEND, but
the testsuite doesn't contain any tests where this is the case.
In any case, it seems better to require such methods (and die
with an assert if they doesn't exist) than to quietly produce
wrong code if we forgot to special case the node in
SplitVecRes_UnaryOp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143026
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 26 Oct 2011 09:25:01 +0000 (09:25 +0000)]
Add ThreadSanitizer to the External Projects list.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143024
91177308-0d34-0410-b5e6-
96231b3b80d8
James Molloy [Wed, 26 Oct 2011 08:53:19 +0000 (08:53 +0000)]
Revert r142530 at least temporarily while a discussion is had on llvm-commits regarding exactly how much optsize should optimize for size over performance.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143023
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 26 Oct 2011 07:42:45 +0000 (07:42 +0000)]
Add ZooLib to the External Projects list.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143022
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 26 Oct 2011 07:38:19 +0000 (07:38 +0000)]
Add the Stupid D Compiler to the External Projects list.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143020
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 26 Oct 2011 07:16:18 +0000 (07:16 +0000)]
Use a worklist to prevent the iterator from becoming invalidated because of the 'removeSuccessor' call. Noticed in a Release+Asserts+Check buildbot.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143018
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 26 Oct 2011 04:24:15 +0000 (04:24 +0000)]
Fix grammar.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143012
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Wed, 26 Oct 2011 03:47:16 +0000 (03:47 +0000)]
Remove unused variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143011
91177308-0d34-0410-b5e6-
96231b3b80d8
Charles Davis [Wed, 26 Oct 2011 02:28:32 +0000 (02:28 +0000)]
Revert 142997. It doesn't work on Mac OS or the BSDs, which all use the BSD
version of the install program, which does not have the --strip-program
switch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143009
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Wed, 26 Oct 2011 01:47:48 +0000 (01:47 +0000)]
Don't use floating point to do an integer's job.
This code makes different decisions when compiled into x87 instructions
because of different rounding behavior. That caused phase 2/3
miscompares on 32-bit Linux when the phase 1 compiler was built with gcc
(using x87), and the phase 2 compiler was built with clang (using SSE).
This fixes PR11200.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143006
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 26 Oct 2011 01:26:57 +0000 (01:26 +0000)]
Disable LICM speculation in high register pressure situation again now that Devang has fixed other issues.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143003
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 26 Oct 2011 01:17:44 +0000 (01:17 +0000)]
Revert part of r142530. The patch potentially hurts performance especially
on Darwin platforms where -Os means optimize for size without hurting
performance.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143002
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 26 Oct 2011 01:10:25 +0000 (01:10 +0000)]
Reapply r142920 with fix:
An MBB which branches to an EH landing pad shouldn't be considered for tail merging.
In SjLj EH, the jump to the landing pad is not done explicitly through a branch
statement. The EH landing pad is added as a successor to the throwing
BB. Because of that however, the branch folding pass could mistakenly think that
it could merge the throwing BB with another BB. This isn't safe to do.
<rdar://problem/
10334833>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143001
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Wed, 26 Oct 2011 00:55:23 +0000 (00:55 +0000)]
Add a note about the removal of the atomic intrinsics to the "Major Changes" section of the release notes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142998
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Wed, 26 Oct 2011 00:52:13 +0000 (00:52 +0000)]
Search for and use the strip program and pass it to install for it
to use for stripping final executables.
Patch by Simon Atanasyan!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142997
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Wed, 26 Oct 2011 00:42:12 +0000 (00:42 +0000)]
Handle newer cases for freebsd which is approaching 10.0 and not 1.0.
Patch by Dimitry Andric!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142995
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Wed, 26 Oct 2011 00:36:41 +0000 (00:36 +0000)]
Remove dead atomic intrinsics from LangRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142994
91177308-0d34-0410-b5e6-
96231b3b80d8
Mon P Wang [Wed, 26 Oct 2011 00:34:48 +0000 (00:34 +0000)]
The bitcode reader can create an shuffle with a place holder mask which it will
fix up later. For this special case, allow such a mask to be considered valid.
<rdar://problem/
8622574>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142992
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 26 Oct 2011 00:17:54 +0000 (00:17 +0000)]
Add mention of AddressSanitizer to external OS projects.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142991
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 26 Oct 2011 00:16:17 +0000 (00:16 +0000)]
Add mention of Mono to external OS projects.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142990
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 26 Oct 2011 00:14:36 +0000 (00:14 +0000)]
Add mention of ClamAV to external OS projects.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142989
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 26 Oct 2011 00:12:04 +0000 (00:12 +0000)]
Add mention of Renderscript to external OS projects.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142988
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 26 Oct 2011 00:09:55 +0000 (00:09 +0000)]
Add mention of GHC to external OS projects.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142987
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Tue, 25 Oct 2011 22:45:47 +0000 (22:45 +0000)]
llvm-nm: Use correct format string. Patch by Stepan Dyatkovskiy!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142984
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Tue, 25 Oct 2011 22:31:11 +0000 (22:31 +0000)]
Object/Archive: Cleanup anon namespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142983
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Tue, 25 Oct 2011 22:30:58 +0000 (22:30 +0000)]
Object: change test to create archive.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142982
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Tue, 25 Oct 2011 22:30:42 +0000 (22:30 +0000)]
Object/Archive: Add BSD style long file name support and skip internal members.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142981
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 25 Oct 2011 20:44:00 +0000 (20:44 +0000)]
Remove extraneous printing of "-PC".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142970
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 25 Oct 2011 20:40:26 +0000 (20:40 +0000)]
Add mention of SAFECode to external OS projects.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142966
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 25 Oct 2011 20:39:06 +0000 (20:39 +0000)]
Add mention of Pure to external OS projects.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142965
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 25 Oct 2011 20:37:45 +0000 (20:37 +0000)]
Add mention of Portable OpenCL to external OS projects.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142963
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 25 Oct 2011 20:35:53 +0000 (20:35 +0000)]
Add support for the notion of "hidden" relocations. On MachO, these are relocation entries that are used as additional information for other, real relocations, rather than being relocations themselves.
I'm not familiar enough with ELF or COFF to know if they should have any relocations marked hidden.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142961
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 25 Oct 2011 20:35:31 +0000 (20:35 +0000)]
Add mention of gwScript to external OS projects.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142960
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Tue, 25 Oct 2011 20:34:22 +0000 (20:34 +0000)]
Remove a couple redundant checks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142959
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Tue, 25 Oct 2011 20:33:19 +0000 (20:33 +0000)]
Add a few test cases to ensure the bitcode reader is backward compatible with
LLVM 2.9. My understanding is that we plan to maintain compatibility with 2.9
until the 3.1 release. At that time we can generate new test cases using LLVM
3.0.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142958
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 25 Oct 2011 20:30:48 +0000 (20:30 +0000)]
Make assert() message more informative.
PR11217.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142956
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 25 Oct 2011 20:27:37 +0000 (20:27 +0000)]
Add mention of Tart to external OS projects.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142955
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 25 Oct 2011 20:24:32 +0000 (20:24 +0000)]
Add TTA-based Co-design Environment to external OS projects.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142954
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 25 Oct 2011 20:15:39 +0000 (20:15 +0000)]
Fix off-by-one error when printing relocations inline with disassembly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142952
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Tue, 25 Oct 2011 20:09:31 +0000 (20:09 +0000)]
According to Mips folks, the backend is now generally reliable (they can
compile and use a bunch of stuff using o32 abi). Also the rt-rk.com team
claims that the JIT support they contributed, is complete for the mips
"static" relocation model.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142950
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Tue, 25 Oct 2011 19:59:50 +0000 (19:59 +0000)]
Simplify tests by not piping them through llvm-dis.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142948
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 25 Oct 2011 18:48:41 +0000 (18:48 +0000)]
Teach the MachO relocation pretty-printer to interpret ARM half-relocations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142938
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Tue, 25 Oct 2011 18:13:20 +0000 (18:13 +0000)]
This is the first of several patches for Mips direct object generation.
This first patch is for expression variable kinds.
Patch by Jack Carter!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142934
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Tue, 25 Oct 2011 17:30:47 +0000 (17:30 +0000)]
Corrects previously incorrect $sp change in MipsCompilationCallback.
The address for $sp, and addresses for sdc1/ldc1 must be 8-byte aligned
Patch by Petar Jovanovic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142930
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Tue, 25 Oct 2011 12:30:22 +0000 (12:30 +0000)]
Revert commit 142891. Takumi bisected the tablegen miscompiles
down to this commit. Original commit message:
An MBB which branches to an EH landing pad shouldn't be considered for tail merging.
In SjLj EH, the jump to the landing pad is not done explicitly through a branch
statement. The EH landing pad is added as a successor to the throwing
BB. Because of that however, the branch folding pass could mistakenly think that
it could merge the throwing BB with another BB. This isn't safe to do.
<rdar://problem/
10334833>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142920
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Tue, 25 Oct 2011 12:28:52 +0000 (12:28 +0000)]
Restore commits 142790 and 142843 - they weren't breaking the build
bots. Original commit messages:
- Reapply r142781 with fix. Original message:
Enhance SCEV's brute force loop analysis to handle multiple PHI nodes in the
loop header when computing the trip count.
With this, we now constant evaluate:
struct ListNode { const struct ListNode *next; int i; };
static const struct ListNode node1 = {0, 1};
static const struct ListNode node2 = {&node1, 2};
static const struct ListNode node3 = {&node2, 3};
int test() {
int sum = 0;
for (const struct ListNode *n = &node3; n != 0; n = n->next)
sum += n->i;
return sum;
}
- Now that we look at all the header PHIs, we need to consider all the header PHIs
when deciding that the loop has stopped evolving. Fixes miscompile in the gcc
torture testsuite!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142919
91177308-0d34-0410-b5e6-
96231b3b80d8
Chandler Carruth [Tue, 25 Oct 2011 09:47:41 +0000 (09:47 +0000)]
Fix the API usage in loop probability heuristics. It was incorrectly
classifying many edges as exiting which were in fact not. These mainly
formed edges into sub-loops. It was also not correctly classifying all
returning edges out of loops as leaving the loop. With this match most
of the loop heuristics are more rational.
Several serious regressions on loop-intesive benchmarks like perlbench's
loop tests when built with -enable-block-placement are fixed by these
updated heuristics. Unfortunately they in turn uncover some other
regressions. There are still several improvemenst that should be made to
loop heuristics including trip-count, and early back-edge management.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142917
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Tue, 25 Oct 2011 09:26:43 +0000 (09:26 +0000)]
Speculatively revert commits 142790 and 142843 to see if it fixes
the dragonegg and llvm-gcc self-host buildbots. Original commit
messages:
- Reapply r142781 with fix. Original message:
Enhance SCEV's brute force loop analysis to handle multiple PHI nodes in the
loop header when computing the trip count.
With this, we now constant evaluate:
struct ListNode { const struct ListNode *next; int i; };
static const struct ListNode node1 = {0, 1};
static const struct ListNode node2 = {&node1, 2};
static const struct ListNode node3 = {&node2, 3};
int test() {
int sum = 0;
for (const struct ListNode *n = &node3; n != 0; n = n->next)
sum += n->i;
return sum;
}
- Now that we look at all the header PHIs, we need to consider all the header PHIs
when deciding that the loop has stopped evolving. Fixes miscompile in the gcc
torture testsuite!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142916
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Tue, 25 Oct 2011 07:05:26 +0000 (07:05 +0000)]
Remove dead enum value. There is no DIESectionOffset.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142912
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Tue, 25 Oct 2011 01:22:20 +0000 (01:22 +0000)]
Fix these test cases to not use .bc files. Otherwise, we run into issues with
bitcode reader/writer backward compatibility.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142896
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 25 Oct 2011 01:01:42 +0000 (01:01 +0000)]
Comment out external projects so that they can be refreshed for 3.0.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142893
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Tue, 25 Oct 2011 00:55:35 +0000 (00:55 +0000)]
Remove unused forward decl.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142892
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 25 Oct 2011 00:54:05 +0000 (00:54 +0000)]
An MBB which branches to an EH landing pad shouldn't be considered for tail merging.
In SjLj EH, the jump to the landing pad is not done explicitly through a branch
statement. The EH landing pad is added as a successor to the throwing
BB. Because of that however, the branch folding pass could mistakenly think that
it could merge the throwing BB with another BB. This isn't safe to do.
<rdar://problem/
10334833>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142891
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 25 Oct 2011 00:36:31 +0000 (00:36 +0000)]
Really remove Blackfin from the configure script.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142889
91177308-0d34-0410-b5e6-
96231b3b80d8