Changes in directory llvm/lib/Target/PowerPC:

PPCISelLowering.cpp updated: 1.124 -> 1.125
---
Log message:

Custom lower all BUILD_VECTOR's so that we can compile vec_splat_u8(8) into
"vspltisb v0, 8" instead of a constant pool load.


---
Diffs of the changes:  (+2 -0)

 PPCISelLowering.cpp |    2 ++
 1 files changed, 2 insertions(+)


Index: llvm/lib/Target/PowerPC/PPCISelLowering.cpp
diff -u llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.124 
llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.125
--- llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.124   Fri Mar 31 13:52:36 2006
+++ llvm/lib/Target/PowerPC/PPCISelLowering.cpp Sat Apr  1 18:43:36 2006
@@ -204,6 +204,8 @@
     setOperationAction(ISD::SCALAR_TO_VECTOR, MVT::v4f32, Custom);
     setOperationAction(ISD::SCALAR_TO_VECTOR, MVT::v4i32, Custom);
     
+    setOperationAction(ISD::BUILD_VECTOR, MVT::v16i8, Custom);
+    setOperationAction(ISD::BUILD_VECTOR, MVT::v8i16, Custom);
     setOperationAction(ISD::BUILD_VECTOR, MVT::v4i32, Custom);
     setOperationAction(ISD::BUILD_VECTOR, MVT::v4f32, Custom);
   }



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to