diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-18 21:15:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-18 21:15:05 +0000 |
commit | 13590892e76ca3d965c5c721a00b7e9a7cce1c0c (patch) | |
tree | 8cab90b31d35574be30388c71ed08f488611371b /llvm | |
parent | 81fd1f20bac3c8c360ed3cc40cd288170c83f6ae (diff) | |
download | bcm5719-llvm-13590892e76ca3d965c5c721a00b7e9a7cce1c0c.tar.gz bcm5719-llvm-13590892e76ca3d965c5c721a00b7e9a7cce1c0c.zip |
simplify this code, the # of sets in the pattern for an instruction
shouldn't change this.
llvm-svn: 98872
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/utils/TableGen/CodeGenDAGPatterns.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp index 35d6d771371..35142ad2929 100644 --- a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp +++ b/llvm/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); |