llvm-6502/test/CodeGen/Mips
Dan Gohman 2ba60e5930 Eliminate LegalizeOps' LegalizedNodes map and have it just call RAUW
on every node as it legalizes them. This makes it easier to use
hasOneUse() heuristics, since unneeded nodes can be removed from the
DAG earlier.

Make LegalizeOps visit the DAG in an operands-last order. It previously
used operands-first, because LegalizeTypes has to go operands-first, and
LegalizeTypes used to be part of LegalizeOps, but they're now split.
The operands-last order is more natural for several legalization tasks.
For example, it allows lowering code for nodes with floating-point or
vector constants to see those constants directly instead of seeing the
lowered form (often constant-pool loads). This makes some things
somewhat more complicated today, though it ought to allow things to be
simpler in the future. It also fixes some bugs exposed by Legalizing
using RAUW aggressively.

Remove the part of LegalizeOps that attempted to patch up invalid chain
operands on libcalls generated by LegalizeTypes, since it doesn't work
with the new LegalizeOps traversal order. Instead, define what
LegalizeTypes is doing to be correct, and transfer the responsibility
of keeping calls from having overlapping calling sequences into the
scheduler.

Teach the scheduler to model callseq_begin/end pairs as having a
physical register definition/use to prevent calls from having
overlapping calling sequences. This is also somewhat complicated, though
there are ways it might be simplified in the future.

