diff options
author | Craig Topper <craig.topper@gmail.com> | 2013-10-04 05:52:17 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2013-10-04 05:52:17 +0000 |
commit | 596cfd045fa05c249083b5ff7cdb5e32f4d92b97 (patch) | |
tree | 4ec8f6a3f1f347d8717c9fabce8a6fbe1db55d0c /lib | |
parent | d3562956789dbd0571a7e46052bee64b153fa7c4 (diff) | |
download | external_llvm-596cfd045fa05c249083b5ff7cdb5e32f4d92b97.zip external_llvm-596cfd045fa05c249083b5ff7cdb5e32f4d92b97.tar.gz external_llvm-596cfd045fa05c249083b5ff7cdb5e32f4d92b97.tar.bz2 |
Revert r191940 to see if it fixes the build bots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191941 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index f362a7b..fcde6b5 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -2097,18 +2097,6 @@ CheckSame(const unsigned char *MatcherTable, unsigned &MatcherIndex, return N == RecordedNodes[RecNo].first; } -/// CheckChildSame - Implements OP_CheckChildXSame. -LLVM_ATTRIBUTE_ALWAYS_INLINE static bool -CheckChildSame(const unsigned char *MatcherTable, unsigned &MatcherIndex, - SDValue N, - const SmallVectorImpl<std::pair<SDValue, SDNode*> > &RecordedNodes, - unsigned ChildNo) { - if (ChildNo >= N.getNumOperands()) - return false; // Match fails if out of range child #. - return ::CheckSame(MatcherTable, MatcherIndex, N.getOperand(ChildNo), - RecordedNodes); -} - /// CheckPatternPredicate - Implements OP_CheckPatternPredicate. LLVM_ATTRIBUTE_ALWAYS_INLINE static bool CheckPatternPredicate(const unsigned char *MatcherTable, unsigned &MatcherIndex, @@ -2223,13 +2211,6 @@ static unsigned IsPredicateKnownToFail(const unsigned char *Table, case SelectionDAGISel::OPC_CheckSame: Result = !::CheckSame(Table, Index, N, RecordedNodes); return Index; - case SelectionDAGISel::OPC_CheckChild0Same: - case SelectionDAGISel::OPC_CheckChild1Same: - case SelectionDAGISel::OPC_CheckChild2Same: - case SelectionDAGISel::OPC_CheckChild3Same: - Result = !::CheckChildSame(Table, Index, N, RecordedNodes, - Table[Index-1] - SelectionDAGISel::OPC_CheckChild0Same); - return Index; case SelectionDAGISel::OPC_CheckPatternPredicate: Result = !::CheckPatternPredicate(Table, Index, SDISel); return Index; @@ -2527,14 +2508,6 @@ SelectCodeCommon(SDNode *NodeToMatch, const unsigned char *MatcherTable, case OPC_CheckSame: if (!::CheckSame(MatcherTable, MatcherIndex, N, RecordedNodes)) break; continue; - - case OPC_CheckChild0Same: case OPC_CheckChild1Same: - case OPC_CheckChild2Same: case OPC_CheckChild3Same: - if (!::CheckChildSame(MatcherTable, MatcherIndex, N, RecordedNodes, - Opcode-OPC_CheckChild0Same)) - break; - continue; - case OPC_CheckPatternPredicate: if (!::CheckPatternPredicate(MatcherTable, MatcherIndex, *this)) break; continue; |