[PATCH] D33404: [PowerPC] Fix a performance bug for PPC::XXPERMDI.
Eric Christopher via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 25 17:57:05 PDT 2017
echristo added inline comments.
================
Comment at: lib/Target/PowerPC/PPCISelLowering.cpp:1772
+bool PPC::isXXPERMDIShuffleMask(ShuffleVectorSDNode *N, unsigned &DM,
+ bool &Swap, bool IsLE) {
+ assert(N->getValueType(0) == MVT::v16i8 && "Shuffle vector expects v16i8");
----------------
Since this is basically two functions concatenated on each other with a boolean parameter it seems reasonable to just remove the parameter and split it into two functions and dispatch in the caller.
Or do it as a followup with the rest of them, but either way it'd be good to get the endianness stuff cleaned up.
https://reviews.llvm.org/D33404
More information about the llvm-commits
mailing list