[llvm] [LV] Reverse mask up front, not when creating vector pointer. (PR #72163)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 17 08:08:22 PST 2023
================
@@ -9562,8 +9562,12 @@ void VPWidenMemoryInstructionRecipe::execute(VPTransformState &State) {
InnerLoopVectorizer::VectorParts BlockInMaskParts(State.UF);
bool isMaskRequired = getMask();
if (isMaskRequired)
----------------
ayalz wrote:
nit: worth retaining the comment below, perhaps here, that reversal is restricted to required masks because `// Reverse of a null all-one mask is a null mask.`
https://github.com/llvm/llvm-project/pull/72163
More information about the llvm-commits
mailing list