Bill Wendling
8cd0977aad
Accidental submission.
...
llvm-svn: 32639
2006-12-17 11:13:13 +00:00
Bill Wendling
5b534cf128
This snuck in. Reverted.
...
llvm-svn: 32638
2006-12-17 11:11:10 +00:00
Reid Spencer
be18cd1575
Fix problems in the CBE and InstructionCombining which use the isMaxValue
...
and isMinValue methods of ConstantInt. These have been broken since the
isSigned parameter was added. It is necessary to use the signed version
of the type in the call to isValueValidForType or else incorrect results
are returned.
llvm-svn: 32637
2006-12-17 06:07:30 +00:00
Bill Wendling
7f6a73eb5c
Added an automatic cast to "std::ostream*" etc. from OStream. We then can
...
rework the hacks that had us passing OStream in. We pass in std::ostream*
instead, check for null, and then dispatch to the correct print() method.
llvm-svn: 32636
2006-12-17 05:15:13 +00:00
Reid Spencer
758736b8df
Allow an --enable-pic option to turn on -fPIC compiler option when building.
...
The default is disabled until we know this doesn't break anyone.
llvm-svn: 32635
2006-12-16 22:07:52 +00:00
Chris Lattner
6bdae11796
when inserting a dummy argument to work-around the CBE not supporting
...
zero arg vararg functions, pass undef instead of 'int 0', which is cheaper.
llvm-svn: 32634
2006-12-16 21:21:53 +00:00
Chris Lattner
8b1e4d1edf
Fix PR1049 and CodeGen/Generic/2006-12-16-InlineAsmCrash.ll
...
by producing target constants instead of constants. Constants can get
selected to li/movri instructions, which causes the scheduler to explode.
llvm-svn: 32633
2006-12-16 21:14:48 +00:00
Chris Lattner
292b75066d
testcase for pr1049
...
llvm-svn: 32632
2006-12-16 21:12:49 +00:00
Chris Lattner
02aeb50571
Fix one more broken testcase
...
llvm-svn: 32631
2006-12-16 20:27:43 +00:00
Chris Lattner
e223919df1
Apply B. Scott Michel's patch for PR1054, thanks!
...
llvm-svn: 32630
2006-12-16 20:23:42 +00:00
Evan Cheng
7775b33a32
Cannot combine an indexed load / store any further.
...
llvm-svn: 32629
2006-12-16 06:25:23 +00:00
Evan Cheng
70700ba459
Typo.
...
llvm-svn: 32628
2006-12-16 06:21:55 +00:00
Chris Lattner
be9b063230
Fix borken testcase
...
llvm-svn: 32627
2006-12-16 02:30:24 +00:00
Chris Lattner
8ef8f5d01c
fix buggy testcase
...
llvm-svn: 32626
2006-12-16 02:29:22 +00:00
Chris Lattner
47233817d3
testcases for PR1042
...
llvm-svn: 32625
2006-12-16 02:26:57 +00:00
Chris Lattner
f511077490
Fix PR1042, by tightening up the subtle rules with invoke value use.
...
llvm-svn: 32624
2006-12-16 02:25:35 +00:00
Evan Cheng
a966bf47ec
Expand FP undef
...
llvm-svn: 32623
2006-12-16 02:20:50 +00:00
Jeff Cohen
c396e18e8e
The best unbreakage yet, addressing Bill's concerns.
...
llvm-svn: 32622
2006-12-16 02:15:42 +00:00
Evan Cheng
d4fd650c5f
Allow promoted FP_TO_UINT / FP_TO_SINT to expand operand.
...
llvm-svn: 32621
2006-12-16 02:10:30 +00:00
Devang Patel
d29f6ec89c
Add getNumContainedPasses() and getContainedPass() inteface and use
...
it instead of passVectorBegin/End().
llvm-svn: 32620
2006-12-16 00:56:26 +00:00
Evan Cheng
b0292a750a
Expand fabs / fneg to and / xor.
...
llvm-svn: 32619
2006-12-16 00:52:40 +00:00
Devang Patel
fb82dcf9ee
Cosmetic changes, based on Chris's review.
...
llvm-svn: 32618
2006-12-15 22:57:49 +00:00
Jeff Cohen
03161dd132
An even better unbreakage...
...
llvm-svn: 32617
2006-12-15 22:57:14 +00:00
Evan Cheng
ea9ab75427
Fix select_cc, select expansion to soft-fp bugs.
...
llvm-svn: 32616
2006-12-15 22:42:55 +00:00
Jeff Cohen
0c3a14bea7
Complete unbreak of VC++ (Chris identified the simple fix).
...
llvm-svn: 32615
2006-12-15 22:06:08 +00:00
Jeff Cohen
95adeca578
Partial unbreak of VC++ (stream stuff has no easy fix).
...
llvm-svn: 32614
2006-12-15 21:47:01 +00:00
Reid Spencer
40691d741a
Remove an extraneous { at the end of a block.
...
llvm-svn: 32613
2006-12-15 21:46:37 +00:00
Jim Laskey
1507a869b2
Patterns no longer needed due to fix in the DAG combiner.
...
llvm-svn: 32612
2006-12-15 21:39:31 +00:00
Jim Laskey
0809c79c60
This code was usurping the sextload expand in teh legalizer. Just make
...
sure the right conditions are checked.
llvm-svn: 32611
2006-12-15 21:38:30 +00:00
Devang Patel
a37c63bcd5
Mark dump* routines const routines.
...
llvm-svn: 32610
2006-12-15 20:13:01 +00:00
Evan Cheng
32c45fa21e
Some AT&T syntax assembler (e.g. Mac OS X) does not recognize the movq alias for i64 <-> XMM moves.
...
llvm-svn: 32609
2006-12-15 19:58:58 +00:00
Reid Spencer
4edcae5076
Fix long standing issue with propagating error message back to caller. This
...
has been a problem since exceptions were removed from the BytecodeReader.
Error messages are now captured from ModuleProvider::releaseModule as well
as after a longjmp.
llvm-svn: 32608
2006-12-15 19:49:23 +00:00
Reid Spencer
d752b2b528
For PR1050:
...
Convert asserts into error messages.
llvm-svn: 32607
2006-12-15 19:44:51 +00:00
Devang Patel
f2b927a162
Move PMTopLevelManager and TImingInfo into anon namespace.
...
llvm-svn: 32606
2006-12-15 19:39:30 +00:00
Jim Laskey
e1216497dc
Not all test cases are created equal. This fix is needed.
...
llvm-svn: 32605
2006-12-15 18:51:01 +00:00
Jim Laskey
0641795154
Not needed. Misinterpreted error message from other bug (Missing load/store
...
relocations.)
llvm-svn: 32604
2006-12-15 18:45:32 +00:00
Andrew Lenharth
3033b03f33
extern_weak linkage. fixes PR1038
...
llvm-svn: 32603
2006-12-15 17:35:32 +00:00
Andrew Lenharth
1898131d04
extern_weak link test
...
llvm-svn: 32602
2006-12-15 17:34:37 +00:00
Jim Laskey
b07d89090c
Missing load/store relocations.
...
llvm-svn: 32601
2006-12-15 16:44:10 +00:00
Jim Laskey
d00589fefd
Provide 64-bit support for i64 sextload<i8>.
...
llvm-svn: 32600
2006-12-15 14:34:11 +00:00
Jim Laskey
721e7d2129
Provide support for FP_TO_UINT.
...
llvm-svn: 32599
2006-12-15 14:32:57 +00:00
Jim Laskey
484fae3d46
Pass html validation.
...
llvm-svn: 32598
2006-12-15 10:40:48 +00:00
Chris Lattner
3e789e232f
silence a bogus warning
...
llvm-svn: 32597
2006-12-15 07:36:19 +00:00
Chris Lattner
f1da201b2b
reenable these
...
llvm-svn: 32596
2006-12-15 07:32:49 +00:00
Chris Lattner
ab423afd90
re-enable a temporarily-reverted patch
...
llvm-svn: 32595
2006-12-15 07:32:38 +00:00
Chris Lattner
bbdbfeeb31
New testcase for llvm-gcc bugfix
...
llvm-svn: 32594
2006-12-15 06:49:20 +00:00
Evan Cheng
a221cb0b2c
Minor clean up.
...
llvm-svn: 32593
2006-12-15 06:41:01 +00:00
Evan Cheng
e0aa279fc8
Silly assertion. Forgot variable_ops instructions can have arbitrary number of
...
operands.
llvm-svn: 32592
2006-12-15 06:37:08 +00:00
Evan Cheng
c24bf8bd87
This is done.
...
llvm-svn: 32591
2006-12-15 05:50:39 +00:00
Evan Cheng
4e661ebef9
Expand FP compares to soft-fp call(s)
...
llvm-svn: 32590
2006-12-15 02:59:56 +00:00