aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/TableGen/CodeGenTarget.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2016-11-09 18:17:50 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2016-11-09 18:17:50 +0000
commita9cadeddd49dd8dcbede4cee8d8cdd93766ab96e (patch)
tree28afee3e3a6c352b5d9aaa56b98cd7f77bafabb7 /llvm/utils/TableGen/CodeGenTarget.cpp
parent4c15db45e471f7eebe733c9a3efacb0678a41589 (diff)
downloadllvm-a9cadeddd49dd8dcbede4cee8d8cdd93766ab96e.zip
llvm-a9cadeddd49dd8dcbede4cee8d8cdd93766ab96e.tar.gz
llvm-a9cadeddd49dd8dcbede4cee8d8cdd93766ab96e.tar.bz2
Revert r286384, "X86: Introduce the "relocImm" ComplexPattern, which represents a relocatable immediate."
Suspected to be the cause of a sanitizer-windows bot failure: Assertion failed: isImm() && "Wrong MachineOperand accessor", file C:\b\slave\sanitizer-windows\llvm\include\llvm/CodeGen/MachineOperand.h, line 420 llvm-svn: 286385
Diffstat (limited to 'llvm/utils/TableGen/CodeGenTarget.cpp')
-rw-r--r--llvm/utils/TableGen/CodeGenTarget.cpp10
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");