summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-28 05:54:03 +0000
committerChris Lattner <sabre@nondot.org>2010-03-28 05:54:03 +0000
commit4d8786b5cc743ac437fe70993f386bb582dfc178 (patch)
treeca3f53568e8a17aaa2ab048854507e5719c2d462 /llvm/lib
parent49e2773dd84010d724f6b458c15aa251ee6b85de (diff)
downloadbcm5719-llvm-4d8786b5cc743ac437fe70993f386bb582dfc178.tar.gz
bcm5719-llvm-4d8786b5cc743ac437fe70993f386bb582dfc178.zip
now that (parallel) is gone and a variety of bugs in targets
are cleaned up, we can remove an old fixme. llvm-svn: 99741
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 6e5a6adbfeb..00ac9635fde 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -2687,14 +2687,10 @@ SelectCodeCommon(SDNode *NodeToMatch, const unsigned char *MatcherTable,
assert(ResSlot < RecordedNodes.size() && "Invalid CheckSame");
SDValue Res = RecordedNodes[ResSlot];
- // FIXME2: Eliminate this horrible hack by fixing the 'Gen' program
- // after (parallel) on input patterns are removed. This would also
- // allow us to stop encoding #results in OPC_CompleteMatch's table
- // entry.
- if (i >= NodeToMatch->getNumValues() ||
- NodeToMatch->getValueType(i) == MVT::Other ||
- NodeToMatch->getValueType(i) == MVT::Flag)
- break;
+ assert(i < NodeToMatch->getNumValues() &&
+ NodeToMatch->getValueType(i) != MVT::Other &&
+ NodeToMatch->getValueType(i) != MVT::Flag &&
+ "Invalid number of results to complete!");
assert((NodeToMatch->getValueType(i) == Res.getValueType() ||
NodeToMatch->getValueType(i) == MVT::iPTR ||
Res.getValueType() == MVT::iPTR ||
OpenPOWER on IntegriCloud