summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-01 22:49:06 +0000
committerChris Lattner <sabre@nondot.org>2010-03-01 22:49:06 +0000
commit3d869722b64680f3bde2d63e31677cd7d15d8365 (patch)
tree30084adefc32425e0e41f2d616f14f58390abd71 /llvm/utils/TableGen
parent281827286ef8bd1993a5a8f1b5c3dfb3eb470953 (diff)
downloadbcm5719-llvm-3d869722b64680f3bde2d63e31677cd7d15d8365.tar.gz
bcm5719-llvm-3d869722b64680f3bde2d63e31677cd7d15d8365.zip
resolve some fixmes
llvm-svn: 97515
Diffstat (limited to 'llvm/utils/TableGen')
-rw-r--r--llvm/utils/TableGen/DAGISelMatcherGen.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/llvm/utils/TableGen/DAGISelMatcherGen.cpp b/llvm/utils/TableGen/DAGISelMatcherGen.cpp
index 260d4df5888..c0f04deb55f 100644
--- a/llvm/utils/TableGen/DAGISelMatcherGen.cpp
+++ b/llvm/utils/TableGen/DAGISelMatcherGen.cpp
@@ -36,12 +36,9 @@ static MVT::SimpleValueType getRegisterValueType(Record *R,
VT = RC.getValueTypeNum(0);
continue;
}
-
- // In multiple RC's. If the Types of the RC's do not agree, return
- // MVT::Other. The target is responsible for handling this.
- if (VT != RC.getValueTypeNum(0))
- // FIXME2: when does this happen? Abort?
- return MVT::Other;
+
+ // If this occurs in multiple register classes, they all have to agree.
+ assert(VT == RC.getValueTypeNum(0));
}
return VT;
}
@@ -849,10 +846,6 @@ void MatcherGen::EmitResultCode() {
AddMatcher(new MarkFlagResultsMatcher(MatchedFlagResultNodes.data(),
MatchedFlagResultNodes.size()));
-
- // We know that the resulting pattern has exactly one result/
- // FIXME2: why? what about something like (set a,b,c, (complexpat))
- // FIXME2: Implicit results should be pushed here I guess?
AddMatcher(new CompleteMatchMatcher(Ops.data(), Ops.size(), Pattern));
}
OpenPOWER on IntegriCloud