1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-28 14:32:51 +01:00
llvm-mirror/include/llvm/CodeGen
Dan Gohman 8981962672 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.

llvm-svn: 53728
2008-07-17 19:10:17 +00:00
..
AsmPrinter.h Unbreak C++ tests on x86 Darwin. 2008-07-08 16:40:43 +00:00
BreakCriticalMachineEdge.h Fix the name of BreakCriticalMachineEdge.h's include guard 2008-07-16 16:04:07 +00:00
CallingConvLower.h Wrap MVT::ValueType in a struct to get type safety 2008-06-06 12:08:01 +00:00
Collector.h Don't attribute in file headers anymore. See llvmdev for the 2007-12-29 19:59:42 +00:00
CollectorMetadata.h Don't attribute in file headers anymore. See llvmdev for the 2007-12-29 19:59:42 +00:00
Collectors.h Don't attribute in file headers anymore. See llvmdev for the 2007-12-29 19:59:42 +00:00
DAGISelHeader.h Add a new function, ReplaceAllUsesOfValuesWith, which handles bulk 2008-07-17 19:10:17 +00:00
DwarfWriter.h Don't attribute in file headers anymore. See llvmdev for the 2007-12-29 19:59:42 +00:00
ELFRelocation.h Don't attribute in file headers anymore. See llvmdev for the 2007-12-29 19:59:42 +00:00
FileWriters.h Use PassManagerBase instead of FunctionPassManager for functions 2008-03-11 22:29:46 +00:00
IntrinsicLowering.h Don't attribute in file headers anymore. See llvmdev for the 2007-12-29 19:59:42 +00:00
LinkAllCodegenComponents.h Do not use computationally expensive scheduling heuristics with -fast. 2008-07-01 18:05:03 +00:00
LiveInterval.h Instead of adding an isSS field to LiveInterval to denote stack slot. Use top bit of 'reg' instead. If the top bit is set, than the LiveInterval represents a stack slot live interval. 2008-06-23 21:03:19 +00:00
LiveIntervalAnalysis.h - Change the horrible N^2 isRegReDefinedByTwoAddr. Now callers must supply the operand index of def machineoperand and at most one full scan of non-implicit operands is needed. 2008-07-10 07:35:43 +00:00
LiveStackAnalysis.h Add a stack slot coloring pass. Not yet enabled. 2008-06-04 09:18:41 +00:00
LiveVariables.h - Remove calls to copyKillDeadInfo which is an N^2 function. Instead, propagate kill / dead markers as new instructions are constructed in foldMemoryOperand, convertToThressAddress, etc. 2008-07-03 09:09:37 +00:00
MachineBasicBlock.h Pool-allocation for MachineInstrs, MachineBasicBlocks, and 2008-07-07 23:14:23 +00:00
MachineCodeEmitter.h Prune and tidy #includes. 2008-05-29 19:52:31 +00:00
MachineConstantPool.h Trim unnecessary #includes. 2008-07-11 20:38:31 +00:00
MachineDominators.h Don't attribute in file headers anymore. See llvmdev for the 2007-12-29 19:59:42 +00:00
MachineFrameInfo.h Stack objects have nonnegative indices, not just positive indices. 2008-07-10 19:57:25 +00:00
MachineFunction.h Pool-allocation for MachineInstrs, MachineBasicBlocks, and 2008-07-07 23:14:23 +00:00
MachineFunctionPass.h Don't attribute in file headers anymore. See llvmdev for the 2007-12-29 19:59:42 +00:00
MachineInstr.h Add a utility function to MachineInstr for testing whether an instruction 2008-07-12 00:10:52 +00:00
MachineInstrBuilder.h Pool-allocation for MachineInstrs, MachineBasicBlocks, and 2008-07-07 23:14:23 +00:00
MachineJumpTableInfo.h Fix more -Wshorten-64-to-32 warnings. 2008-05-05 18:30:58 +00:00
MachineLocation.h Rename MRegisterInfo to TargetRegisterInfo. 2008-02-10 18:45:23 +00:00
MachineLoopInfo.h Remove uses of llvm/System/IncludeFile.h that are no longer needed. 2008-05-06 01:32:53 +00:00
MachineMemOperand.h Move MachineMemOperand's constructor out of line, to avoid a 2008-07-07 20:32:02 +00:00
MachineModuleInfo.h Use StringMap for greater justice! 2008-07-07 20:59:31 +00:00
MachineOperand.h Fix a copy+pasto in an assertion string. 2008-07-10 19:58:23 +00:00
MachinePassRegistry.h Don't attribute in file headers anymore. See llvmdev for the 2007-12-29 19:59:42 +00:00
MachineRegisterInfo.h Minor spiller tweak to unfavor reload into load/store instructions. 2008-06-19 01:16:17 +00:00
MachineRelocation.h Revert 51775. 2008-05-30 22:47:19 +00:00
MachORelocation.h Don't attribute in file headers anymore. See llvmdev for the 2007-12-29 19:59:42 +00:00
Passes.h Add a stack slot coloring pass. Not yet enabled. 2008-06-04 09:18:41 +00:00
PseudoSourceValue.h Include a frame index in the "fixed stack" pseudo source value 2008-07-11 22:44:52 +00:00
RegAllocRegistry.h Don't attribute in file headers anymore. See llvmdev for the 2007-12-29 19:59:42 +00:00
RegisterCoalescer.h Remove uses of "llvm/Support/Debug.h" from LLVM include files, which 2008-07-07 18:14:29 +00:00
RegisterScavenging.h Allow registers defined by implicit_def to be clobbered. 2008-04-10 23:47:53 +00:00
RuntimeLibcalls.h Factorize some code for determining which libcall to use. 2008-07-17 02:36:29 +00:00
ScheduleDAG.h Reapply 53476 and 53480, with a fix so that it properly updates 2008-07-14 18:19:29 +00:00
SchedulerRegistry.h Do not use computationally expensive scheduling heuristics with -fast. 2008-07-01 18:05:03 +00:00
SelectionDAG.h Add a new function, ReplaceAllUsesOfValuesWith, which handles bulk 2008-07-17 19:10:17 +00:00
SelectionDAGISel.h Reapply 53476 and 53480, with a fix so that it properly updates 2008-07-14 18:19:29 +00:00
SelectionDAGNodes.h Add a new function, ReplaceAllUsesOfValuesWith, which handles bulk 2008-07-17 19:10:17 +00:00
ValueTypes.h Allow these transforms for types like i256 while 2008-06-16 08:14:38 +00:00
ValueTypes.td remove attribution from a variety of miscellaneous files. 2007-12-29 22:59:10 +00:00