http://llvm.org/bugs/show_bug.cgi?id=4039

           Summary: LegalizeDAG does not allow custom lowering of
                    EXTRACT_SUBVECTOR
           Product: tools
           Version: 2.5
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llc
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


The original code:
 case ISD::EXTRACT_SUBVECTOR: 
   Tmp1 = Node->getOperand(0);
   Tmp2 = LegalizeOp(Node->getOperand(1));
    Result = DAG.UpdateNodeOperands(Result, Tmp1, Tmp2);
   Result = ExpandEXTRACT_SUBVECTOR(Result);
   break;


Code that allows Custom Lowering:
LegalizeDAG.cpp:1792
 case ISD::EXTRACT_SUBVECTOR: 
   Tmp1 = LegalizeOp(Node->getOperand(0));
   Tmp2 = LegalizeOp(Node->getOperand(1));
    Result = DAG.UpdateNodeOperands(Result, Tmp1, Tmp2);
// Allow targets to custom lower the SHUFFLEs they support.
    switch
(TLI.getOperationAction(ISD::EXTRACT_SUBVECTOR,Result.getValueType())) {
    default: assert(0 && "Unknown operation action!");
    case TargetLowering::Custom:
      Tmp3 = TLI.LowerOperation(Result, DAG);
      if (Tmp3.getNode()) {
        Result = Tmp3;
        break;
      }
    case TargetLowering::Expand: {
      Result = LegalizeOp(ExpandEXTRACT_SUBVECTOR(Result));
      }
    break;
        };
   break;


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to