Jim Grosbach
6dd5433c5c
Refactor away tSpill and tRestore pseudos in ARM backend.
...
The tSpill and tRestore instructions are just copies of the tSTRspi and
tLDRspi instructions, respectively. Just use those directly instead.
llvm-svn: 134092
2011-06-29 20:26:39 +00:00
Eric Christopher
646312db05
Add a TODO for the Alpha port inline asm constraints.
...
llvm-svn: 134089
2011-06-29 19:41:27 +00:00
Eric Christopher
8e69ef8e77
Move Alpha from getRegClassForInlineAsmConstraint to
...
getRegForInlineAsmConstraint.
Part of rdar://9643582
llvm-svn: 134088
2011-06-29 19:40:01 +00:00
Eric Christopher
f04ac137f3
Update comment for getRegForInlineAsmConstraint for Mips.
...
llvm-svn: 134087
2011-06-29 19:33:04 +00:00
Eric Christopher
67d2fdd4a8
Move the Blackfin port away from getRegClassForInlineAsmConstraint by
...
creating a few specific register classes.
Part of rdar://9643582
llvm-svn: 134086
2011-06-29 19:30:29 +00:00
Eric Christopher
c28587a5ff
Remove getRegClassForInlineAsmConstraint from MBlaze. Add a TODO comment
...
for the port.
Part of rdar://9643582
llvm-svn: 134085
2011-06-29 19:12:24 +00:00
Eric Christopher
82c3bcfb14
Remove getRegClassForInlineAsmConstraint for Mips.
...
Part of rdar://9643582
llvm-svn: 134084
2011-06-29 19:04:31 +00:00
Eric Christopher
c1c4011fcc
Remove getRegClassForInlineAsmConstraint from sparc.
...
Part of rdar://9643582
llvm-svn: 134083
2011-06-29 18:53:10 +00:00
Eric Christopher
ef4ee8ac18
Move XCore from getRegClassForInlineAsmConstraint to
...
getRegForInlineAsmConstraint.
Part of rdar://9643582
llvm-svn: 134080
2011-06-29 17:53:29 +00:00
Eric Christopher
3cd31a95dd
Use getRegForInlineAsmConstraint instead of custom defining regclasses
...
via vectors.
Part of rdar://9643582
llvm-svn: 134079
2011-06-29 17:23:50 +00:00
Evan Cheng
91e568589d
Add missing operand. rdar://9694169
...
llvm-svn: 134078
2011-06-29 17:14:00 +00:00
Chad Rosier
fc7dc596a4
Temporarily revert r134057: "Let simplify cfg simplify bb with only debug and
...
lifetime intrinsics" due to buildbot failures.
llvm-svn: 134071
2011-06-29 16:22:11 +00:00
Jim Grosbach
88387d64d6
Asm parser range checking on .<size> <value> directives.
...
For example, ".byte 256" would previously assert() when emitting an object
file. Now it generates a diagnostic that the literal value is out of range.
rdar://9686950
llvm-svn: 134069
2011-06-29 16:05:14 +00:00
Benjamin Kramer
d97872524b
Don't depend on the optimization reverted in r134067.
...
llvm-svn: 134068
2011-06-29 14:07:18 +00:00
Benjamin Kramer
cc91642a94
Revert a part of r126557 which could create unschedulable DAGs.
...
llvm-svn: 134067
2011-06-29 13:47:25 +00:00
Francois Pichet
f9f38d8d73
Change AsmName's type from StringRef to std::string. AsmName was pointing to a temporary string object that was destroyed. This is undefined behavior and MSVC didn't like it.
...
This fixes over 300+ failing tests on MSVC.
Credit for this fix goes to chapuni.
llvm-svn: 134064
2011-06-29 11:25:34 +00:00
Rafael Espindola
e9e560eb37
Let simplify cfg simplify bb with only debug and lifetime intrinsics.
...
llvm-svn: 134057
2011-06-29 05:25:47 +00:00
NAKAMURA Takumi
63570a1cf3
Fix CMake build.
...
llvm-svn: 134055
2011-06-29 03:26:17 +00:00
Andrew Trick
bc666880ad
indvars -disable-iv-rewrite: just because SCEV ignores casts doesn't
...
mean they can be removed.
llvm-svn: 134054
2011-06-29 03:13:40 +00:00
Jakob Stoklund Olesen
fbf3ec7692
Revert r134047 while investigating a llvm-gcc-i386-linux-selfhost
...
miscompile.
llvm-svn: 134053
2011-06-29 02:03:36 +00:00
Evan Cheng
b4dc8bdd22
Sink SubtargetFeature and TargetInstrItineraries (renamed MCInstrItineraries) into MC.
...
llvm-svn: 134049
2011-06-29 01:14:12 +00:00
Evan Cheng
baefa5a6ee
Trim include
...
llvm-svn: 134048
2011-06-29 00:35:31 +00:00
Jakob Stoklund Olesen
db62d3a5d0
Rewrite RAGreedy::splitAroundRegion, now with cool ASCII art.
...
This function has to deal with a lot of special cases, and the old
version got it wrong sometimes. In particular, it would sometimes leave
multiple uses in the stack interval in a single block. That causes bad
code with multiple reloads in the same basic block.
The new version handles block entry and exit in a single pass. It first
eliminates all the easy cases, and then goes on to create a local
interval for the blocks with difficult interference. Previously, we
would only create the local interval for completely isolated blocks.
It can happen that the stack interval becomes completely empty because
we could allocate a register in all edge bundles, and the new local
intervals deal with the interference. The empty stack interval is
harmless, but we need to remove a SplitKit assertion that checks for
empty intervals.
llvm-svn: 134047
2011-06-29 00:24:24 +00:00
Daniel Dunbar
8537fc79e1
build/Darwin: Fix epic typo fail.
...
llvm-svn: 134036
2011-06-28 22:30:17 +00:00
NAKAMURA Takumi
5db2c1243c
Fix a CMake warning, following up to r134008.
...
llvm-svn: 134033
2011-06-28 21:46:21 +00:00
Evan Cheng
40c31162b8
Unbreak every backend.
...
llvm-svn: 134031
2011-06-28 21:33:11 +00:00
Evan Cheng
65e7766262
Move CallFrameSetupOpcode and CallFrameDestroyOpcode to TargetInstrInfo.
...
llvm-svn: 134030
2011-06-28 21:14:33 +00:00
Evan Cheng
b83b307ae8
Hide more details in tablegen generated MCRegisterInfo ctor function.
...
llvm-svn: 134027
2011-06-28 20:44:22 +00:00
Evan Cheng
61530114d5
Add MCInstrInfo registeration machinery.
...
llvm-svn: 134026
2011-06-28 20:29:03 +00:00
Evan Cheng
a115f77785
Merge XXXGenRegisterNames.inc into XXXGenRegisterInfo.inc
...
llvm-svn: 134024
2011-06-28 20:07:07 +00:00
Evan Cheng
4a169be530
- Rename TargetInstrDesc, TargetOperandInfo to MCInstrDesc and MCOperandInfo and
...
sink them into MC layer.
- Added MCInstrInfo, which captures the tablegen generated static data. Chang
TargetInstrInfo so it's based off MCInstrInfo.
llvm-svn: 134021
2011-06-28 19:10:37 +00:00
Jakob Stoklund Olesen
7d3e1553d2
Clean up the handling of the x87 fp stack to make it more robust.
...
Drop the FpMov instructions, use plain COPY instead.
Drop the FpSET/GET instruction for accessing fixed stack positions.
Instead use normal COPY to/from ST registers around inline assembly, and
provide a single new FpPOP_RETVAL instruction that can access the return
value(s) from a call. This is still necessary since you cannot tell from
the CALL instruction alone if it returns anything on the FP stack. Teach
fast isel to use this.
This provides a much more robust way of handling fixed stack registers -
we can tolerate arbitrary FP stack instructions inserted around calls
and inline assembly. Live range splitting could sometimes break x87 code
by inserting spill code in unfortunate places.
As a bonus we handle floating point inline assembly correctly now.
llvm-svn: 134018
2011-06-28 18:32:28 +00:00
Chad Rosier
6a40804696
Reinstate r133516 "Remove some unnecessary uses of c_str()." A trailing null
...
character in std::string was causing failures for a few ObjC and Obj-C++ tests
when -flto was enabled. Revision 133999 resolved this issue. Thanks Jay!
rdar://9685235
PR10210
llvm-svn: 134017
2011-06-28 18:26:12 +00:00
Chad Rosier
8c0897147d
Remove warning: 'c0' may be used uninitialized in this function.
...
llvm-svn: 134014
2011-06-28 17:26:57 +00:00
Jakob Stoklund Olesen
be778cece1
Print registers by name instead of by number.
...
llvm-svn: 134013
2011-06-28 17:24:32 +00:00
Andrew Trick
db3349cc0b
cleanup: misleading comment.
...
llvm-svn: 134010
2011-06-28 16:45:04 +00:00
Andrew Trick
f8b6a62aa2
cmake: Our MSVC build does not support config-time build mode.
...
llvm-svn: 134008
2011-06-28 16:32:01 +00:00
Roman Divacky
736e37d9b9
Implement ISD::VAARG lowering on PPC32.
...
llvm-svn: 134005
2011-06-28 15:30:42 +00:00
Jay Foad
fa97b8b8fa
PR10210: New method ConstantArray::getAsCString(). Use it in LTO to
...
avoid getting embedded trailing null bytes in std::strings.
llvm-svn: 133999
2011-06-28 08:24:19 +00:00
Andrew Trick
48f76db97a
FileCheckify and prepare for -disable-iv-rewrite.
...
llvm-svn: 133998
2011-06-28 06:34:10 +00:00
Jakob Stoklund Olesen
55a0ce1776
FileCheckize a couple of tests.
...
Also and add a test for popping dead return values and avoid testing the
spill precision.
llvm-svn: 133997
2011-06-28 06:25:03 +00:00
Andrew Trick
9be3481cbd
Cleanup. Fix a stupid variable name.
...
llvm-svn: 133996
2011-06-28 05:44:06 +00:00
Andrew Trick
1fcf6615c4
Cleanup. Fix a stupid variable name.
...
llvm-svn: 133995
2011-06-28 05:41:52 +00:00
Andrew Trick
4ac5dd5154
SCEVExpander: give new insts a name that identifies the reponsible pass.
...
llvm-svn: 133992
2011-06-28 05:07:32 +00:00
Andrew Trick
c7b3d222cf
whitespace
...
llvm-svn: 133991
2011-06-28 05:04:16 +00:00
Nick Lewycky
8bdfa54742
Fix typo in comment.
...
llvm-svn: 133990
2011-06-28 03:57:31 +00:00
Rafael Espindola
0248022cce
Fix cmake build.
...
llvm-svn: 133989
2011-06-28 03:17:03 +00:00
Andrew Trick
eb9ed2c82e
indvars --disable-iv-rewrite: sever ties with IVUsers.
...
llvm-svn: 133988
2011-06-28 03:01:46 +00:00
Andrew Trick
9f6946c3a1
indvars --disable-iv-rewrite: Defer evaluating s/zext until SCEV
...
evaluates all other IV exprs.
llvm-svn: 133982
2011-06-28 02:49:20 +00:00
Chandler Carruth
46b0f79168
Fix CMake build by removing this now dead file.
...
llvm-svn: 133981
2011-06-28 02:03:12 +00:00