make this check a bit more generous, it may be outliving its
authorChris Lattner <sabre@nondot.org>
Sun, 21 Feb 2010 20:02:15 +0000 (20:02 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 21 Feb 2010 20:02:15 +0000 (20:02 +0000)
utility.  Down to 6 ppc failures.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96751 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/DAGISelHeader.h

index 4ed662f06e01eb23751fdfec30bf56e4070fd499..137d45c3d2ad01e6225d49bfe3ea22601a9435ae 100644 (file)
@@ -717,6 +717,8 @@ SDNode *SelectCodeCommon(SDNode *NodeToMatch, const unsigned char *MatcherTable,
         assert(ResSlot < RecordedNodes.size() && "Invalid CheckSame");
         SDValue Res = RecordedNodes[ResSlot];
         assert((NodeToMatch->getValueType(i) == Res.getValueType() ||
+                NodeToMatch->getValueType(i) == MVT::iPTR ||
+                Res.getValueType() == MVT::iPTR ||
                 NodeToMatch->getValueType(i).getSizeInBits() ==
                     Res.getValueType().getSizeInBits()) &&
                "invalid replacement");