projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b6c926
)
simplify this code, the # of sets in the pattern for an instruction
author
Chris Lattner
<sabre@nondot.org>
Thu, 18 Mar 2010 21:15:05 +0000
(21:15 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 18 Mar 2010 21:15:05 +0000
(21:15 +0000)
shouldn't change this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98872
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/TableGen/CodeGenDAGPatterns.cpp
patch
|
blob
|
history
diff --git
a/utils/TableGen/CodeGenDAGPatterns.cpp
b/utils/TableGen/CodeGenDAGPatterns.cpp
index 35d6d771371be738907934d7f2adf369e8467a34..35142ad29297e2897bd278e6d208e27e99099789 100644
(file)
--- 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);