llvm-6502/lib/Target/Mips
Dan Gohman e8be6c6391 Add a new function, ReplaceAllUsesOfValuesWith, which handles bulk
replacement of multiple values. This is slightly more efficient
than doing multiple ReplaceAllUsesOfValueWith calls, and theoretically
could be optimized even further. However, an important property of this
new function is that it handles the case where the source value set and
destination value set overlap. This makes it feasible for isel to use
SelectNodeTo in many very common cases, which is advantageous because
SelectNodeTo avoids a temporary node and it doesn't require CSEMap
updates for users of values that don't change position.

Revamp MorphNodeTo, which is what does all the work of SelectNodeTo, to
handle operand lists more efficiently, and to correctly handle a number
of corner cases to which its new wider use exposes it.

This commit also includes a change to the encoding of post-isel opcodes
in SDNodes; now instead of being sandwiched between the target-independent
pre-isel opcodes and the target-dependent pre-isel opcodes, post-isel
opcodes are now represented as negative values. This makes it possible
to test if an opcode is pre-isel or post-isel without having to know
the size of the current target's post-isel instruction set.

These changes speed up llc overall by 3% and reduce memory usage by 10%
on the InstructionCombining.cpp testcase with -fast and -regalloc=local.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53728 91177308-0d34-0410-b5e6-96231b3b80d8
2008-07-17 19:10:17 +00:00
..
Makefile remove attribution from lib Makefiles. 2007-12-29 20:09:26 +00:00
Mips.h Use PassManagerBase instead of FunctionPassManager for functions 2008-03-11 22:29:46 +00:00
Mips.td Fixed features usage. 2008-07-09 05:32:22 +00:00
MipsAsmPrinter.cpp Fixed call stack alignment. Improved AsmPrinter alignment issues. 2008-07-15 02:03:36 +00:00
MipsCallingConv.td Several changes to Mips backend, experimental fp support being the most 2008-07-05 19:05:21 +00:00
MipsDelaySlotFiller.cpp rename TargetInstrDescriptor -> TargetInstrDesc. 2008-01-07 07:27:27 +00:00
MipsInstrFormats.td Fixe typos and 80 column size problems 2008-07-09 04:45:36 +00:00
MipsInstrFPU.td Fixe typos and 80 column size problems 2008-07-09 04:45:36 +00:00
MipsInstrInfo.cpp Added Subtarget support into RegisterInfo 2008-07-14 14:42:54 +00:00
MipsInstrInfo.h Fixe typos and 80 column size problems 2008-07-09 04:45:36 +00:00
MipsInstrInfo.td Added Subtarget support into RegisterInfo 2008-07-14 14:42:54 +00:00
MipsISelDAGToDAG.cpp Add a new function, ReplaceAllUsesOfValuesWith, which handles bulk 2008-07-17 19:10:17 +00:00
MipsISelLowering.cpp Fixed call stack alignment. Improved AsmPrinter alignment issues. 2008-07-15 02:03:36 +00:00
MipsISelLowering.h Fixe typos and 80 column size problems 2008-07-09 04:45:36 +00:00
MipsMachineFunction.h Several changes to Mips backend, experimental fp support being the most 2008-07-05 19:05:21 +00:00
MipsRegisterInfo.cpp Fixed call stack alignment. Improved AsmPrinter alignment issues. 2008-07-15 02:03:36 +00:00
MipsRegisterInfo.h Added Subtarget support into RegisterInfo 2008-07-14 14:42:54 +00:00
MipsRegisterInfo.td Several changes to Mips backend, experimental fp support being the most 2008-07-05 19:05:21 +00:00
MipsSchedule.td Remove attribution from file headers, per discussion on llvmdev. 2007-12-29 20:36:04 +00:00
MipsSubtarget.cpp Added Subtarget support into RegisterInfo 2008-07-14 14:42:54 +00:00
MipsSubtarget.h Added Subtarget support into RegisterInfo 2008-07-14 14:42:54 +00:00
MipsTargetAsmInfo.cpp Fixed call stack alignment. Improved AsmPrinter alignment issues. 2008-07-15 02:03:36 +00:00
MipsTargetAsmInfo.h Remove attribution from file headers, per discussion on llvmdev. 2007-12-29 20:36:04 +00:00
MipsTargetMachine.cpp Fixed call stack alignment. Improved AsmPrinter alignment issues. 2008-07-15 02:03:36 +00:00
MipsTargetMachine.h Some Mips minor fixes 2008-06-04 01:45:25 +00:00