llvm-6502/lib/Target/PIC16
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
PIC16.h Fixed the file description header at the top to remove the developer name. 2008-05-14 06:50:01 +00:00
PIC16.td Detabification. Fixed indentation and spacing. 2008-05-14 11:31:39 +00:00
PIC16AsmPrinter.cpp Unneeded include's. 2008-06-19 01:21:02 +00:00
PIC16CallingConv.td Detabification. Fixed indentation and spacing. 2008-05-14 11:31:39 +00:00
PIC16ConstantPoolValue.cpp
PIC16ConstantPoolValue.h Trim unnecessary #includes. 2008-07-11 20:38:31 +00:00
PIC16InstrFormats.td Detabification. Fixed indentation and spacing. 2008-05-14 11:31:39 +00:00
PIC16InstrInfo.cpp Detabification. Fixed indentation and spacing. 2008-05-14 11:31:39 +00:00
PIC16InstrInfo.h
PIC16InstrInfo.td Detabification. Fixed indentation and spacing. 2008-05-14 11:31:39 +00:00
PIC16ISelDAGToDAG.cpp Add a new function, ReplaceAllUsesOfValuesWith, which handles bulk 2008-07-17 19:10:17 +00:00
PIC16ISelLowering.cpp Split ISD::LABEL into ISD::DBG_LABEL and ISD::EH_LABEL, eliminating 2008-07-01 00:05:16 +00:00
PIC16ISelLowering.h Detabification. Fixed indentation and spacing. 2008-05-14 11:31:39 +00:00
PIC16RegisterInfo.cpp Pool-allocation for MachineInstrs, MachineBasicBlocks, and 2008-07-07 23:14:23 +00:00
PIC16RegisterInfo.h Detabification. Fixed indentation and spacing. 2008-05-14 11:31:39 +00:00
PIC16RegisterInfo.td
PIC16Subtarget.cpp Detabification. Fixed indentation and spacing. 2008-05-14 11:31:39 +00:00
PIC16Subtarget.h Detabification. Fixed indentation and spacing. 2008-05-14 11:31:39 +00:00
PIC16TargetAsmInfo.cpp
PIC16TargetAsmInfo.h
PIC16TargetMachine.cpp Detabification. Fixed indentation and spacing. 2008-05-14 11:31:39 +00:00
PIC16TargetMachine.h Detabification. Fixed indentation and spacing. 2008-05-14 11:31:39 +00:00