[llvm-commits] Addition to SplitVectorOp

Villmow, Micah Micah.Villmow at amd.com
Wed Mar 11 11:27:48 PDT 2009


Split vector op does not currently handle splitting vector based shift
operations.

@@ -7206,11 +7206,14 @@

     case ISD::AND:

     case ISD::OR:

     case ISD::XOR:

     case ISD::UREM:

     case ISD::SREM:

<    case ISD::FREM: {

->   case ISD::FREM:

->   case ISD::SHL:

->   case ISD::SRA:

->   case ISD::SRL:{

       SDValue LL, LH, RL, RH;

       SplitVectorOp(Node->getOperand(0), LL, LH);

       SplitVectorOp(Node->getOperand(1), RL, RH);

       

       Lo = DAG.getNode(Node->getOpcode(), NewVT_Lo, LL, RL);

 

 

The following code snippet adds in this support.

 

 

Micah Villmow

Systems Engineer

Advanced Technology & Performance

Advanced Micro Devices Inc.

S1-609 One AMD Place

Sunnyvale, CA. 94085

P: 408-749-3966

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090311/d7a63c7f/attachment.html>


More information about the llvm-commits mailing list