oota-llvm.git
13 years agomerge two tests
Chris Lattner [Mon, 13 Dec 2010 04:45:56 +0000 (04:45 +0000)]
merge two tests

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121679 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agomerge two very similar functions into one that has a bool argument.
Chris Lattner [Mon, 13 Dec 2010 04:26:26 +0000 (04:26 +0000)]
merge two very similar functions into one that has a bool argument.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121678 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoDisable auto-detection of AVX support since AVX codegen support is not ready.
Evan Cheng [Mon, 13 Dec 2010 04:23:53 +0000 (04:23 +0000)]
Disable auto-detection of AVX support since AVX codegen support is not ready.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121677 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agodon't bother handling non-canonical icmp's
Chris Lattner [Mon, 13 Dec 2010 04:18:32 +0000 (04:18 +0000)]
don't bother handling non-canonical icmp's

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121676 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoinline a function, making the result much simpler.
Chris Lattner [Mon, 13 Dec 2010 04:15:19 +0000 (04:15 +0000)]
inline a function, making the result much simpler.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121675 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoFix my previous patch to handle a degenerate case that the llvm-gcc
Chris Lattner [Mon, 13 Dec 2010 03:43:57 +0000 (03:43 +0000)]
Fix my previous patch to handle a degenerate case that the llvm-gcc
bootstrap buildbot tripped over.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121674 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoconvert some methods to be static functions
Chris Lattner [Mon, 13 Dec 2010 03:30:12 +0000 (03:30 +0000)]
convert some methods to be static functions

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121673 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agozap two more std::sorts.
Chris Lattner [Mon, 13 Dec 2010 03:24:30 +0000 (03:24 +0000)]
zap two more std::sorts.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121672 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agofix a fairly serious oversight with switch formation from
Chris Lattner [Mon, 13 Dec 2010 03:18:54 +0000 (03:18 +0000)]
fix a fairly serious oversight with switch formation from
or'd conditions.  Previously we'd compile something like this:

int crud (unsigned char c) {
   return c == 62 || c == 34 || c == 92;
}

into:

  switch i8 %c, label %lor.rhs [
    i8 62, label %lor.end
    i8 34, label %lor.end
  ]

lor.rhs:                                          ; preds = %entry
  %cmp8 = icmp eq i8 %c, 92
  br label %lor.end

lor.end:                                          ; preds = %entry, %entry, %lor.rhs
  %0 = phi i1 [ true, %entry ], [ %cmp8, %lor.rhs ], [ true, %entry ]
  %lor.ext = zext i1 %0 to i32
  ret i32 %lor.ext

which failed to merge the compare-with-92 into the switch.  With this patch
we simplify this all the way to:

  switch i8 %c, label %lor.rhs [
    i8 62, label %lor.end
    i8 34, label %lor.end
    i8 92, label %lor.end
  ]

lor.rhs:                                          ; preds = %entry
  br label %lor.end

lor.end:                                          ; preds = %entry, %entry, %entry, %lor.rhs
  %0 = phi i1 [ true, %entry ], [ false, %lor.rhs ], [ true, %entry ], [ true, %entry ]
  %lor.ext = zext i1 %0 to i32
  ret i32 %lor.ext

