Ted Kremenek [Mon, 28 Feb 2011 23:56:33 +0000 (23:56 +0000)]
Unbreak CMake build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126715
91177308-0d34-0410-b5e6-
96231b3b80d8
Talin [Mon, 28 Feb 2011 23:53:27 +0000 (23:53 +0000)]
Add an END_WITH_NULL accessor for ConstantStruct.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126714
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 28 Feb 2011 22:45:25 +0000 (22:45 +0000)]
update cmake
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126694
91177308-0d34-0410-b5e6-
96231b3b80d8
Renato Golin [Mon, 28 Feb 2011 22:04:27 +0000 (22:04 +0000)]
Fix .fpu printing in ARM assembly, regarding bug llvm.org/bugs/show_bug.cgi?id=8931
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126689
91177308-0d34-0410-b5e6-
96231b3b80d8
Kevin Enderby [Mon, 28 Feb 2011 21:45:12 +0000 (21:45 +0000)]
Add missing whitespace in the formatting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126687
91177308-0d34-0410-b5e6-
96231b3b80d8
Jan Sjödin [Mon, 28 Feb 2011 21:45:04 +0000 (21:45 +0000)]
Make all static functions become static class methods. Move shared (duplicated) functions to new MCELF class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126686
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 28 Feb 2011 21:10:10 +0000 (21:10 +0000)]
Use the correct shift amount type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126684
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 28 Feb 2011 20:57:56 +0000 (20:57 +0000)]
Clean whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126683
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 28 Feb 2011 20:50:35 +0000 (20:50 +0000)]
fix a signed comparison warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126682
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 28 Feb 2011 19:58:14 +0000 (19:58 +0000)]
Delete obsolete test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126680
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 28 Feb 2011 19:58:06 +0000 (19:58 +0000)]
Fix warning when building with clang++.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126679
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 28 Feb 2011 19:47:47 +0000 (19:47 +0000)]
Delete the GEPSplitter experiment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126671
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 28 Feb 2011 19:41:14 +0000 (19:41 +0000)]
Delete the SimplifyHalfPowrLibCalls pass, which was unused, and
only existed as the result of a misunderstanding.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126669
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 28 Feb 2011 19:37:59 +0000 (19:37 +0000)]
Delete the LiveValues pass. I won't get get back to the project it
was started for in the foreseeable future.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126668
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Mon, 28 Feb 2011 19:18:59 +0000 (19:18 +0000)]
Fix typo introduced by r126661: "Fix a typo which ..."
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126666
91177308-0d34-0410-b5e6-
96231b3b80d8
David Greene [Mon, 28 Feb 2011 19:06:56 +0000 (19:06 +0000)]
[AVX] Add decode support for VUNPCKLPS/D instructions, both 128-bit
and 256-bit forms. Because the number of elements in a vector
does not determine the vector type (4 elements could be v4f32 or
v4f64), pass the full type of the vector to decode routines.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126664
91177308-0d34-0410-b5e6-
96231b3b80d8
Kevin Enderby [Mon, 28 Feb 2011 18:46:31 +0000 (18:46 +0000)]
Fix the arm's disassembler for blx that was building an MCInst without the
needed two predicate operands before the imm operand.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126662
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 28 Feb 2011 18:45:27 +0000 (18:45 +0000)]
Fix a typo which cause dag combine crash. rdar://
9059537.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126661
91177308-0d34-0410-b5e6-
96231b3b80d8
Stuart Hastings [Mon, 28 Feb 2011 17:17:53 +0000 (17:17 +0000)]
Support for byval parameters on ARM. Will be enabled by a forthcoming
patch to the front-end. Radar
7662569.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126655
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Mon, 28 Feb 2011 14:22:08 +0000 (14:22 +0000)]
Windows codegen also dies on this, so restrict to the platform it was
actually tested on.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126652
91177308-0d34-0410-b5e6-
96231b3b80d8
Kalle Raiskila [Mon, 28 Feb 2011 14:08:24 +0000 (14:08 +0000)]
Add branch hinting for SPU.
The implemented algorithm is overly simplistic (just speculate all branches are
taken)- this is work in progress.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126651
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Mon, 28 Feb 2011 12:30:47 +0000 (12:30 +0000)]
Make this test x86 specific because the ARM backend can't handle it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126650
91177308-0d34-0410-b5e6-
96231b3b80d8
Frits van Bommel [Mon, 28 Feb 2011 09:44:07 +0000 (09:44 +0000)]
Teach SimplifyCFG that (switch (select cond, X, Y)) is better expressed as a branch.
Based on a patch by Alistair Lynn.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126647
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Mon, 28 Feb 2011 09:18:11 +0000 (09:18 +0000)]
Fix comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126645
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Mon, 28 Feb 2011 09:17:39 +0000 (09:17 +0000)]
srem doesn't actually have the same resulting sign as its numerator, you could
also have a zero when numerator = denominator. Reverts parts of r126635 and
r126637.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126644
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Mon, 28 Feb 2011 08:31:40 +0000 (08:31 +0000)]
Teach InstCombine to fold "(shr exact X, Y) == 0" --> X == 0, fixing #1 from
PR9343.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126643
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Mon, 28 Feb 2011 08:02:21 +0000 (08:02 +0000)]
Teach value tracking to make use of flags in more situations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126642
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Mon, 28 Feb 2011 06:52:12 +0000 (06:52 +0000)]
Teach ValueTracking to look at the dividend when determining the sign bit of an
srem instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126637
91177308-0d34-0410-b5e6-
96231b3b80d8
Che-Liang Chiou [Mon, 28 Feb 2011 06:34:09 +0000 (06:34 +0000)]
Add preliminary support for .f32 in the PTX backend.
- Add appropriate TableGen patterns for fadd, fsub, fmul.
- Add .f32 as the PTX type for the LLVM float type.
- Allow parameters, return values, and global variable declarations
to accept the float type.
- Add appropriate test cases.
Patch by Justin Holewinski
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126636
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Mon, 28 Feb 2011 06:20:05 +0000 (06:20 +0000)]
The sign of an srem instruction is the sign of its dividend (the first
argument), regardless of the divisor. Teach instcombine about this and fix
test7 in PR9343!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126635
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Mon, 28 Feb 2011 05:18:07 +0000 (05:18 +0000)]
Don't install libUnitTestMain.a. It might be useless without gtest headers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126632
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 28 Feb 2011 01:10:44 +0000 (01:10 +0000)]
Update the documentation on "How to Release LLVM". It lays out a new way of
tagging and branching for the release. I will update this more throughout the
2.9 release process.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126604
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 27 Feb 2011 22:51:57 +0000 (22:51 +0000)]
add the ability to walk the scope tree and insert at not-the-current
scope.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126591
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 27 Feb 2011 22:51:37 +0000 (22:51 +0000)]
add a data() method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126590
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Sun, 27 Feb 2011 20:30:22 +0000 (20:30 +0000)]
Gold now rescans archives as needed, so the pass-through options are not
necessary anymore.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126580
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Sun, 27 Feb 2011 20:15:37 +0000 (20:15 +0000)]
bfd was fixed, remove the work around.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126579
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Sun, 27 Feb 2011 18:13:53 +0000 (18:13 +0000)]
Silence enum conversion warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126578
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Sun, 27 Feb 2011 14:41:27 +0000 (14:41 +0000)]
Legalize support for fpextend of vector. PR9309.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126574
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Sun, 27 Feb 2011 13:54:01 +0000 (13:54 +0000)]
Fix typo pointed out in pr9339.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126573
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Sun, 27 Feb 2011 13:32:50 +0000 (13:32 +0000)]
Install include/llvm/Support/LICENSE.TXT. PR9321.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126571
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Sun, 27 Feb 2011 08:47:19 +0000 (08:47 +0000)]
Target/X86: Always emit "push/pop GPRs" in prologue/epilogue and emit "spill/reload frames" for XMMs.
It improves Win64's prologue/epilogue but it would not affect ia32 and amd64 (lack of nonvolatile XMMs).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126568
91177308-0d34-0410-b5e6-
96231b3b80d8
Cameron Zwarich [Sun, 27 Feb 2011 08:06:01 +0000 (08:06 +0000)]
Fix PR9324 / <rdar://problem/
9052489> by handling the case where a PHI has no uses.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126567
91177308-0d34-0410-b5e6-
96231b3b80d8
Cameron Zwarich [Sun, 27 Feb 2011 08:05:57 +0000 (08:05 +0000)]
Give a test file a more sensible name so that it can hold more test cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126566
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Sun, 27 Feb 2011 07:40:43 +0000 (07:40 +0000)]
Fix typos in the comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126565
91177308-0d34-0410-b5e6-
96231b3b80d8
Tobias Grosser [Sun, 27 Feb 2011 04:11:07 +0000 (04:11 +0000)]
RegionPrinter: Ignore back edges when layouting the graph
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126564
91177308-0d34-0410-b5e6-
96231b3b80d8
Tobias Grosser [Sun, 27 Feb 2011 04:11:05 +0000 (04:11 +0000)]
cmake: Add xdot.py support as it already exists in autoconf.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126563
91177308-0d34-0410-b5e6-
96231b3b80d8
Tobias Grosser [Sun, 27 Feb 2011 04:11:03 +0000 (04:11 +0000)]
Pass the graph to the DOTGraphTraits.getEdgeAttributes().
This follows the interface of getNodeAttributes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126562
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sat, 26 Feb 2011 23:17:12 +0000 (23:17 +0000)]
Support: Add llvm::AreStatisticsEnabled().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126558
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Sat, 26 Feb 2011 22:48:07 +0000 (22:48 +0000)]
Add some DAGCombines for (adde 0, 0, glue), which are useful to optimize legalized code for large integer arithmetic.
1. Inform users of ADDEs with two 0 operands that it never sets carry
2. Fold other ADDs or ADDCs into the ADDE if possible
It would be neat if we could do the same thing for SETCC+ADD eventually, but we can't do that in target independent code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126557
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Sat, 26 Feb 2011 16:44:13 +0000 (16:44 +0000)]
LTO uses MC now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126546
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Sat, 26 Feb 2011 03:09:12 +0000 (03:09 +0000)]
A new TableGen feature! (Not turned on just yet.)
InstAlias<{alias}, {aliasee}>;
The InstAlias instruction should be able to go from the MCInst to the
{alias}. All of the information is there to match the MCInst with the
{aliasee}. From there, it's a simple matter to emit the {alias}, with the
correct operands from the {aliasee}.
The code this patch generates can be used by the InstPrinter to automatically
print out the alias without having to write special C++ code to handle the
situation.
This is a WIP, and therefore are several limitations. For instance, it cannot
handle AsmOperands at the moment. It also doesn't know what to do when two
{alias}es match the same {aliasee}. (Currently, it just ignores those two cases
and allows the printInstruction method to handle them.)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126538
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Sat, 26 Feb 2011 00:22:17 +0000 (00:22 +0000)]
Removed unnecessary dylibs from Apple builds, with or without "lib" prefix.
Radar
9056686
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126534
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Fri, 25 Feb 2011 23:42:03 +0000 (23:42 +0000)]
Add a new "Embedded" makefile target for Apple-style builds.
This one just installs the default build into a different destination directory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126533
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Fri, 25 Feb 2011 22:53:20 +0000 (22:53 +0000)]
Trailing whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126526
91177308-0d34-0410-b5e6-
96231b3b80d8
Stuart Hastings [Fri, 25 Feb 2011 22:47:58 +0000 (22:47 +0000)]
Fix bad comment marker.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126525
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Fri, 25 Feb 2011 21:41:48 +0000 (21:41 +0000)]
Allow targets to specify a the type of the RHS of a shift parameterized on the type of the LHS.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126518
91177308-0d34-0410-b5e6-
96231b3b80d8
David Greene [Fri, 25 Feb 2011 20:51:27 +0000 (20:51 +0000)]
Add some options for building LLVM in different environments:
--force-configure to force running configure before building.
--extra-llvm-config-flags
--extra-llvm-gcc-config-flags
--extra-gcc-config-flags
Pass additional argument to the various configure invocations.
This also eliminates a default build flavor because explicitly
specifying builds could result in build flavors being run repeatedly.
Finally, turn off fortran builds for the moment because install
appears to be broken.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126510
91177308-0d34-0410-b5e6-
96231b3b80d8
Stuart Hastings [Fri, 25 Feb 2011 20:42:39 +0000 (20:42 +0000)]
Omit lto.h from the llvmCore result; henceforth, this will be supplied
by clang. Radar
9042056.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126507
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Feb 2011 19:06:35 +0000 (19:06 +0000)]
split this test into arch specific pieces, so the ARM
test isn't run when the arm backend isn't built. This
fixes PR9327
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126500
91177308-0d34-0410-b5e6-
96231b3b80d8
Cameron Zwarich [Fri, 25 Feb 2011 16:30:32 +0000 (16:30 +0000)]
Roll out r126425 and r126450 to see if it fixes the failures on the buildbots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126488
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Fri, 25 Feb 2011 10:33:33 +0000 (10:33 +0000)]
Revert "SimplifyCFG: GEPs with just one non-constant index are also cheap."
Yes, there are other types than i8* and GEPs on them can produce an add+multiply.
We don't consider that cheap enough to be speculatively executed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126481
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Fri, 25 Feb 2011 07:13:35 +0000 (07:13 +0000)]
Update the NoFolder to work with current IRBuilder.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126479
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Fri, 25 Feb 2011 06:42:42 +0000 (06:42 +0000)]
Add patterns to use post-increment addressing for Neon VST1-lane instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126477
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Fri, 25 Feb 2011 03:59:03 +0000 (03:59 +0000)]
Fix formatting of debug helper string.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126471
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 25 Feb 2011 01:29:29 +0000 (01:29 +0000)]
Fix typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126467
91177308-0d34-0410-b5e6-
96231b3b80d8
Cameron Zwarich [Fri, 25 Feb 2011 01:11:01 +0000 (01:11 +0000)]
Set NumSignBits to 1 if KnownZero/KnownOne are being zero extended. In theory it
is possible to do better if the high bit is set in either KnownZero/KnownOne, but
in practice NumSignBits is always 1 when we are zero extending because nothing
is known about that register.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126465
91177308-0d34-0410-b5e6-
96231b3b80d8
Cameron Zwarich [Fri, 25 Feb 2011 01:10:55 +0000 (01:10 +0000)]
We only want to zero extend the existing information if the bit width is
actually larger.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126464
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Fri, 25 Feb 2011 01:04:22 +0000 (01:04 +0000)]
Try harder to get the hint by preferring to evict hint interference.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126463
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 25 Feb 2011 00:24:46 +0000 (00:24 +0000)]
Each prologue may have multiple vpush instructions to store callee-saved
D registers since the vpush list may not have gaps. Make sure the stack
adjustment instruction isn't moved between them. Ditto for vpop in
epilogues.
Sorry, can't reduce a small test case.
rdar://
9043312
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126457
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Thu, 24 Feb 2011 23:26:09 +0000 (23:26 +0000)]
SimplifyCFG: GEPs with just one non-constant index are also cheap.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126452
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Thu, 24 Feb 2011 23:21:36 +0000 (23:21 +0000)]
Tweak the register allocator priority queue some more.
New live ranges are assigned in long -> short order, but live ranges that have
been evicted at least once are deferred and assigned in short -> long order.
Also disable splitting and spilling for live ranges seen for the first time.
The intention is to create a realistic interference pattern from the heavy live
ranges before starting splitting and spilling around it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126451
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Thu, 24 Feb 2011 23:15:43 +0000 (23:15 +0000)]
Remove dead variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126450
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Thu, 24 Feb 2011 22:46:11 +0000 (22:46 +0000)]
SimplifyCFG: GEPs with constant indices are cheap enough to be executed unconditionally.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126445
91177308-0d34-0410-b5e6-
96231b3b80d8
Joerg Sonnenberger [Thu, 24 Feb 2011 21:59:22 +0000 (21:59 +0000)]
Restore r125595 (reverted in r126336) with modifications:
Introduce a variable in the AsmParserExtension whether [] is valid in an
expression. If it is true, parse them like (). Enable this for ELF only.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126443
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 24 Feb 2011 21:53:03 +0000 (21:53 +0000)]
remove command line option debugging hook.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126441
91177308-0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Thu, 24 Feb 2011 21:33:49 +0000 (21:33 +0000)]
In utils/TableGen/ClangSACheckersEmitter.cpp, set the 'Hidden' bit for checkers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126436
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 24 Feb 2011 21:04:06 +0000 (21:04 +0000)]
Switch LTO to use MC. This takes the linking of libxul.so from about 7m to
6m30.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126426
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 24 Feb 2011 21:04:00 +0000 (21:04 +0000)]
Enable DebugInfo support for COFF object files.
Patch by Nathan Jeffords!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126425
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Thu, 24 Feb 2011 21:01:34 +0000 (21:01 +0000)]
Enable support for vector sext and trunc:
Limit the folding of any_ext and sext into the load operation to scalars.
Limit the active-bits trunc optimization to scalars.
Document vector trunc and vector sext in LangRef.
Similar to commit 126080 (for enabling zext).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126424
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 24 Feb 2011 20:18:01 +0000 (20:18 +0000)]
Fix llvm-gcc bootstrap with gnu ld.
The problem was codegen guessing the wrong values and printing
.section .eh_frame,"aMS",@progbits,4
It is not clear at all if Codegen should try to guess, MC is the
one that should know the default flags.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126421
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 24 Feb 2011 19:09:52 +0000 (19:09 +0000)]
Remove obsolete tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126402
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 24 Feb 2011 19:06:27 +0000 (19:06 +0000)]
Move arch specific tests in arch specific directories.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126401
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 24 Feb 2011 18:59:38 +0000 (18:59 +0000)]
fit in 80 cols.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126399
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 24 Feb 2011 18:49:55 +0000 (18:49 +0000)]
Do not use DIFactory. Use DIBuilder.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126398
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 24 Feb 2011 18:49:30 +0000 (18:49 +0000)]
Do not use DIFactory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126397
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Osborne [Thu, 24 Feb 2011 13:39:18 +0000 (13:39 +0000)]
Add XCore intrinsic for eeu instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126384
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Thu, 24 Feb 2011 12:34:34 +0000 (12:34 +0000)]
test/lit.cfg: Add PATHEXT to 'substitution', to recognize tools on Windows hosts. Thanks to Danil Malyshev!
Some tests on Windows use the "not" utility and fail with an error "program not executable". The reason for this error is that the name of the executable file sended to the "not" without the extension.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126383
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Thu, 24 Feb 2011 11:54:18 +0000 (11:54 +0000)]
Rewrite the vector part of getExtendedTypeAction to make it more
understandable (at least I find it easier to understand like this).
No intended functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126382
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Thu, 24 Feb 2011 11:03:19 +0000 (11:03 +0000)]
Plug some leaks in edis.
- Don't leak parsed operands during tokenization.
- Don't leak printed insts in llvm-mc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126381
91177308-0d34-0410-b5e6-
96231b3b80d8
Cameron Zwarich [Thu, 24 Feb 2011 10:00:25 +0000 (10:00 +0000)]
Merge information about the number of zero, one, and sign bits of live-out
registers at phis. This enables us to eliminate a lot of pointless zexts during
the DAGCombine phase. This fixes <rdar://problem/
8760114>.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126380
91177308-0d34-0410-b5e6-
96231b3b80d8
Cameron Zwarich [Thu, 24 Feb 2011 10:00:20 +0000 (10:00 +0000)]
Add a getNumSignBits() method to APInt.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126379
91177308-0d34-0410-b5e6-
96231b3b80d8
Cameron Zwarich [Thu, 24 Feb 2011 10:00:16 +0000 (10:00 +0000)]
Add a mechanism for invalidating the LiveOutInfo of a PHI, and use it whenever
a block is visited before all of its predecessors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126378
91177308-0d34-0410-b5e6-
96231b3b80d8
Cameron Zwarich [Thu, 24 Feb 2011 10:00:13 +0000 (10:00 +0000)]
Track blocks visited in reverse postorder.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126377
91177308-0d34-0410-b5e6-
96231b3b80d8
Cameron Zwarich [Thu, 24 Feb 2011 10:00:08 +0000 (10:00 +0000)]
Refactor the LiveOutInfo interface into a few methods on FunctionLoweringInfo
and make the actual map private.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126376
91177308-0d34-0410-b5e6-
96231b3b80d8
Cameron Zwarich [Thu, 24 Feb 2011 10:00:04 +0000 (10:00 +0000)]
Have isel visit blocks in reverse postorder rather than an undefined order. This
allows for the information propagated across basic blocks to be merged at phis.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126375
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 24 Feb 2011 07:16:14 +0000 (07:16 +0000)]
wire TargetLibraryInfo into simplify libcalls and use it in a couple of
trivial places. This pass needs a lot of work.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126367
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 24 Feb 2011 07:12:12 +0000 (07:12 +0000)]
move a massive amount of code out into its own helper function
to reduce nesting. This needs to be turned into a table.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126366
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 24 Feb 2011 05:10:56 +0000 (05:10 +0000)]
change instcombine to not turn a call to non-varargs bitcast of
function prototype into a call to a varargs prototype. We do
allow the xform if we have a definition, but otherwise we don't
want to risk that we're changing the abi in a subtle way. On
X86-64, for example, varargs require passing stuff in %al.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126363
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 24 Feb 2011 02:36:52 +0000 (02:36 +0000)]
Fix bug in X86 folding / unfolding table. Int_CMPSDrm and Int_CMPSSrm memory
operands starts at index 2, not 1.
rdar://
9045024
PR9305
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126359
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Thu, 24 Feb 2011 01:07:55 +0000 (01:07 +0000)]
Use the same spill slot for all live ranges that descend form the same original
register.
This avoids some silly stack slot shuffling when both sides of a copy get
spilled.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126353
91177308-0d34-0410-b5e6-
96231b3b80d8