llvm-6502/utils/TableGen
Dan Gohman 8be6bbe5bf Eliminate the ISel priority queue, which used the topological order for a
priority function. Instead, just iterate over the AllNodes list, which is
already in topological order. This eliminates a fair amount of bookkeeping,
and speeds up the isel phase by about 15% on many testcases.

The impact on most targets is that AddToISelQueue calls can be simply removed.

In the x86 target, there are two additional notable changes.

The rule-bending AND+SHIFT optimization in MatchAddress that creates new
pre-isel nodes during isel is now a little more verbose, but more robust.
Instead of either creating an invalid DAG or creating an invalid topological
sort, as it has historically done, it can now just insert the new nodes into
the node list at a position where they will be consistent with the topological
ordering.

Also, the address-matching code has logic that checked to see if a node was
"already selected". However, when a node is selected, it has all its uses
taken away via ReplaceAllUsesWith or equivalent, so it won't recieve any
further visits from MatchAddress. This code is now removed.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58748 91177308-0d34-0410-b5e6-96231b3b80d8
2008-11-05 04:14:16 +00:00
..
AsmWriterEmitter.cpp Remove tabs from my previous commit. 2008-10-27 19:21:35 +00:00
AsmWriterEmitter.h remove attributions from utils. 2007-12-29 20:37:13 +00:00
CallingConvEmitter.cpp Wrap MVT::ValueType in a struct to get type safety 2008-06-06 12:08:01 +00:00
CallingConvEmitter.h remove attributions from utils. 2007-12-29 20:37:13 +00:00
CMakeLists.txt Change how extended types are represented in MVTs. Instead of fiddling 2008-11-03 17:56:27 +00:00
CodeEmitterGen.cpp Fix shift overflow bug that would occur when a field was a full 32-bits 2008-10-05 18:31:58 +00:00
CodeEmitterGen.h remove attributions from utils. 2007-12-29 20:37:13 +00:00
CodeGenDAGPatterns.cpp Add support for having multiple predicates on a TreePatternNode. 2008-10-15 06:17:21 +00:00
CodeGenDAGPatterns.h Add support for having multiple predicates on a TreePatternNode. 2008-10-15 06:17:21 +00:00
CodeGenInstruction.cpp Remove redundant word in tblgen error message. 2008-10-27 15:59:43 +00:00
CodeGenInstruction.h Add a flag to indicate that an instruction is as cheap (or cheaper) than a move 2008-05-28 22:54:52 +00:00
CodeGenIntrinsics.h - Add "Commutative" property to intrinsics. This allows tblgen to generate the commuted variants for dagisel matching code. 2008-06-16 20:29:38 +00:00
CodeGenRegisters.h Wrap MVT::ValueType in a struct to get type safety 2008-06-06 12:08:01 +00:00
CodeGenTarget.cpp Factor the code for determining the target-specific instruction 2008-08-20 21:45:57 +00:00
CodeGenTarget.h Factor the code for determining the target-specific instruction 2008-08-20 21:45:57 +00:00
DAGISelEmitter.cpp Eliminate the ISel priority queue, which used the topological order for a 2008-11-05 04:14:16 +00:00
DAGISelEmitter.h Teach the DAGISelEmitter to not compute the variable_ops operand 2008-05-31 02:11:25 +00:00
FastISelEmitter.cpp Add support for having multiple predicates on a TreePatternNode. 2008-10-15 06:17:21 +00:00
FastISelEmitter.h Refactor a bunch of FastISelEmitter code into a helper class, and 2008-08-26 21:21:20 +00:00
InstrEnumEmitter.cpp Add <cstdio> include where needed by gcc-4.4. 2008-10-08 07:23:46 +00:00
InstrEnumEmitter.h split enum emission out from InstrInfoEmitter into it's own tblgen backend. 2008-01-06 00:49:05 +00:00
InstrInfoEmitter.cpp Add RCBarriers to TargetInstrDesc. It's a list of register classes the given instruction can "clobber". For example, on x86 the call instruction can modify all of the XMM and fp stack registers. 2008-10-17 21:00:09 +00:00
InstrInfoEmitter.h Add RCBarriers to TargetInstrDesc. It's a list of register classes the given instruction can "clobber". For example, on x86 the call instruction can modify all of the XMM and fp stack registers. 2008-10-17 21:00:09 +00:00
IntrinsicEmitter.cpp Large mechanical patch. 2008-09-25 21:00:45 +00:00
IntrinsicEmitter.h remove attributions from utils. 2007-12-29 20:37:13 +00:00
LLVMCConfigurationEmitter.cpp Move llvmc2 header files under include/llvm/CompilerDriver 2008-09-22 20:50:40 +00:00
LLVMCConfigurationEmitter.h Fix some headers. 2008-05-30 06:20:54 +00:00
Makefile remove attributions from tools/utils makefiles. 2007-12-29 20:07:17 +00:00
Record.cpp Fun x86 encoding tricks: when adding an immediate value of 128, 2008-10-17 01:33:43 +00:00
Record.h Unbreak LLVM on the MSVC compiler: 2008-10-22 09:54:13 +00:00
RegisterInfoEmitter.cpp Fun x86 encoding tricks: when adding an immediate value of 128, 2008-10-17 01:33:43 +00:00
RegisterInfoEmitter.h remove attributions from utils. 2007-12-29 20:37:13 +00:00
SubtargetEmitter.cpp lib/Target/SubtargetFeature.cpp asserts that the FeatureKV[] table be sorted 2008-09-11 17:05:32 +00:00
SubtargetEmitter.h remove attributions from utils. 2007-12-29 20:37:13 +00:00
TableGen.cpp Initial checkin of the new "fast" instruction selection support. See 2008-08-13 20:19:35 +00:00
TableGenBackend.cpp change getQualifiedName to be a global function. 2008-01-05 22:25:12 +00:00
TableGenBackend.h change getQualifiedName to be a global function. 2008-01-05 22:25:12 +00:00
TGLexer.cpp Fun x86 encoding tricks: when adding an immediate value of 128, 2008-10-17 01:33:43 +00:00
TGLexer.h Unbreak LLVM on the MSVC compiler: 2008-10-22 09:54:13 +00:00
TGParser.cpp Fun x86 encoding tricks: when adding an immediate value of 128, 2008-10-17 01:33:43 +00:00
TGParser.h remove attributions from utils. 2007-12-29 20:37:13 +00:00
TGValueTypes.cpp Give tablegen's Type a destructor, to suppress spurious 2008-11-04 18:09:07 +00:00