which is much better for codegen's switch lowering stuff.  This kicks in 33 times
on 176.gcc (for example) cutting 103 instructions off the generated code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121671 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agosimplify code and reduce indentation
Chris Lattner [Mon, 13 Dec 2010 02:38:13 +0000 (02:38 +0000)]
simplify code and reduce indentation

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121670 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoconvert an std::sort to array_pod_sort.
Chris Lattner [Mon, 13 Dec 2010 02:00:58 +0000 (02:00 +0000)]
convert an std::sort to array_pod_sort.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121669 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agomove the "br (X == 0 | X == 1), T, F" -> switch optimization to a new
Chris Lattner [Mon, 13 Dec 2010 01:57:34 +0000 (01:57 +0000)]
move the "br (X == 0 | X == 1), T, F" -> switch optimization to a new
location in simplifycfg.  In the old days, SimplifyCFG was never run on
the entry block, so we had to scan over all preds of the BB passed into
simplifycfg to do this xform, now we can just check blocks ending with
a condbranch.  This avoids a scan over all preds of every simplified
block, which should be a significant compile-time perf win on functions
with lots of edges.  No functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121668 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoreduce indentation and generally simplify code, no functionality change.
Chris Lattner [Mon, 13 Dec 2010 01:47:07 +0000 (01:47 +0000)]
reduce indentation and generally simplify code, no functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121667 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAdd support for using the `!if' operator when initializing variables:
Bill Wendling [Mon, 13 Dec 2010 01:46:19 +0000 (01:46 +0000)]
Add support for using the `!if' operator when initializing variables:

  class A<bit a, bits<3> x, bits<3> y> {
    bits<3> z;
    let z = !if(a, x, y);
  }

The variable z will get the value of x when 'a' is 1 and 'y' when a is '0'.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121666 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agouse getFirstNonPHIOrDbg to simplify this code.
Chris Lattner [Mon, 13 Dec 2010 01:28:06 +0000 (01:28 +0000)]
use getFirstNonPHIOrDbg to simplify this code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121664 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoreduce indentation by using continue, no functionality change.
Chris Lattner [Mon, 13 Dec 2010 01:11:17 +0000 (01:11 +0000)]
reduce indentation by using continue, no functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121662 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoMove <map> include out of .h and into .cpp.
Bill Wendling [Mon, 13 Dec 2010 01:05:54 +0000 (01:05 +0000)]
Move <map> include out of .h and into .cpp.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121661 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoMerge DEBUG statements.
Bill Wendling [Mon, 13 Dec 2010 01:03:49 +0000 (01:03 +0000)]
Merge DEBUG statements.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121660 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoeliminate the Records global variable, patch by Garrison Venn!
Chris Lattner [Mon, 13 Dec 2010 00:23:57 +0000 (00:23 +0000)]
eliminate the Records global variable, patch by Garrison Venn!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121659 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoclean up RecordKeeper::getAllDerivedDefinitions, patch by Garrison Venn!
Chris Lattner [Mon, 13 Dec 2010 00:20:52 +0000 (00:20 +0000)]
clean up RecordKeeper::getAllDerivedDefinitions, patch by Garrison Venn!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121658 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agofurther fixes.
Chris Lattner [Mon, 13 Dec 2010 00:17:12 +0000 (00:17 +0000)]
further fixes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121657 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoadd a note
Chris Lattner [Mon, 13 Dec 2010 00:15:25 +0000 (00:15 +0000)]
add a note

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121656 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoMissed some ADDI <-> ADDIK conversions in 121649.
Wesley Peck [Sun, 12 Dec 2010 22:53:14 +0000 (22:53 +0000)]
Missed some ADDI <-> ADDIK conversions in 121649.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121652 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoReverting commit to LLVMLibDeps that was inadvertently done in 121649.
Wesley Peck [Sun, 12 Dec 2010 22:28:51 +0000 (22:28 +0000)]
Reverting commit to LLVMLibDeps that was inadvertently done in 121649.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121651 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoMBlaze delay slot filler was not capable of using ADDK and variants to fill delay...
Wesley Peck [Sun, 12 Dec 2010 22:22:49 +0000 (22:22 +0000)]
MBlaze delay slot filler was not capable of using ADDK and variants to fill delay slots. This broke several test cases when 121649 was committed. This fixes the regression.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121650 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoThe ADD and ADDK (and all variants) instructions where flip-flopped in the MBlaze...
Wesley Peck [Sun, 12 Dec 2010 22:02:31 +0000 (22:02 +0000)]
The ADD and ADDK (and all variants) instructions where flip-flopped in the MBlaze backend. This bug fix makes 64-bit math work on the MBlaze backend.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121649 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoRemove useless dynamic_cast<>().
Tobias Grosser [Sun, 12 Dec 2010 21:58:28 +0000 (21:58 +0000)]
Remove useless dynamic_cast<>().