This addresses rdar://9816668, rdar://10043614, rdar://8434668, and others.
Please direct high-level questions about this patch to management.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143177 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-28 01:29:32 +00:00
..
2008-06-05-Carry.ll Correct bogus module triple specifications. 2010-08-30 10:48:29 +00:00
2008-07-03-SRet.ll Correct bogus module triple specifications. 2010-08-30 10:48:29 +00:00
2008-07-06-fadd64.ll Re-enable some of the disabled tests. Use FileCheck instead of grep to check 2011-09-21 17:36:30 +00:00
2008-07-07-Float2Int.ll Correct bogus module triple specifications. 2010-08-30 10:48:29 +00:00
2008-07-07-FPExtend.ll Re-enable some of the disabled tests. Use FileCheck instead of grep to check 2011-09-21 17:36:30 +00:00
2008-07-07-IntDoubleConvertions.ll Re-enable some of the disabled tests. Use FileCheck instead of grep to check 2011-09-21 17:36:30 +00:00
2008-07-15-InternalConstant.ll Re-enable some of the disabled tests. Use FileCheck instead of grep to check 2011-09-21 17:36:30 +00:00
2008-07-15-SmallSection.ll Remove +. 2011-09-21 17:43:48 +00:00
2008-07-16-SignExtInReg.ll Drop support for Allegrex. Allegrex implements a variant of Mips2. 2011-09-09 19:00:51 +00:00
2008-07-22-Cstpool.ll Be nice to Xcore and the XMOS assembler and avoid quoting section names 2011-03-04 20:03:14 +00:00
2008-07-23-fpcmp.ll Added support for FP conditional move instructions and fixed bugs in handling of FP comparisons. 2011-03-31 18:26:17 +00:00
2008-07-29-icmp.ll Added support for FP conditional move instructions and fixed bugs in handling of FP comparisons. 2011-03-31 18:26:17 +00:00
2008-07-31-fcopysign.ll Custom-lower FCOPYSIGN nodes. 2011-05-25 19:32:07 +00:00
2008-08-01-AsmInline.ll Correct bogus module triple specifications. 2010-08-30 10:48:29 +00:00
2008-08-03-fabs64.ll Drop support for Allegrex. Allegrex implements a variant of Mips2. 2011-09-09 19:00:51 +00:00
2008-08-03-ReturnDouble.ll Unbreak test, Bruno please check. 2009-11-19 07:18:49 +00:00
2008-08-04-Bitconvert.ll Correct bogus module triple specifications. 2010-08-30 10:48:29 +00:00
2008-08-06-Alloca.ll These tests no longer require linear scan because reserved register coalescing is now universal. 2011-04-05 21:40:41 +00:00
2008-08-07-CC.ll Correct bogus module triple specifications. 2010-08-30 10:48:29 +00:00
2008-08-07-FPRound.ll Re-enable some of the disabled tests. Use FileCheck instead of grep to check 2011-09-21 17:36:30 +00:00
2008-08-08-bswap.ll Drop support for Allegrex. Allegrex implements a variant of Mips2. 2011-09-09 19:00:51 +00:00
2008-08-08-ctlz.ll Correct bogus module triple specifications. 2010-08-30 10:48:29 +00:00
2008-10-13-LegalizerBug.ll Eliminate more uses of llvm-as and llvm-dis. 2009-09-09 00:09:15 +00:00
2008-11-10-xint_to_fp.ll Eliminate more uses of llvm-as and llvm-dis. 2009-09-09 00:09:15 +00:00
2009-11-16-CstPoolLoad.ll Start function numbering at 0. 2010-04-17 16:29:15 +00:00
2010-04-07-DbgValueOtherTargets.ll If dbg_declare() or dbg_value() is not lowered by isel then emit DEBUG message instead of creating DBG_VALUE for undefined value in reg0. 2010-12-06 22:39:26 +00:00
2010-07-20-Switch.ll Change the default scheduler from Latency to ILP, since Latency 2011-10-24 17:45:02 +00:00
2010-11-09-CountLeading.ll Fix test cases. 2011-09-09 23:14:58 +00:00
2010-11-09-Mul.ll Fix test cases. 2011-09-09 23:14:58 +00:00
2011-05-26-BranchKillsVreg.ll Fix PR10046 by updating LiveVariables kill info when splitting live ranges. 2011-05-29 20:10:28 +00:00
addc.ll Add a testcase for the addc improvements introduced some commits ago. Patch by Akira Hatanaka 2011-03-09 21:05:32 +00:00
alloca.ll Fix test cases. 2011-09-09 23:14:58 +00:00
analyzebranch.ll Add code for analyzing FP branches. Clean up branch Analysis functions. 2011-04-01 17:39:08 +00:00
atomic.ll Convert more tests over to the new atomic instructions. 2011-09-26 20:27:49 +00:00
blockaddr.ll Add support for C++ exception handling. 2011-05-26 18:59:03 +00:00
brdelayslot.ll Fill delay slot with useful instructions. Modified from Sparc's version of delay 2011-09-29 23:52:13 +00:00
buildpairextractelementf64.ll Make tests register allocation independent again. 2011-04-19 00:14:43 +00:00
cmov.ll Change the default scheduler from Latency to ILP, since Latency 2011-10-24 17:45:02 +00:00
constantfp0.ll Test case for 137484 2011-08-12 18:12:06 +00:00
cprestore.ll Eliminate LegalizeOps' LegalizedNodes map and have it just call RAUW 2011-10-28 01:29:32 +00:00
dg.exp
divrem.ll Improve div/rem node handling on mips. Patch by Akira Hatanaka 2011-03-04 21:03:24 +00:00
double2int.ll Fix test cases. 2011-09-09 23:14:58 +00:00
eh.ll Change the default scheduler from Latency to ILP, since Latency 2011-10-24 17:45:02 +00:00
extins.ll Add support for ext and ins. 2011-08-17 02:05:42 +00:00
fcopysign.ll Change the default scheduler from Latency to ILP, since Latency 2011-10-24 17:45:02 +00:00
fpbr.ll Added support for FP conditional move instructions and fixed bugs in handling of FP comparisons. 2011-03-31 18:26:17 +00:00
frame-address.ll Drop support for Mips1 and Mips2. 2011-09-09 20:45:50 +00:00
gprestore.ll Remove LLVM IR metadata in test case committed in r130847. 2011-05-04 18:28:36 +00:00
i64arg.ll Change the default scheduler from Latency to ILP, since Latency 2011-10-24 17:45:02 +00:00
inlineasmmemop.ll Change the default scheduler from Latency to ILP, since Latency 2011-10-24 17:45:02 +00:00
internalfunc.ll Fix test cases. 2011-09-09 23:14:58 +00:00
largeimm1.ll Add testcase for r127032 2011-03-04 20:48:39 +00:00
largeimmprinting.ll Eliminate LegalizeOps' LegalizedNodes map and have it just call RAUW 2011-10-28 01:29:32 +00:00
madd-msub.ll Remove unnecessary checking of register operands. 2011-09-30 19:18:24 +00:00
mips64fpldst.ll Test cases for 64-bit load and store instructions. 2011-10-11 01:52:31 +00:00
mips64instrs.ll Move CHECK after entry label. 2011-10-03 21:24:30 +00:00
mips64intldst.ll Test cases for 64-bit load and store instructions. 2011-10-11 01:52:31 +00:00
mips64shift.ll Add definitions of Mips64 rotate instructions. 2011-09-30 18:51:46 +00:00
mipslopat.ll Add pattern used to match MipsLo, which is needed when the instruction selector 2011-09-13 20:13:58 +00:00
o32_cc_byval.ll Change the default scheduler from Latency to ILP, since Latency 2011-10-24 17:45:02 +00:00
o32_cc_vararg.ll Drop support for Mips1 and Mips2. 2011-09-09 20:45:50 +00:00
o32_cc.ll Fix test cases. 2011-09-09 23:14:58 +00:00
private.ll make the asmparser reject function and type redefinitions. 'Merging' hasn't been 2011-06-17 07:06:44 +00:00
rotate.ll Remove unnecessary checking of register operands. 2011-09-30 19:18:24 +00:00
select.ll Fix test cases. 2011-09-09 23:14:58 +00:00
tls.ll Drop support for Mips1 and Mips2. 2011-09-09 20:45:50 +00:00
unalignedload.ll Change the default scheduler from Latency to ILP, since Latency 2011-10-24 17:45:02 +00:00
weak.ll Define WeakRefDirective. 2011-05-25 23:30:30 +00:00