[llvm] [VPlan] Unroll VPReplicateRecipe by VF. (PR #142433)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 9 02:20:47 PDT 2025
================
@@ -493,6 +493,9 @@ Value *VPInstruction::generate(VPTransformState &State) {
}
case Instruction::ExtractElement: {
assert(State.VF.isVector() && "Only extract elements from vectors");
+ return State.get(getOperand(0),
+ VPLane(cast<ConstantInt>(getOperand(1)->getLiveInIRValue())
+ ->getZExtValue()));
Value *Vec = State.get(getOperand(0));
----------------
david-arm wrote:
Why are lines 499-501 not deleted, given that we've already returned on line 496?
https://github.com/llvm/llvm-project/pull/142433
More information about the llvm-commits
mailing list