Thanks Peter for pointing me to something that should have never been
committed to the llvm code base.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121648 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoRegen configure
Peter Collingbourne [Sun, 12 Dec 2010 21:42:01 +0000 (21:42 +0000)]
Regen configure

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121646 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoFix paths; AutoRegen.sh changes its current working directory to be the
Peter Collingbourne [Sun, 12 Dec 2010 21:41:56 +0000 (21:41 +0000)]
Fix paths; AutoRegen.sh changes its current working directory to be the
autoconf directory, but these paths need to be relative to the main
source directory.  Patch originally by Dan Gohman, r67655.

Also, cause configure.ac to find absolute paths to LLVM source and
object trees.   Together, fixes PR1220.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121645 91177308-0d34-0410-b5e6-96231b3b80d8

13 years ago1. Change MBlaze indirect branches to use absolute branch BRALD instead of pc relativ...
Wesley Peck [Sun, 12 Dec 2010 20:52:31 +0000 (20:52 +0000)]
1. Change MBlaze indirect branches to use absolute branch BRALD instead of pc relative branch BRLD.
2. Make sure that the MBlaze stack is aligned to 4-byte boundaries.
3. Determine frame indexes that should be placed in the callers stack frame, as per the MBlaze ABI, and place them in the correct locations.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121639 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoCatch attempts to remove a deleted node from the CSE maps. Better to
Duncan Sands [Sun, 12 Dec 2010 13:22:50 +0000 (13:22 +0000)]
Catch attempts to remove a deleted node from the CSE maps.  Better to
catch this here rather than later after accessing uninitialized memory
etc.  Fires when compiling the testcase in PR8237.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121635 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agofix typo
Chris Lattner [Sun, 12 Dec 2010 02:42:57 +0000 (02:42 +0000)]
fix typo

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121620 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoGeneralize the and-icmp-select instcombine further by allowing selects of the form
Benjamin Kramer [Sat, 11 Dec 2010 10:49:22 +0000 (10:49 +0000)]
Generalize the and-icmp-select instcombine further by allowing selects of the form

(x & 2^n) ? 2^m+C : C

we can offset both arms by C to get the "(x & 2^n) ? 2^m : 0" form, optimize the
select to a shift and apply the offset afterwards.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121609 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoFactor the (x & 2^n) ? 2^m : 0 instcombine into its own method and generalize it
Benjamin Kramer [Sat, 11 Dec 2010 09:42:59 +0000 (09:42 +0000)]
Factor the (x & 2^n) ? 2^m : 0 instcombine into its own method and generalize it
to catch cases where n != m with a shift.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121608 91177308-0d34-0410-b5e6-96231b3b80d8

