Dan Gohman
2170150035
Change Feature64Bit to not imply FeatureSSE2. All x86-64 hardware has
...
SSE2, however it's possible to disable SSE2, and the subtarget support
code thinks that if 64-bit implies SSE2 and SSE2 is disabled then
64-bit should also be disabled. Instead, just mark all the 64-bit
subtargets as explicitly supporting SSE2.
Also, move the code that makes -march=x86-64 enable 64-bit support by
default to only apply when there is no explicit subtarget. If you
need to specify a subtarget and you want 64-bit code, you'll need to
select a subtarget that supports 64-bit code.
llvm-svn: 63575
2009-02-03 00:04:43 +00:00
Dale Johannesen
0c89de8f82
Last DebugLoc propagation for this file.
...
llvm-svn: 63574
2009-02-02 23:46:53 +00:00
Dan Gohman
9bc7148556
Fix another test to not use -mcpu=yonah with 64-bit code.
...
llvm-svn: 63572
2009-02-02 23:43:59 +00:00
Dan Gohman
8a2fa9ded4
Yonah does not support x86-64. Change the -mcpu value to one that does.
...
llvm-svn: 63561
2009-02-02 22:50:08 +00:00
Dale Johannesen
d92b94df04
More DebugLoc propagation. This should be everything
...
except LegalizeOp itself.
llvm-svn: 63560
2009-02-02 22:49:46 +00:00
Mike Stump
4c8ca99bb1
Improve -fno-opt style option processing to not require an extra
...
option to make the -fno- form on the option. We also document the new
form in the CommandLine documentation.
llvm-svn: 63559
2009-02-02 22:48:49 +00:00
Owen Anderson
9d2293f7ad
MergeValueInto is too smart: it might choose to do the merge the opposite direction.
...
Live interval reconstruction needs to account for this, and scour its maps to
prevent dangling references.
llvm-svn: 63558
2009-02-02 22:42:01 +00:00
Dale Johannesen
c7295f2a49
DebugLoc propagation. ExpandOp and PromoteOp,
...
among others.
llvm-svn: 63555
2009-02-02 22:12:50 +00:00
Torok Edwin
2bc41a36ba
Only force SSE level if it is not correct.
...
Add an assert to check HasX86_64 status.
llvm-svn: 63552
2009-02-02 21:57:34 +00:00
Devang Patel
32a1b0f0e6
Run dsymutil on darwin, when it is expected, before running gdb test.
...
llvm-svn: 63548
2009-02-02 21:09:36 +00:00
Dale Johannesen
5b1a213918
Commit missing files.
...
llvm-svn: 63545
2009-02-02 20:47:48 +00:00
Chris Lattner
7ce69dfa56
inline SROA::ConvertToScalar, no functionality change.
...
llvm-svn: 63544
2009-02-02 20:44:45 +00:00
Dale Johannesen
8883285060
More DebugLoc propagation.
...
llvm-svn: 63543
2009-02-02 20:41:04 +00:00
Torok Edwin
c1017185a5
remove #if 0 code on Bill's request.
...
llvm-svn: 63542
2009-02-02 20:23:02 +00:00
Duncan Sands
0ecadc3e36
Remove trailing spaces.
...
llvm-svn: 63540
2009-02-02 19:46:41 +00:00
Steve Naroff
36c3f0b6d8
Update hand-crafted VC++ build.
...
- Add PACKAGE_STRING definition to Windows config.h.
llvm-svn: 63539
2009-02-02 19:22:02 +00:00
Dale Johannesen
d0e894212e
DebugLoc propagation for int<->fp conversions.
...
llvm-svn: 63537
2009-02-02 19:03:57 +00:00
Evan Cheng
95c4b28646
Refactor PerformPHIConstruction, no functionality changes.
...
llvm-svn: 63536
2009-02-02 18:33:18 +00:00
Chris Lattner
eeeba2abe9
xfail this for now, will fix shortly.
...
llvm-svn: 63533
2009-02-02 18:15:33 +00:00
Chris Lattner
5c43f87c53
update test
...
llvm-svn: 63532
2009-02-02 18:12:58 +00:00
Dan Gohman
385f71a725
Reposition the DebugLoc field to reduce padding space
...
on LP64 hosts.
llvm-svn: 63530
2009-02-02 18:04:24 +00:00
Chris Lattner
ce09ac0c3d
Fix a bug which caused us to miscompile a couple of Ada
...
tests. Thanks for the beautiful reduced testcase Duncan!
llvm-svn: 63529
2009-02-02 18:02:59 +00:00
Devang Patel
7f2ea2d067
Do not add redundant arguments in a method definition DIE.
...
llvm-svn: 63527
2009-02-02 17:51:41 +00:00
Devang Patel
cd95bc2100
Make this test case smaller.
...
llvm-svn: 63526
2009-02-02 17:50:43 +00:00
Sanjiv Gupta
9e53b9526e
Duncan's patch. Further to 64382. Takes care of illegal types for shift amount.
...
llvm-svn: 63523
2009-02-02 17:19:39 +00:00
Sanjiv Gupta
c47a19b23e
Made the common case of default address space directive as non-virtual for performance reasons. Provide a single virtual interface for directives of all sizes in non-default address spaces.
...
llvm-svn: 63521
2009-02-02 16:53:06 +00:00
Duncan Sands
b469789780
Fix a comment (bytes -> bits), reformat a comment
...
and remove trailing whitespace. No functionality
change.
llvm-svn: 63511
2009-02-02 10:06:20 +00:00
Duncan Sands
3d56fe0ca0
Fix an obvious thinko.
...
llvm-svn: 63510
2009-02-02 09:53:14 +00:00
Evan Cheng
16c8f917fb
ADD / SUB / SMUL / UMUL with overflow second result top bits must be zero.
...
llvm-svn: 63509
2009-02-02 09:15:04 +00:00
Duncan Sands
1b6765b67f
This passes on x86-32 linux at least.
...
llvm-svn: 63508
2009-02-02 09:10:57 +00:00
Duncan Sands
20a7c67535
Make the XFAIL line actually match x86-32 targets.
...
llvm-svn: 63507
2009-02-02 09:07:13 +00:00
Evan Cheng
e8dfbb5884
Add comment.
...
llvm-svn: 63506
2009-02-02 08:19:07 +00:00
Evan Cheng
483bbd1643
Teach LowerBRCOND to recognize (xor (setcc x), 1). The xor inverts the condition. It's normally transformed by the dag combiner, unless the condition is set by a arithmetic op with overflow.
...
llvm-svn: 63505
2009-02-02 08:07:36 +00:00
Chris Lattner
e15f499f9d
reject things like: zext <4 x i32> %tmp to i256
...
llvm-svn: 63504
2009-02-02 07:40:17 +00:00
Chris Lattner
408b359e6e
validation error fix.
...
llvm-svn: 63503
2009-02-02 07:33:15 +00:00
Chris Lattner
27bf492e30
Document type upreferences (PR3380), patch by Stein Roger Skafløtten
...
with enhancements and corrections by me.
llvm-svn: 63502
2009-02-02 07:32:36 +00:00
Chris Lattner
11cfab6d5b
Fix PR3372
...
llvm-svn: 63501
2009-02-02 07:24:28 +00:00
Chris Lattner
6402178a04
reduce indentation, (~XorCST->getValue()).isSignBit() -> isMaxSignedValue()
...
llvm-svn: 63500
2009-02-02 07:15:30 +00:00
Chris Lattner
1cb94d541b
reduce testcase.
...
llvm-svn: 63499
2009-02-02 06:55:45 +00:00
Mon P Wang
82e6b51c19
Preserve more SourceValue information.
...
llvm-svn: 63498
2009-02-02 06:37:55 +00:00
Torok Edwin
110a24e43e
add 2 more testcases for -mattr=-sse (r63495).
...
--This line, and those below, will be ignaored--
A test/CodeGen/X86/nosse-error1.ll
A test/CodeGen/X86/nosse-error2.ll
llvm-svn: 63496
2009-02-01 18:24:20 +00:00
Torok Edwin
b4c9a6097f
Implement -mno-sse: if SSE is disabled on x86-64, don't store XMM on stack for
...
var-args, and don't allow FP return values
llvm-svn: 63495
2009-02-01 18:15:56 +00:00
Duncan Sands
cac6cf74f9
Fix PR3453 and probably a bunch of other potential
...
crashes or wrong code with codegen of large integers:
eliminate the legacy getIntegerVTBitMask and
getIntegerVTSignBit methods, which returned their
value as a uint64_t, so couldn't handle huge types.
llvm-svn: 63494
2009-02-01 18:06:53 +00:00
Bill Wendling
518ecfa97c
Forgot some more DebugLoc propagations.
...
llvm-svn: 63493
2009-02-01 11:19:36 +00:00
Owen Anderson
e7080fe2a9
Fix test failures causes by my previous commit.
...
llvm-svn: 63492
2009-02-01 08:41:54 +00:00
Owen Anderson
f403ec470e
Fix an issue in PHI construction that was exposed by GCC 4.2 producing a different set iteration order for the reg_iterator.
...
llvm-svn: 63490
2009-02-01 07:06:00 +00:00
Evan Cheng
d650c9ecd7
Fix PR3423: Link llvm on ARM EABI machines. Patch by Robert Schuster.
...
llvm-svn: 63489
2009-02-01 06:42:27 +00:00
Dale Johannesen
4956419c77
DebugLoc propagation.
...
llvm-svn: 63488
2009-01-31 22:04:51 +00:00
Nick Lewycky
e25b96473e
Reinstate this optimization to fold icmp of xor when possible. Don't try to
...
turn icmp eq a+x, b+x into icmp eq a, b if a+x or b+x has other uses. This
may have been increasing register pressure leading to the bzip2 slowdown.
llvm-svn: 63487
2009-01-31 21:30:05 +00:00
Dale Johannesen
98a9d2534b
DebugLoc propagation. Done with file.
...
llvm-svn: 63486
2009-01-31 21:04:24 +00:00