[PATCH] D26713: [ppc] Legalize the load of MVT::v4i8 into VSX register

Ehsan Amiri via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 24 05:08:10 PST 2016


amehsan added inline comments.


================
Comment at: lib/Target/PowerPC/PPCISelLowering.cpp:681-683
+      // Legalization will eliminate the illegal type, and finally LXSIWAX can
+      // be generated.
+      setLoadExtAction(ISD::EXTLOAD, MVT::v16i8, MVT::v4i8, Custom);
----------------
Now that we are fixing this for v4i8, is it possible to fix this for some other vector types if a similar fix makes sense for them? For example does it make sense to make a similar change for v4i16 or v2i16 as well?


https://reviews.llvm.org/D26713





More information about the llvm-commits mailing list