summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-11-02 00:11:39 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-11-02 00:11:39 +0000
commit0f38d989bd720e0a64dd70bb5fdc3c772c1559a5 (patch)
tree12762ef81b9a1d31e26f204b86fdd3a54e44fa5b /llvm/utils/TableGen/CodeGenDAGPatterns.cpp
parent8cce1eb6aa562b991e4841d3d6605e4790de7da0 (diff)
downloadbcm5719-llvm-0f38d989bd720e0a64dd70bb5fdc3c772c1559a5.tar.gz
bcm5719-llvm-0f38d989bd720e0a64dd70bb5fdc3c772c1559a5.zip
Do not infer the target type for COPY_TO_REGCLASS from dest regclass, this won't work if it can contain several types. Require explicit result type for the node for now. This fixes PR5364.
PS: It seems that blackfin usage of copy_to_regclass is completely bogus! llvm-svn: 85766
Diffstat (limited to 'llvm/utils/TableGen/CodeGenDAGPatterns.cpp')
-rw-r--r--llvm/utils/TableGen/CodeGenDAGPatterns.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
index 6b8ceaefa25..fab41c5f4c4 100644
--- a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
+++ b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
@@ -915,7 +915,6 @@ bool TreePatternNode::ApplyTypeConstraints(TreePattern &TP, bool NotRegisters) {
bool MadeChange = false;
MadeChange |= getChild(0)->ApplyTypeConstraints(TP, NotRegisters);
MadeChange |= getChild(1)->ApplyTypeConstraints(TP, NotRegisters);
- MadeChange |= UpdateNodeType(getChild(1)->getTypeNum(0), TP);
return MadeChange;
} else if (const CodeGenIntrinsic *Int = getIntrinsicInfo(CDP)) {
bool MadeChange = false;
OpenPOWER on IntegriCloud