diff options
Diffstat (limited to 'llvm/utils/TableGen/CodeGenTarget.cpp')
-rw-r--r-- | llvm/utils/TableGen/CodeGenTarget.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/utils/TableGen/CodeGenTarget.cpp b/llvm/utils/TableGen/CodeGenTarget.cpp index 42fbb98..e87ffb7 100644 --- a/llvm/utils/TableGen/CodeGenTarget.cpp +++ b/llvm/utils/TableGen/CodeGenTarget.cpp @@ -393,16 +393,6 @@ ComplexPattern::ComplexPattern(Record *R) { SelectFunc = R->getValueAsString("SelectFunc"); RootNodes = R->getValueAsListOfDefs("RootNodes"); - // FIXME: This is a hack to statically increase the priority of patterns which - // maps a sub-dag to a complex pattern. e.g. favors LEA over ADD. To get best - // possible pattern match we'll need to dynamically calculate the complexity - // of all patterns a dag can potentially map to. - int64_t RawComplexity = R->getValueAsInt("Complexity"); - if (RawComplexity == -1) - Complexity = NumOperands * 3; - else - Complexity = RawComplexity; - // Parse the properties. Properties = 0; std::vector<Record*> PropList = R->getValueAsListOfDefs("Properties"); |