[llvm] [VPlan] Don't fold live ins with both scalar and vector operands (PR #154067)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 18 05:42:49 PDT 2025
================
@@ -976,14 +976,9 @@ static Value *tryToFoldLiveIns(const VPRecipeBase &R, unsigned Opcode,
RFlags.getGEPNoWrapFlags());
}
case VPInstruction::PtrAdd:
- case VPInstruction::WidePtrAdd:
return Folder.FoldGEP(IntegerType::getInt8Ty(TypeInfo.getContext()), Ops[0],
Ops[1],
cast<VPRecipeWithIRFlags>(R).getGEPNoWrapFlags());
- case Instruction::InsertElement:
- return Folder.FoldInsertElement(Ops[0], Ops[1], Ops[2]);
- case Instruction::ExtractElement:
- return Folder.FoldExtractElement(Ops[0], Ops[1]);
----------------
fhahn wrote:
Right, so extracting any lane will return the live-in operand, which we can do w/o calling the folder, together with comment for why we are not calling the folder
https://github.com/llvm/llvm-project/pull/154067
More information about the llvm-commits
mailing list