[llvm] [X86] Attempt to canonicalize vXf64 SHUFPD shuffle masks with undef elts to improve further folding (PR #116419)
Phoebe Wang via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 15 20:47:37 PST 2024
================
@@ -9926,6 +9926,42 @@ static SDValue getV4X86ShuffleImm8ForMask(ArrayRef<int> Mask, const SDLoc &DL,
return DAG.getTargetConstant(getV4X86ShuffleImm(Mask), DL, MVT::i8);
}
+// Canonicalize SHUFPD mask to improve chances of further folding.
----------------
phoebewang wrote:
There's no further folding showing in test cases. Does it need a follow up patch?
https://github.com/llvm/llvm-project/pull/116419
More information about the llvm-commits
mailing list