[llvm-commits] Addition to SplitVectorOp

Mon Ping Wang monping at apple.com
Wed Mar 11 12:00:22 PDT 2009


What file/version are you looking at? In llvm tot, split vector does  
split vector shifts in LegalizeDAG.cpp and in LegalizeVectorTypes.cpp.

-- Mon Ping


On Mar 11, 2009, at 11:27 AM, Villmow, Micah wrote:

> 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
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

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


More information about the llvm-commits mailing list