[llvm-commits] [llvm] r96752 - /llvm/trunk/include/llvm/CodeGen/DAGISelHeader.h
Chris Lattner
sabre at nondot.org
Sun Feb 21 12:10:43 PST 2010
Author: lattner
Date: Sun Feb 21 14:10:43 2010
New Revision: 96752
URL: http://llvm.org/viewvc/llvm-project?rev=96752&view=rev
Log:
teach OPC_CheckType to handle MVT::iPTR, down to 2 ppc failures.
Modified:
llvm/trunk/include/llvm/CodeGen/DAGISelHeader.h
Modified: llvm/trunk/include/llvm/CodeGen/DAGISelHeader.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/DAGISelHeader.h?rev=96752&r1=96751&r2=96752&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/DAGISelHeader.h (original)
+++ llvm/trunk/include/llvm/CodeGen/DAGISelHeader.h Sun Feb 21 14:10:43 2010
@@ -406,10 +406,16 @@
case OPC_CheckOpcode:
if (N->getOpcode() != MatcherTable[MatcherIndex++]) break;
continue;
- case OPC_CheckType:
- if (N.getValueType() !=
- (MVT::SimpleValueType)MatcherTable[MatcherIndex++]) break;
+ case OPC_CheckType: {
+ MVT::SimpleValueType VT =
+ (MVT::SimpleValueType)MatcherTable[MatcherIndex++];
+ if (N.getValueType() != VT) {
+ // Handle the case when VT is iPTR.
+ if (VT != MVT::iPTR || N.getValueType() != TLI.getPointerTy())
+ break;
+ }
continue;
+ }
case OPC_CheckCondCode:
if (cast<CondCodeSDNode>(N)->get() !=
(ISD::CondCode)MatcherTable[MatcherIndex++]) break;
More information about the llvm-commits
mailing list