Chris Lattner [Fri, 15 Feb 2008 18:54:56 +0000 (18:54 +0000)]
targets that support quotes for mangled names still need to escape newlines
when they occur in the name, just like " is escaped.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47169
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Fri, 15 Feb 2008 18:40:53 +0000 (18:40 +0000)]
Cosmetics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47168
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 15 Feb 2008 18:24:29 +0000 (18:24 +0000)]
- Removing the infamous r2rMap_ and rep() method. Now the coalescer will update
register defs and uses after each successful coalescing.
- Also removed a number of hacks and fixed some subtle kill information bugs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47167
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 15 Feb 2008 18:21:33 +0000 (18:21 +0000)]
Added CommuteChangesDestination(). This returns true if commuting the specified
machine instr will change its definition register.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47166
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 15 Feb 2008 18:12:09 +0000 (18:12 +0000)]
Remove unnecessary #include.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47164
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 15 Feb 2008 18:11:59 +0000 (18:11 +0000)]
Use StoreSDNode::getValue instead of calling getOperand directly
with a hard-coded operand number.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47163
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Fri, 15 Feb 2008 18:09:51 +0000 (18:09 +0000)]
Remove warning about 64-bit code on processor
that doesn't support it. Per Chris.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47162
91177308-0d34-0410-b5e6-
96231b3b80d8
Lauro Ramos Venancio [Fri, 15 Feb 2008 18:05:54 +0000 (18:05 +0000)]
It is not safe to call fork in PrintStackTrace. Sometimes it freezes the program.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47161
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 15 Feb 2008 01:29:57 +0000 (01:29 +0000)]
Change MemOperand's size and offset to be 64-bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47151
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Fri, 15 Feb 2008 01:24:49 +0000 (01:24 +0000)]
Fix PR2028
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47150
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Fri, 15 Feb 2008 01:22:41 +0000 (01:22 +0000)]
nocona, core2 and penryn support 64 bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47149
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 15 Feb 2008 00:57:28 +0000 (00:57 +0000)]
Support vector constant zeros, thanks to Zack Rusin for the testcase.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47148
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Thu, 14 Feb 2008 23:35:16 +0000 (23:35 +0000)]
Rewrite tblgen handling of subtarget features so
it follows the order of the enum, not alphabetical.
The motivation is to make -mattr=+ssse3,+sse41
select SSE41 as it ought to. Added "ignored"
enum values of 0 to PPC and SPU to avoid compiler
warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47143
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 14 Feb 2008 23:18:47 +0000 (23:18 +0000)]
If loop header is also loop exiting block then OrigPN is incoming value for B loop header.
Fixes PR 2030.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47141
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 14 Feb 2008 22:38:45 +0000 (22:38 +0000)]
Fix a warning about comparison between signed and unsigned,
being consistent with the rest of the APInt implementation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47138
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 14 Feb 2008 19:18:13 +0000 (19:18 +0000)]
Fix PR2029
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47129
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 14 Feb 2008 18:48:56 +0000 (18:48 +0000)]
Fix a miscompilation from Dan's recent apintification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47128
91177308-0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Thu, 14 Feb 2008 18:43:04 +0000 (18:43 +0000)]
Fix single precision FP constants on SPU. They are actually legal,
which allows us to kill a target-specific node.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47127
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Thu, 14 Feb 2008 17:53:22 +0000 (17:53 +0000)]
Rename CFEBuildInstrs.html to GCCFEBuildInstrs.html.
Update all references to it and place a redirection
page at the old address.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47124
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Thu, 14 Feb 2008 17:28:50 +0000 (17:28 +0000)]
In TargetLowering::LowerCallTo, don't assert that
the return value is zero-extended if it isn't
sign-extended. It may also be any-extended.
Also, if a floating point value was returned
in a larger floating point type, pass 1 as the
second operand to FP_ROUND, which tells it
that all the precision is in the original type.
I think this is right but I could be wrong.
Finally, when doing libcalls, set isZExt on
a parameter if it is "unsigned". Currently
isSExt is set when signed, and nothing is
set otherwise. This should be right for all
calls to standard library routines.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47122
91177308-0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Thu, 14 Feb 2008 08:57:00 +0000 (08:57 +0000)]
Change how FP immediates are handled.
1) ConstantFP is now expand by default
2) ConstantFP is not turned into TargetConstantFP during Legalize
if it is legal.
This allows ConstantFP to be handled like Constant, allowing for
targets that can encode FP immediates as MachineOperands.
As a bonus, fix up Itanium FP constants, which now correctly match,
and match more constants! Hooray.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47121
91177308-0d34-0410-b5e6-
96231b3b80d8
Tanya Lattner [Thu, 14 Feb 2008 07:57:12 +0000 (07:57 +0000)]
Remove llvm-upgrade
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47119
91177308-0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Thu, 14 Feb 2008 07:39:30 +0000 (07:39 +0000)]
Support a new type of MachineOperand, MO_FPImmediate, used for holding
FP Immediates, crazily enough
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47117
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 14 Feb 2008 07:39:01 +0000 (07:39 +0000)]
simplify code, no functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47116
91177308-0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Thu, 14 Feb 2008 07:25:46 +0000 (07:25 +0000)]
Move some useful operands up into the all-targets .td
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47115
91177308-0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Thu, 14 Feb 2008 07:23:11 +0000 (07:23 +0000)]
Nuke dead comment
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47114
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Thu, 14 Feb 2008 07:15:11 +0000 (07:15 +0000)]
Testcase for PR2032.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47113
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Thu, 14 Feb 2008 07:11:24 +0000 (07:11 +0000)]
Fix PR2032. Inform the alias analysis of changes to the underlying program.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47111
91177308-0d34-0410-b5e6-
96231b3b80d8
Tanya Lattner [Thu, 14 Feb 2008 06:56:27 +0000 (06:56 +0000)]
Remove llvm-upgrade.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47110
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 14 Feb 2008 06:19:02 +0000 (06:19 +0000)]
upgrade some entries, remove stuff that is done.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47109
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 14 Feb 2008 05:43:18 +0000 (05:43 +0000)]
the mid-level optimizer removes this stuff.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47108
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 14 Feb 2008 05:41:38 +0000 (05:41 +0000)]
this one is easy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47107
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 14 Feb 2008 05:39:46 +0000 (05:39 +0000)]
This readme entry is done, testcase here: CodeGen/X86/zero-remat.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47106
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Thu, 14 Feb 2008 05:01:46 +0000 (05:01 +0000)]
PR2027, Fix bugpoint's -find-bugs option, clean up the code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47105
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 14 Feb 2008 01:32:53 +0000 (01:32 +0000)]
Fix test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47102
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 13 Feb 2008 23:13:32 +0000 (23:13 +0000)]
Allow the APInt form of ComputeMaskedBits to operate on i128 types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47101
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 13 Feb 2008 23:07:24 +0000 (23:07 +0000)]
Assigning an APInt to 0 with plain assignment gives it a one-bit
size. Initialize these APInts to properly-sized zero values.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47099
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 13 Feb 2008 22:43:25 +0000 (22:43 +0000)]
Avoid setting bits that aren't demanded.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47098
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 13 Feb 2008 22:32:12 +0000 (22:32 +0000)]
Fix a typo in a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47097
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 13 Feb 2008 22:28:48 +0000 (22:28 +0000)]
Simplify some logic in ComputeMaskedBits. And change ComputeMaskedBits
to pass the mask APInt by value, not by reference.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47096
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 13 Feb 2008 22:23:07 +0000 (22:23 +0000)]
A loop latch phi node may have uses inside loop, not just in loop header.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47093
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 13 Feb 2008 22:09:18 +0000 (22:09 +0000)]
Rename APInt's isPositive to isNonNegative, to reflect what it
actually does.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47090
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 13 Feb 2008 22:06:36 +0000 (22:06 +0000)]
While moving exit condition, do not drop loop latch on the floor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47089
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 13 Feb 2008 21:11:05 +0000 (21:11 +0000)]
Add countTrailingOnes member functions to APInt.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47086
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 13 Feb 2008 20:56:53 +0000 (20:56 +0000)]
Fix a typo in a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47085
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 13 Feb 2008 20:54:54 +0000 (20:54 +0000)]
Add count{Leading,Trailing}Ones_{32,64} functions with simple implementations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47084
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 13 Feb 2008 19:48:48 +0000 (19:48 +0000)]
Keep track of exit value operand number when operands are swapped.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47082
91177308-0d34-0410-b5e6-
96231b3b80d8
Nicolas Geoffray [Wed, 13 Feb 2008 18:39:37 +0000 (18:39 +0000)]
Enable exception handling int JIT
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47079
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Wed, 13 Feb 2008 18:36:48 +0000 (18:36 +0000)]
New test, see comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47078
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Wed, 13 Feb 2008 18:01:53 +0000 (18:01 +0000)]
Teach LegalizeTypes how to expand and promote CTLZ,
CTTZ and CTPOP. The expansion code differs from
that in LegalizeDAG in that it chooses to take the
CTLZ/CTTZ count from the Hi/Lo part depending on
whether the Hi/Lo value is zero, not on whether
CTLZ/CTTZ of Hi/Lo returned 32 (or whatever the
width of the type is) for it. I made this change
because the optimizers may well know that Hi/Lo
is zero and exploit it. The promotion code for
CTTZ also differs from that in LegalizeDAG: it
uses an "or" to get the right result when the
original value is zero, rather than using a compare
and select. This also means the value doesn't
need to be zero extended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47075
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 13 Feb 2008 17:50:24 +0000 (17:50 +0000)]
gcc 3.2.3 is also bad.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47073
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 13 Feb 2008 17:24:14 +0000 (17:24 +0000)]
Fix the PPC JIT regressions by encoding zeroreg as 0 for BLR.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47067
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 13 Feb 2008 17:18:26 +0000 (17:18 +0000)]
remove some dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47066
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 13 Feb 2008 17:11:39 +0000 (17:11 +0000)]
Remove use of ltdl
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47065
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Wed, 13 Feb 2008 16:46:10 +0000 (16:46 +0000)]
Add notes on Ada compilers that can be used for
the build. Put all items that the user should
specify in bold. Make it a debug build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47063
91177308-0d34-0410-b5e6-
96231b3b80d8
Wojciech Matyjewicz [Wed, 13 Feb 2008 12:21:32 +0000 (12:21 +0000)]
Fix typo. Thanks to Duncan for noticing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47062
91177308-0d34-0410-b5e6-
96231b3b80d8
Wojciech Matyjewicz [Wed, 13 Feb 2008 11:51:34 +0000 (11:51 +0000)]
Add comments as per review feedback.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47061
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 13 Feb 2008 09:56:03 +0000 (09:56 +0000)]
Some code clean up.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47060
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 13 Feb 2008 09:18:16 +0000 (09:18 +0000)]
Simplify.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47059
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 13 Feb 2008 09:13:21 +0000 (09:13 +0000)]
Simplify.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47058
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 13 Feb 2008 09:06:18 +0000 (09:06 +0000)]
Fix a potential serious problem where kills belonging to the val# defined by a two-address instruction is also on the val# that defines the input.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47057
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 13 Feb 2008 08:41:08 +0000 (08:41 +0000)]
* Cannot safely commute an instruction there are other defs which can reach its uses.
* Ignore copy instructions which have already been coalesced.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47056
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Wed, 13 Feb 2008 07:56:04 +0000 (07:56 +0000)]
Add a note pointing to PR1996.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47055
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 13 Feb 2008 07:39:09 +0000 (07:39 +0000)]
In SDISel, for targets that support FORMAL_ARGUMENTS nodes, lower this
node as soon as we create it in SDISel. Previously we would lower it in
legalize. The problem with this is that it only exposes the argument
loads implied by FORMAL_ARGUMENTs after legalize, so that only dag combine 2
can hack on them. This causes us to miss some optimizations because
datatype expansion also happens here.
Exposing the loads early allows us to do optimizations on them. For example
we now compile arg-cast.ll to:
_foo:
movl $
2147483647, %eax
andl 8(%esp), %eax
ret
where we previously produced:
_foo:
subl $12, %esp
movsd 16(%esp), %xmm0
movsd %xmm0, (%esp)
movl $
2147483647, %eax
andl 4(%esp), %eax
addl $12, %esp
ret
It might also make sense to do this for ISD::CALL nodes, which have implicit
stores on many targets.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47054
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 13 Feb 2008 07:35:30 +0000 (07:35 +0000)]
don't try to avoid inserting loads when lowering FORMAL_ARGUMENTS.
DAGCombine is now quite good at zapifying them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47053
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 13 Feb 2008 07:25:05 +0000 (07:25 +0000)]
teach dag combiner how to eliminate MERGE_VALUES nodes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47052
91177308-0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Wed, 13 Feb 2008 07:06:12 +0000 (07:06 +0000)]
readme updates
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47051
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Wed, 13 Feb 2008 06:55:57 +0000 (06:55 +0000)]
Add test for PR1996. (This is my first time adding a test for a
transform, so please review.)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47050
91177308-0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Wed, 13 Feb 2008 06:48:40 +0000 (06:48 +0000)]
Add testcase for recent legalizer change
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47049
91177308-0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Wed, 13 Feb 2008 06:43:04 +0000 (06:43 +0000)]
Support legalizing insert_vector_elt on targets where the element
type is not legal.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47048
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 13 Feb 2008 03:23:53 +0000 (03:23 +0000)]
New tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47047
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 13 Feb 2008 03:01:43 +0000 (03:01 +0000)]
Initial support for copy elimination by commuting its definition MI.
PR1877.
A3 = op A2 B0<kill>
...
B1 = A3 <- this copy
...
= op A3 <- more uses
==>
B2 = op B0 A2<kill>
...
B1 = B2 <- now an identify copy
...
= op B2 <- more uses
This speeds up FreeBench/neural by 29%, Olden/bh by 12%, oopack_v1p8 by 53%.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47046
91177308-0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Wed, 13 Feb 2008 02:58:33 +0000 (02:58 +0000)]
Make register scavenging happy by not using a reg (CR0) that isn't defined
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47045
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 13 Feb 2008 02:48:26 +0000 (02:48 +0000)]
- Added removeValNo() to remove all live ranges of a particular value#.
- removeRange() can now update value# information.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47044
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 13 Feb 2008 02:46:49 +0000 (02:46 +0000)]
commuteInstr() can now commute non-ssa machine instrs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47043
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 13 Feb 2008 02:45:38 +0000 (02:45 +0000)]
Added debugging routine dumpUses.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47042
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 13 Feb 2008 00:35:47 +0000 (00:35 +0000)]
Convert SelectionDAG::ComputeMaskedBits to use APInt instead of uint64_t.
Add an overload that supports the uint64_t interface for use by clients
that haven't been updated yet.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47039
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Tue, 12 Feb 2008 23:35:09 +0000 (23:35 +0000)]
__DATA not __DATA__ is the right segment name on darwin.
Spotted by Nick Kledzik.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47037
91177308-0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Tue, 12 Feb 2008 22:54:40 +0000 (22:54 +0000)]
Remove some dead code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47036
91177308-0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Tue, 12 Feb 2008 22:51:28 +0000 (22:51 +0000)]
SSE4.1 64b integer insert/extract pattern support
Move formats into the formats file
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47035
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 12 Feb 2008 21:47:33 +0000 (21:47 +0000)]
Change APInt::getBitsSet to accept a "half-open" range, where the
hiBit parameter marks the index one past the last desired set bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47032
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Tue, 12 Feb 2008 21:40:21 +0000 (21:40 +0000)]
Note that these instructions are for x86-32 linux
(the only platform on which the Ada compiler even
builds).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47031
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Tue, 12 Feb 2008 21:28:39 +0000 (21:28 +0000)]
Add more spacing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47028
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Tue, 12 Feb 2008 21:22:58 +0000 (21:22 +0000)]
Add instructions for building Ada and Fortran.
Adjust mentions of gcc4 to be 4.0/4.2 agnostic.
This file should probably be renamed tor
GCCFEBuildInstrs.html...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47027
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 12 Feb 2008 21:15:18 +0000 (21:15 +0000)]
Re-apply the patch to improve the optimizations of memcpy's, with several
bugs fixed. This now passes PPC bootstrap.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47026
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Tue, 12 Feb 2008 20:46:31 +0000 (20:46 +0000)]
Generalize getCopyFromParts and getCopyToParts to
handle arbitrary precision integers and any number
of parts. For example, on a 32 bit machine an i50
corresponds to two i32 parts. getCopyToParts will
extend the i50 to an i64 then write half of the i64
to each part; getCopyFromParts will combine the two
i32 parts into an i64 then truncate the result to
i50.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47024
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 12 Feb 2008 19:25:12 +0000 (19:25 +0000)]
Revert r46916 PPCTargetAsmInfo.cpp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47020
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 12 Feb 2008 19:20:46 +0000 (19:20 +0000)]
Only using x86-64 rip relative addressing in non-staic mode?
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47019
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 12 Feb 2008 19:11:29 +0000 (19:11 +0000)]
Don't mask the isel bug.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47018
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 12 Feb 2008 19:11:08 +0000 (19:11 +0000)]
This test assumes no SSE4.1.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47017
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 12 Feb 2008 18:52:52 +0000 (18:52 +0000)]
Add a doxygen comment for SrcValueSDNode, to make its purpose
clear and to clarify how it differs from MemOperandSDNode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47015
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 12 Feb 2008 18:20:50 +0000 (18:20 +0000)]
Remove dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47012
91177308-0d34-0410-b5e6-
96231b3b80d8
Wojciech Matyjewicz [Tue, 12 Feb 2008 15:12:40 +0000 (15:12 +0000)]
Now that ScalarEvolution::print writes to the correct stream, there is
no need to redirect stderr into stdout.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47009
91177308-0d34-0410-b5e6-
96231b3b80d8
Wojciech Matyjewicz [Tue, 12 Feb 2008 15:10:35 +0000 (15:10 +0000)]
Change negative grep into positive one in my yesterday's testcase.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47008
91177308-0d34-0410-b5e6-
96231b3b80d8
Wojciech Matyjewicz [Tue, 12 Feb 2008 15:09:36 +0000 (15:09 +0000)]
Fix PR2002. Suppose n is the initial value for the induction
variable (with step 1) and m is its final value. Then, the correct trip
count is SMAX(m,n)-n. Previously, we used SMAX(0,m-n), but m-n may
overflow and can't in general be interpreted as signed.
Patch by Nick Lewycky.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47007
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Tue, 12 Feb 2008 12:08:14 +0000 (12:08 +0000)]
Fix for bug 1996: optimize out loads of undef. This code basically just
checks for a malloc/alloca immediately followed by a load.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47006
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 12 Feb 2008 07:59:55 +0000 (07:59 +0000)]
Update comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47002
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 12 Feb 2008 07:59:45 +0000 (07:59 +0000)]
Unbreak various insert_vector_elt and extract_vector_elt tests in presence of SSE4.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47001
91177308-0d34-0410-b5e6-
96231b3b80d8
Tanya Lattner [Tue, 12 Feb 2008 07:46:33 +0000 (07:46 +0000)]
Test case for annotate builtin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46999
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 12 Feb 2008 07:22:46 +0000 (07:22 +0000)]
Fix some test cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46998
91177308-0d34-0410-b5e6-
96231b3b80d8