[llvm] [LV, VP]VP intrinsics support for the Loop Vectorizer (PR #76172)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 31 12:40:43 PST 2024


================
@@ -9492,14 +9596,33 @@ void VPWidenMemoryInstructionRecipe::execute(VPTransformState &State) {
     }
   }
 
+  auto MaskValue = [&](unsigned Part) -> Value * {
----------------
fhahn wrote:

might be simpler to just move `        Value *MaskPart = isMaskRequired ? BlockInMaskParts[Part] : nullptr;` up outside the if?

https://github.com/llvm/llvm-project/pull/76172


More information about the llvm-commits mailing list