diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-18 20:50:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-18 20:50:52 +0000 |
commit | 5f418eafdc61f16335f2249ce2d31a6a4da75ea8 (patch) | |
tree | 2265434130104519c8a6b69d6e1c6b2492ce8031 /llvm/utils/TableGen/CodeGenDAGPatterns.cpp | |
parent | 0204bc3de1bdebfa4a91693b1e5e1e826f191675 (diff) | |
download | bcm5719-llvm-5f418eafdc61f16335f2249ce2d31a6a4da75ea8.tar.gz bcm5719-llvm-5f418eafdc61f16335f2249ce2d31a6a4da75ea8.zip |
remove some code that was working around old sparc v9 backend bugs.
Add checking that the input/output operand list in spelled right.
llvm-svn: 98865
Diffstat (limited to 'llvm/utils/TableGen/CodeGenDAGPatterns.cpp')
-rw-r--r-- | llvm/utils/TableGen/CodeGenDAGPatterns.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp index 6e894a46bce..35d6d771371 100644 --- a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp +++ b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp @@ -1145,7 +1145,8 @@ 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 (NumResults == 0 || + InstInfo.NumDefs == 0) { MadeChange = UpdateNodeType(MVT::isVoid, TP); } else { Record *ResultNode = Inst.getResult(0); |