aboutsummaryrefslogtreecommitdiff
path: root/utils/TableGen/CodeGenDAGPatterns.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-18 21:15:05 +0000
committerChris Lattner <sabre@nondot.org>2010-03-18 21:15:05 +0000
commitef988984d75c1d64bc03ad4743f43f5f36619bcb (patch)
treedeff737023144e1ff12e1fb56980aae142cc2ec6 /utils/TableGen/CodeGenDAGPatterns.cpp
parent0b6c926856fe6de3ab2180bdcfd642d9342cd163 (diff)
simplify this code, the # of sets in the pattern for an instruction
shouldn't change this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98872 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeGenDAGPatterns.cpp')
-rw-r--r--utils/TableGen/CodeGenDAGPatterns.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/TableGen/CodeGenDAGPatterns.cpp b/utils/TableGen/CodeGenDAGPatterns.cpp
index 35d6d77137..35142ad292 100644
--- a/utils/TableGen/CodeGenDAGPatterns.cpp
+++ b/utils/TableGen/CodeGenDAGPatterns.cpp
@@ -1145,8 +1145,7 @@ bool TreePatternNode::ApplyTypeConstraints(TreePattern &TP, bool NotRegisters) {
CodeGenInstruction &InstInfo =
CDP.getTargetInfo().getInstruction(getOperator()->getName());
// Apply the result type to the node
- if (NumResults == 0 ||
- InstInfo.NumDefs == 0) {
+ if (InstInfo.NumDefs == 0) { // # of elements in (outs) list
MadeChange = UpdateNodeType(MVT::isVoid, TP);
} else {
Record *ResultNode = Inst.getResult(0);