[llvm] [VPlan] Handle single-scalar conds in VPWidenSelectRecipe. (PR #165506)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 6 01:13:33 PST 2025
================
@@ -659,7 +659,9 @@ Value *VPInstruction::generate(VPTransformState &State) {
}
case Instruction::Select: {
bool OnlyFirstLaneUsed = vputils::onlyFirstLaneUsed(this);
----------------
ayalz wrote:
The usage of OnlyFirstLaneUsed here and elsewhere deserves rethinking, its usage here essentially asks if the recipe deals with single scalar operands (and result), rather than using only first lanes if multiple lanes are provided.
https://github.com/llvm/llvm-project/pull/165506
More information about the llvm-commits
mailing list