[llvm] [LoopVectorize] Fix crash in VPWidenRecipe (PR #177357)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 27 07:14:27 PST 2026
================
@@ -2273,9 +2273,11 @@ void VPWidenRecipe::execute(VPTransformState &State) {
}
case Instruction::ExtractValue: {
assert(getNumOperands() == 2 && "expected single level extractvalue");
- Value *Op = State.get(getOperand(0));
+ Value *Op = State.get(getOperand(0), /*NeedsScalar=*/true);
----------------
fhahn wrote:
This looks a bit confusing, would be good to have a comment to clarify why that is needed
https://github.com/llvm/llvm-project/pull/177357
More information about the llvm-commits
mailing list