Dan Gohman
15eb8b47aa
Fix a typo in a comment.
...
llvm-svn: 51718
2008-05-30 00:08:18 +00:00
Dan Gohman
24ad4a21e3
Fix a copy+paste error in a comment.
...
llvm-svn: 51717
2008-05-30 00:02:02 +00:00
Dan Gohman
e587db7187
Fix doxygen comment syntax.
...
llvm-svn: 51716
2008-05-30 00:01:36 +00:00
Owen Anderson
5ff0c098ae
Make the renumbering correct in the face of deleted instructions that have been removed from the LiveIntervals maps.
...
llvm-svn: 51714
2008-05-29 23:01:22 +00:00
Gabor Greif
42da2a4b26
add doxygen comments
...
llvm-svn: 51712
2008-05-29 22:58:33 +00:00
Bill Wendling
bcd38344b9
Unbreak build.
...
llvm-svn: 51709
2008-05-29 22:02:08 +00:00
Anton Korobeynikov
80d70cd681
Remove guard, so *each* inclusion will result in a warning
...
llvm-svn: 51708
2008-05-29 21:57:11 +00:00
Dan Gohman
aa8fcd5657
Add patterns for CALL32m and CALL64m. They aren't matched in most
...
cases due to an isel deficiency already noted in
lib/Target/X86/README.txt, but they can be matched in this fold-call.ll
testcase, for example.
This is interesting mainly because it exposes a tricky tblgen bug;
tblgen was incorrectly computing the starting index for variable_ops
in the case of a complex pattern.
llvm-svn: 51706
2008-05-29 21:50:34 +00:00
Bill Wendling
2ba98ca60f
Remove more iostream header includes. Needed to implement a "FlushStream"
...
function to flush a specified std::ostream.
llvm-svn: 51705
2008-05-29 21:46:33 +00:00
Bill Wendling
4a95fce74c
Remove <iostream>.
...
llvm-svn: 51704
2008-05-29 21:29:39 +00:00
Owen Anderson
0eabbbfc58
Add newline at end of file.
...
llvm-svn: 51701
2008-05-29 21:05:16 +00:00
Dan Gohman
4e87d82476
Fix a tblgen problem handling variable_ops in tblgen instruction
...
definitions. This adds a new construct, "discard", for indicating
that a named node in the input matching pattern is to be discarded,
instead of corresponding to a node in the output pattern. This
allows tblgen to know where the arguments for the varaible_ops are
supposed to begin.
This fixes "rdar://5791600", whatever that is ;-).
llvm-svn: 51699
2008-05-29 19:57:41 +00:00
Dan Gohman
d8b84813d5
const-ify getOpcode.
...
llvm-svn: 51698
2008-05-29 19:53:46 +00:00
Dan Gohman
3ea2dceca0
Prune and tidy #includes.
...
llvm-svn: 51697
2008-05-29 19:52:31 +00:00
Dan Gohman
e256337a1a
Expand small memmovs using inline code. Set the X86 threshold for expanding
...
memmove to a more plausible value, now that it's actually being used.
llvm-svn: 51696
2008-05-29 19:42:22 +00:00
Anton Korobeynikov
eb3cd5e822
For PR1338: Rename test dirs
...
llvm-svn: 51695
2008-05-29 19:17:15 +00:00
Owen Anderson
7de6e25492
Revert part of my last patch that I didn't intend to commit yet.
...
llvm-svn: 51694
2008-05-29 18:35:21 +00:00
Anton Korobeynikov
f46e96a222
Add file with warning for backward comptibility. Should be removed after 2.4
...
llvm-svn: 51693
2008-05-29 18:18:15 +00:00
Anton Korobeynikov
c128302249
Update guards
...
llvm-svn: 51692
2008-05-29 18:17:53 +00:00
Owen Anderson
9db9e1a6a4
Renumbering needs to account for instruction slot offsets when performing lookups in the index maps.
...
llvm-svn: 51691
2008-05-29 18:15:49 +00:00
Anton Korobeynikov
1611bc6148
Regenerate
...
llvm-svn: 51688
2008-05-29 17:41:34 +00:00
Anton Korobeynikov
f77142326f
For PR1338: rename include/llvm/ADT/ilist and friends to end with ".h"
...
llvm-svn: 51687
2008-05-29 17:41:17 +00:00
Owen Anderson
0e26c5897a
Force postdom to be linked into opt and bugpoint, even though it is no longer used by any passes.
...
llvm-svn: 51686
2008-05-29 17:00:13 +00:00
Owen Anderson
2a0090d9bc
Move these tests into the proper directory.
...
llvm-svn: 51685
2008-05-29 16:30:29 +00:00
Duncan Sands
18fb7b1fa3
Add a newline at the end of this file.
...
llvm-svn: 51680
2008-05-29 14:38:23 +00:00
Owen Anderson
15538467ae
Re-enable the newly simplified ADCE. This fixes a regression on
...
Dhrystone introduced by its removal.
llvm-svn: 51669
2008-05-29 08:48:21 +00:00
Owen Anderson
bd3940abc7
Replace the old ADCE implementation with a new one that more simply solves
...
the one case that ADCE catches that normal DCE doesn't: non-induction variable
loop computations.
This implementation handles this problem without using postdominators.
llvm-svn: 51668
2008-05-29 08:45:13 +00:00
Evan Cheng
04c0915a2f
Implement vector shift up / down and insert zero with ps{rl}lq / ps{rl}ldq.
...
llvm-svn: 51667
2008-05-29 08:22:04 +00:00
Owen Anderson
ccaf62ac5e
Remove debugging code.
...
llvm-svn: 51666
2008-05-29 08:15:48 +00:00
Evan Cheng
f2e38956ff
Add nounwind.
...
llvm-svn: 51665
2008-05-29 07:09:24 +00:00
Bill Wendling
81199f0cc8
XOR?RI instructions aren't as cheap as moves.
...
llvm-svn: 51664
2008-05-29 03:46:36 +00:00
Gabor Greif
b320ae0f07
convert more operand loops to iterator formulation
...
llvm-svn: 51663
2008-05-29 01:59:18 +00:00
Bill Wendling
edb38e9410
Implement "AsCheapAsAMove" for some obviously cheap instructions: xor and the
...
like.
llvm-svn: 51662
2008-05-29 01:02:09 +00:00
Gabor Greif
39350bab39
convert another operand loop to iterator formulation
...
llvm-svn: 51661
2008-05-29 00:51:08 +00:00
Bill Wendling
b56bc61cf4
Add a flag to indicate that an instruction is as cheap (or cheaper) than a move
...
instruction to execute. This can be used for transformations (like two-address
conversion) to remat an instruction instead of generating a "move"
instruction. The idea is to decrease the live ranges and register pressure and
all that jazz.
llvm-svn: 51660
2008-05-28 22:54:52 +00:00
Bill Wendling
5011b8d77d
Check the "isSafeToMove" predicate, which has a series of tests to make sure
...
that it's safe to remat an instruction.
llvm-svn: 51659
2008-05-28 22:52:47 +00:00
Owen Anderson
219ecc1ff1
Remap VNInfo data as well when doing renumbering.
...
llvm-svn: 51658
2008-05-28 22:40:08 +00:00
Owen Anderson
705b97141c
Factor the numbering computation into a separate method, and add the slightest attempt at some renumbering logic, which is currently unused.
...
llvm-svn: 51652
2008-05-28 20:54:50 +00:00
Evan Cheng
cd45b11bc1
Fix PR2289: vr defined by multiple implicit_def as result of coalescing.
...
llvm-svn: 51648
2008-05-28 17:40:10 +00:00
Evan Cheng
591b57edd6
Teach local register allocator to deal with landing pad MBB's.
...
llvm-svn: 51647
2008-05-28 17:22:32 +00:00
Nate Begeman
e0d283668e
Update some comments noticed in a recent checkin
...
llvm-svn: 51644
2008-05-28 16:31:36 +00:00
Chris Lattner
fd26913f74
Update text to point people at the right version of the tutorial for
...
their release.
llvm-svn: 51638
2008-05-28 06:16:08 +00:00
Chris Lattner
7a7da4f9c3
Implement PR2370: memmove(x,x,size) -> noop.
...
llvm-svn: 51636
2008-05-28 05:30:41 +00:00
Chris Lattner
857e1e9cab
Add chain inputs for loads.
...
llvm-svn: 51635
2008-05-28 04:25:57 +00:00
Chris Lattner
93047192f3
Fix CodeGen/Generic/2005-10-21-longlonggtu.ll on ia64.
...
llvm-svn: 51634
2008-05-28 04:14:30 +00:00
Chris Lattner
294b436abf
loads should get chains. THis helps but does not solve CodeGen/Generic/2003-05-27-phifcmpd.ll
...
on ia64.
llvm-svn: 51633
2008-05-28 04:06:52 +00:00
Chris Lattner
d33dececf3
Fix 2006-04-28-Sign-extend-bool.ll for ia64.
...
llvm-svn: 51632
2008-05-28 04:00:06 +00:00
Chris Lattner
569e867c01
reindent.
...
llvm-svn: 51631
2008-05-28 03:59:32 +00:00
Dan Gohman
a5549a2f9c
Fix the encoding for two more "rm" instructions that were using MRMSrcReg.
...
llvm-svn: 51630
2008-05-28 01:50:19 +00:00
Mon P Wang
8e37b2d13e
Fixed X86 encoding error CVTPS2PD and CVTPD2PS when the source operand
...
is a memory location
llvm-svn: 51626
2008-05-28 00:42:27 +00:00