13 years ago(or (and (shl A, #shamt), mask), B) => ARMbfi B, A, ~mask where lsb(mask) == #shamt...
Evan Cheng [Sat, 11 Dec 2010 04:11:38 +0000 (04:11 +0000)]
(or (and (shl A, #shamt), mask), B) => ARMbfi B, A, ~mask where lsb(mask) == #shamt. rdar://8752056

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121606 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAdd named timer groups for the different stages of register allocation.
Jakob Stoklund Olesen [Sat, 11 Dec 2010 00:19:56 +0000 (00:19 +0000)]
Add named timer groups for the different stages of register allocation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121604 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoMove MRI into RegAllocBase. Clean up debug output a bit.
Jakob Stoklund Olesen [Fri, 10 Dec 2010 23:49:00 +0000 (23:49 +0000)]
Move MRI into RegAllocBase. Clean up debug output a bit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121599 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAdd FIXME
Jim Grosbach [Fri, 10 Dec 2010 23:41:10 +0000 (23:41 +0000)]
Add FIXME

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121598 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoRemove extraneous close parenthesis.
Nick Lewycky [Fri, 10 Dec 2010 23:14:35 +0000 (23:14 +0000)]
Remove extraneous close parenthesis.
Fix build breakage.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121596 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoMove variable that's unused in an NDEBUG build inside the DEBUG() macro, fixing
Nick Lewycky [Fri, 10 Dec 2010 23:05:10 +0000 (23:05 +0000)]
Move variable that's unused in an NDEBUG build inside the DEBUG() macro, fixing
lib/CodeGen/RegAllocGreedy.cpp:233: error: unused variable 'TRC' [-Wunused-variable]

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121594 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAttempt to get Thumb2 branch fixups working properly.
Owen Anderson [Fri, 10 Dec 2010 23:02:28 +0000 (23:02 +0000)]
Attempt to get Thumb2 branch fixups working properly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121593 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoForce the greedy register allocator to always use the inline spiller.
Jakob Stoklund Olesen [Fri, 10 Dec 2010 22:54:44 +0000 (22:54 +0000)]
Force the greedy register allocator to always use the inline spiller.

Soon, RegAllocGreedy will start splitting live ranges, and then deferred
spilling won't work anyway.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121591 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoRip out live range splitting support from the inline spiller.
Jakob Stoklund Olesen [Fri, 10 Dec 2010 22:54:40 +0000 (22:54 +0000)]
Rip out live range splitting support from the inline spiller.

The spiller should only spill. The register allocator will drive live range
splitting, it has the needed information about register pressure and
interferences.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121590 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoGet rid of ellipses.
Bill Wendling [Fri, 10 Dec 2010 22:54:30 +0000 (22:54 +0000)]
Get rid of ellipses.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121589 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoFix merge error in my last fix to Thumb2 vldr fixups.
Owen Anderson [Fri, 10 Dec 2010 22:53:48 +0000 (22:53 +0000)]
Fix merge error in my last fix to Thumb2 vldr fixups.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121588 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoFixups for Thumb2 vldr's need to have the effective PC aligned as well.
Owen Anderson [Fri, 10 Dec 2010 22:46:47 +0000 (22:46 +0000)]
Fixups for Thumb2 vldr's need to have the effective PC aligned as well.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121587 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoThe MCFixupKindInfo table needs to be in the order that the enums were
Bill Wendling [Fri, 10 Dec 2010 22:37:19 +0000 (22:37 +0000)]
The MCFixupKindInfo table needs to be in the order that the enums were
declared. Add a note specifying this and spruce up the list a bit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121586 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoProvide the necessary post-encoder hook for Thumb2 encodings of VMOV and friends.
Owen Anderson [Fri, 10 Dec 2010 22:32:08 +0000 (22:32 +0000)]
Provide the necessary post-encoder hook for Thumb2 encodings of VMOV and friends.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121585 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoUse AllocationOrder in RegAllocGreedy, fix a bug in the hint calculation.
Jakob Stoklund Olesen [Fri, 10 Dec 2010 22:21:05 +0000 (22:21 +0000)]
Use AllocationOrder in RegAllocGreedy, fix a bug in the hint calculation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121584 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAdd float patterns for Neon vld1-lane/dup and vst1-lane operations.
Bob Wilson [Fri, 10 Dec 2010 22:13:32 +0000 (22:13 +0000)]
Add float patterns for Neon vld1-lane/dup and vst1-lane operations.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121583 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoRemove unused arguments.
Bob Wilson [Fri, 10 Dec 2010 22:13:24 +0000 (22:13 +0000)]
Remove unused arguments.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121582 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoFix encoding of Thumb1 LDRB and STRB.
Owen Anderson [Fri, 10 Dec 2010 22:11:13 +0000 (22:11 +0000)]
Fix encoding of Thumb1 LDRB and STRB.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121581 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoTrailing whitespace.
Jim Grosbach [Fri, 10 Dec 2010 21:57:34 +0000 (21:57 +0000)]
Trailing whitespace.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121580 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoFix Thumb2 encodings of STREX and LDREX.
Owen Anderson [Fri, 10 Dec 2010 21:52:38 +0000 (21:52 +0000)]
Fix Thumb2 encodings of STREX and LDREX.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121579 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoRevert r121520, which may have introduced miscompilations.
Dan Gohman [Fri, 10 Dec 2010 21:48:28 +0000 (21:48 +0000)]
Revert r121520, which may have introduced miscompilations.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121573 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoCorrect encoding of rotation immediate for Thumb2 instructions. rdar://8755999
Jim Grosbach [Fri, 10 Dec 2010 21:24:18 +0000 (21:24 +0000)]
Correct encoding of rotation immediate for Thumb2 instructions. rdar://8755999

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121525 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoFix encoding of 'U' bit for Thumb2 STRD/LDRD instructions. rdar://8755726
Jim Grosbach [Fri, 10 Dec 2010 21:05:07 +0000 (21:05 +0000)]
Fix encoding of 'U' bit for Thumb2 STRD/LDRD instructions. rdar://8755726

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121524 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoMore trivial cleanup. No need to define the EncoderMethod property type. Can
Jim Grosbach [Fri, 10 Dec 2010 20:53:44 +0000 (20:53 +0000)]
More trivial cleanup. No need to define the EncoderMethod property type. Can
just assign to it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121523 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoTidy up.
Jim Grosbach [Fri, 10 Dec 2010 20:51:35 +0000 (20:51 +0000)]
Tidy up.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121522 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoTrailing whitespace.
Jim Grosbach [Fri, 10 Dec 2010 20:47:29 +0000 (20:47 +0000)]
Trailing whitespace.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121521 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoImplement PartialAlias checking in BasicAA.
Dan Gohman [Fri, 10 Dec 2010 20:47:03 +0000 (20:47 +0000)]
Implement PartialAlias checking in BasicAA.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121520 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoFix miscompilation caused by trivial logic error in the reassignVReg()
Jakob Stoklund Olesen [Fri, 10 Dec 2010 20:45:04 +0000 (20:45 +0000)]
Fix miscompilation caused by trivial logic error in the reassignVReg()
interference check.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121519 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoMinimally update this code to handle PartialAlias.
Dan Gohman [Fri, 10 Dec 2010 20:14:49 +0000 (20:14 +0000)]
Minimally update this code to handle PartialAlias.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121518 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoUse PartialAlias to do better noalias lint checking.
Dan Gohman [Fri, 10 Dec 2010 20:04:06 +0000 (20:04 +0000)]
Use PartialAlias to do better noalias lint checking.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121514 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoTeach AliasAnalysisCounter about PartialAlias.
Dan Gohman [Fri, 10 Dec 2010 19:53:05 +0000 (19:53 +0000)]
Teach AliasAnalysisCounter about PartialAlias.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121513 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoTeach AliasAnalysisEvaluator about PartialAlias.
Dan Gohman [Fri, 10 Dec 2010 19:52:40 +0000 (19:52 +0000)]
Teach AliasAnalysisEvaluator about PartialAlias.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121512 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoUpdate this code to handle PartialAlias as MayAlias.
Dan Gohman [Fri, 10 Dec 2010 19:40:47 +0000 (19:40 +0000)]
Update this code to handle PartialAlias as MayAlias.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121508 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoIntroduce a new PartialAlias response for AliasAnalysis. For most
Dan Gohman [Fri, 10 Dec 2010 19:38:58 +0000 (19:38 +0000)]
Introduce a new PartialAlias response for AliasAnalysis. For most
AliasAnalysis consumers, PartialAlias will be treated as MayAlias.

For AliasAnalysis chaining, MayAlias says "procede to the next analysis".
PartialAlias will be used to indicate that the query should terminate,
even though it didn't reach MustAlias or NoAlias.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121507 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoFix some invalid alignments for Neon vld-dup and vld/st-lane instructions.
Bob Wilson [Fri, 10 Dec 2010 19:37:42 +0000 (19:37 +0000)]
Fix some invalid alignments for Neon vld-dup and vld/st-lane instructions.
Alignments smaller than the total size of the memory being loaded or stored,
unless the alignment is 8 bytes, are not allowed.  Add tests for this, too.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121506 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoTeach isCSRestore() that ARM/Thumb2 functions will use post-modify LDR
Jim Grosbach [Fri, 10 Dec 2010 18:41:15 +0000 (18:41 +0000)]
Teach isCSRestore() that ARM/Thumb2 functions will use post-modify LDR
instructions to restore a single register rather than an LDM instruction.
rdar://8754999

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121498 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAdd an AllocationOrder class that can iterate over the allocatable physical
Jakob Stoklund Olesen [Fri, 10 Dec 2010 18:36:02 +0000 (18:36 +0000)]
Add an AllocationOrder class that can iterate over the allocatable physical
registers for a given virtual register.

Reserved registers are filtered from the allocation order, and any valid hint is
returned as the first suggestion.

For target dependent hints, a number of arcane target hooks are invoked.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121497 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoThumb unconditional branch binary encoding. rdar://8754994
Jim Grosbach [Fri, 10 Dec 2010 18:21:33 +0000 (18:21 +0000)]
Thumb unconditional branch binary encoding. rdar://8754994

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121496 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoThumb conditional branch binary encodings. rdar://8745367
Jim Grosbach [Fri, 10 Dec 2010 17:13:40 +0000 (17:13 +0000)]
Thumb conditional branch binary encodings. rdar://8745367

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121493 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAnother git svn dcommit test. This time let's hope it doesn't kill my repo.
Michael J. Spencer [Fri, 10 Dec 2010 14:45:10 +0000 (14:45 +0000)]
Another git svn dcommit test. This time let's hope it doesn't kill my repo.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121485 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAnother git-svn dcommit test. (last time I got access and client errors and it broke...
Michael J. Spencer [Fri, 10 Dec 2010 14:27:18 +0000 (14:27 +0000)]
Another git-svn dcommit test. (last time I got access and client errors and it broke everything locally;/)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121484 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoTest git svn dcommit
Michael J. Spencer [Fri, 10 Dec 2010 13:44:26 +0000 (13:44 +0000)]
Test git svn dcommit

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121483 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAnother dummy commit to check GIT mirroring
Anton Korobeynikov [Fri, 10 Dec 2010 11:49:22 +0000 (11:49 +0000)]
Another dummy commit to check GIT mirroring

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121481 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoDummy commit to test GIT mirroring
Anton Korobeynikov [Fri, 10 Dec 2010 11:38:59 +0000 (11:38 +0000)]
Dummy commit to test GIT mirroring

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121479 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agomacho-dump: Fix CMake build, following up to r121466.
NAKAMURA Takumi [Fri, 10 Dec 2010 09:18:26 +0000 (09:18 +0000)]
macho-dump: Fix CMake build, following up to r121466.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121476 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoFixed version of 121434 with no new memory leaks.
Rafael Espindola [Fri, 10 Dec 2010 07:39:47 +0000 (07:39 +0000)]
Fixed version of 121434 with no new memory leaks.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121471 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoThe Neon vqdmlsl_lane and vqdmlal_lane intrinsics have 4 arguments, not 3.
Bob Wilson [Fri, 10 Dec 2010 06:37:53 +0000 (06:37 +0000)]
The Neon vqdmlsl_lane and vqdmlal_lane intrinsics have 4 arguments, not 3.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121469 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoMach-O/ARM: Add relocation type enumeration.
Daniel Dunbar [Fri, 10 Dec 2010 06:19:49 +0000 (06:19 +0000)]
Mach-O/ARM: Add relocation type enumeration.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121467 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agomacho-dump: Switch to C++ macho-dump tool.
Daniel Dunbar [Fri, 10 Dec 2010 06:19:45 +0000 (06:19 +0000)]
macho-dump: Switch to C++ macho-dump tool.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121466 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoMach-O: Tweak field name.
Daniel Dunbar [Fri, 10 Dec 2010 06:19:39 +0000 (06:19 +0000)]
Mach-O: Tweak field name.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121465 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoRemove dead header.
Nick Lewycky [Fri, 10 Dec 2010 05:12:54 +0000 (05:12 +0000)]
Remove dead header.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121463 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoFix cmake build.
Rafael Espindola [Fri, 10 Dec 2010 04:28:37 +0000 (04:28 +0000)]
Fix cmake build.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121462 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoRevert my previous patch to make the valgrind bots happy.
Rafael Espindola [Fri, 10 Dec 2010 04:01:09 +0000 (04:01 +0000)]
Revert my previous patch to make the valgrind bots happy.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121461 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAdd dependency to "make check".
NAKAMURA Takumi [Fri, 10 Dec 2010 02:15:36 +0000 (02:15 +0000)]
Add dependency to "make check".

cmake/modules/AddLLVM.cmake: Add empty "phony" target in add_llvm_loadable_module() even if loadable module were not supported.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121455 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agolib/Target/CMakeLists.txt: Add missing lib/Target/TargetAsmInfo.cpp, following up...
NAKAMURA Takumi [Fri, 10 Dec 2010 02:15:24 +0000 (02:15 +0000)]
lib/Target/CMakeLists.txt: Add missing lib/Target/TargetAsmInfo.cpp, following up to r121434.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121454 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoFix the leak from r121401 of the Operands erased in the list but not deleted.
Kevin Enderby [Fri, 10 Dec 2010 01:41:56 +0000 (01:41 +0000)]
Fix the leak from r121401 of the Operands erased in the list but not deleted.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121450 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoUse GZIPBIN instead of GZIP. Apparently gzip uses GZIP as an environment
Eric Christopher [Fri, 10 Dec 2010 01:31:51 +0000 (01:31 +0000)]
Use GZIPBIN instead of GZIP. Apparently gzip uses GZIP as an environment
variable for args you want to default pass to gzip.

Patch based on one by asau@inbox.ru.

Fixes PR8758.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121449 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAdd some missing predicates.
Nate Begeman [Fri, 10 Dec 2010 00:54:26 +0000 (00:54 +0000)]
Add some missing predicates.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121445 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agofix some validation problems
Chris Lattner [Fri, 10 Dec 2010 00:54:03 +0000 (00:54 +0000)]
fix some validation problems

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121444 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agorestructure this for readability, correct the example to follow the public ivar name...
Chris Lattner [Fri, 10 Dec 2010 00:52:35 +0000 (00:52 +0000)]
restructure this for readability, correct the example to follow the public ivar name convention

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121443 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoFormalize the notion that AVX and SSE are non-overlapping extensions from the compile...
Nate Begeman [Fri, 10 Dec 2010 00:26:57 +0000 (00:26 +0000)]
Formalize the notion that AVX and SSE are non-overlapping extensions from the compiler's point of view.  Per email discussion, we either want to always use VEX-prefixed instructions or never use them, and are taking "HasAVX" to mean "Always use VEX".  Passing -mattr=-avx,+sse42 should serve to restore legacy SSE support when desirable.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121439 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoInitial support for the cfi directives. This is just enough to get
Rafael Espindola [Thu, 9 Dec 2010 23:48:29 +0000 (23:48 +0000)]
Initial support for the cfi directives. This is just enough to get

f:
        .cfi_startproc
        nop
        .cfi_endproc

assembled (on ELF).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121434 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoPrint breakpoints for call instructions. This is used by optimized debug info test...
Devang Patel [Thu, 9 Dec 2010 23:37:07 +0000 (23:37 +0000)]
Print breakpoints for call instructions. This is used by optimized debug info test harness.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121432 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoadd a rule for enums, patch by Zhanyong Wan!
Chris Lattner [Thu, 9 Dec 2010 23:32:39 +0000 (23:32 +0000)]
add a rule for enums, patch by Zhanyong Wan!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121430 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAdd initial support to measure local variables.
Devang Patel [Thu, 9 Dec 2010 23:18:58 +0000 (23:18 +0000)]
Add initial support to measure local variables.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121428 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoUse const references.
Rafael Espindola [Thu, 9 Dec 2010 23:08:35 +0000 (23:08 +0000)]
Use const references.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121426 91177308-0d34-0410-b5e6-96231b3b80d8