diff options
author | Dan Gohman <gohman@apple.com> | 2008-08-21 00:35:26 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-08-21 00:35:26 +0000 |
commit | 520b50c00d237ef4309fca364202d111f9faa82f (patch) | |
tree | 0668054e5fb51e0f8c082e905362d978bfd521a0 | |
parent | 7f92ebddd27c8d099e04cc879cc8199dba88cec1 (diff) |
Remove the code that limited FastISel to certain fixed signatures.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55096 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | utils/TableGen/FastISelEmitter.cpp | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/utils/TableGen/FastISelEmitter.cpp b/utils/TableGen/FastISelEmitter.cpp index 77a39ea44e..406fb6edff 100644 --- a/utils/TableGen/FastISelEmitter.cpp +++ b/utils/TableGen/FastISelEmitter.cpp @@ -164,14 +164,6 @@ void FastISelEmitter::run(std::ostream &OS) { typedef std::map<OperandsSignature, OpcodeTypeMap> OperandsOpcodeTypeMap; OperandsOpcodeTypeMap SimplePatterns; - // Create the supported type signatures. - OperandsSignature KnownOperands; - SimplePatterns[KnownOperands] = OpcodeTypeMap(); - KnownOperands.Operands.push_back("r"); - SimplePatterns[KnownOperands] = OpcodeTypeMap(); - KnownOperands.Operands.push_back("r"); - SimplePatterns[KnownOperands] = OpcodeTypeMap(); - for (CodeGenDAGPatterns::ptm_iterator I = CGP.ptm_begin(), E = CGP.ptm_end(); I != E; ++I) { const PatternToMatch &Pattern = *I; @@ -222,18 +214,12 @@ void FastISelEmitter::run(std::ostream &OS) { if (!Operands.initialize(InstPatNode, Target, VT, DstRC)) continue; - // If it's not a known signature, ignore it. - if (!SimplePatterns.count(Operands)) - continue; - // Ok, we found a pattern that we can handle. Remember it. - { - InstructionMemo Memo = { - Pattern.getDstPattern()->getOperator()->getName(), - DstRC - }; - SimplePatterns[Operands][OpcodeName][VT] = Memo; - } + InstructionMemo Memo = { + Pattern.getDstPattern()->getOperator()->getName(), + DstRC + }; + SimplePatterns[Operands][OpcodeName][VT] = Memo; } // Declare the target FastISel class. |