Clean up the mess created by r131467+r131469.
authorEli Friedman <eli.friedman@gmail.com>
Tue, 17 May 2011 18:02:22 +0000 (18:02 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Tue, 17 May 2011 18:02:22 +0000 (18:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131471 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86ISelLowering.h

index 6fcceae2dfbbbd05e5fcd69a0940cbfad418c6c8..ff4a283b58318462d18207fe84c8e06d31fc2f49 100644 (file)
@@ -2104,8 +2104,6 @@ X86TargetLowering::LowerCall(SDValue Chain, SDValue Callee,
         }
         if (ShadowReg)
           RegsToPass.push_back(std::make_pair(ShadowReg, Arg));
-      } else {        // Usual case: not byval.
-        RegsToPass.push_back(std::make_pair(VA.getLocReg(), Arg));
       }
     } else if (!IsSibcall && (!isTailCall || isByVal)) {
       assert(VA.isMemLoc());
@@ -11063,13 +11061,6 @@ static SDValue PerformEXTRACT_VECTOR_ELTCombine(SDNode *N, SelectionDAG &DAG,
   return SDValue();
 }
 
-/// PerformEXTRACT_VECTOR_ELTCombine - Detect vector gather/scatter index
-/// generation and convert it from being a bunch of shuffles and extracts
-/// to a simple store and scalar loads to extract the elements.
-static SDValue PerformVectorZeroExtendCombine(SDNode *N, SelectionDAG &DAG) {
-  return SDValue();
-}
-
 /// PerformSELECTCombine - Do target-specific dag combines on SELECT nodes.
 static SDValue PerformSELECTCombine(SDNode *N, SelectionDAG &DAG,
                                     const X86Subtarget *Subtarget) {
@@ -12130,9 +12121,6 @@ SDValue X86TargetLowering::PerformDAGCombine(SDNode *N,
   case X86ISD::VZEXT_MOVL:  return PerformVZEXT_MOVLCombine(N, DAG);
   case ISD::ZERO_EXTEND:    return PerformZExtCombine(N, DAG);
   case X86ISD::SETCC:       return PerformSETCCCombine(N, DAG);
-  case X86ISD::PMOVZXBW:
-  case X86ISD::PMOVZXWD:
-  case X86ISD::PMOVZXDQ:    return PerformVectorZeroExtendCombine(N, DAG);
   case X86ISD::SHUFPS:      // Handle all target specific shuffles
   case X86ISD::SHUFPD:
   case X86ISD::PALIGN:
index ad1652866e9c33dd3317a6814c45043d96f590c6..ca84a990450cb17865dcb7efa00809808e00fab0 100644 (file)
@@ -263,10 +263,6 @@ namespace llvm {
       PUNPCKHDQ,
       PUNPCKHQDQ,
 
-      PMOVZXBW,
-      PMOVZXWD,
-      PMOVZXDQ,
-
       // VASTART_SAVE_XMM_REGS - Save xmm argument registers to the stack,
       // according to %al. An operator is needed so that this can be expanded
       // with control flow.