[llvm] ce44e0b - [VPlan] Handle Select in isSingleScalar. (NFCI)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 28 14:06:17 PDT 2025
Author: Florian Hahn
Date: 2025-08-28T22:04:36+01:00
New Revision: ce44e0b63ad277aae6909b3b2cfd57c8163de4c1
URL: https://github.com/llvm/llvm-project/commit/ce44e0b63ad277aae6909b3b2cfd57c8163de4c1
DIFF: https://github.com/llvm/llvm-project/commit/ce44e0b63ad277aae6909b3b2cfd57c8163de4c1.diff
LOG: [VPlan] Handle Select in isSingleScalar. (NFCI)
Selects also are single-scalars if all their operands are. Should be NFC
at the moment, but will be used in future patches.
Added:
Modified:
llvm/lib/Transforms/Vectorize/VPlanUtils.h
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/VPlanUtils.h b/llvm/lib/Transforms/Vectorize/VPlanUtils.h
index 9e1d325a4d8d6..2959e9440e753 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanUtils.h
+++ b/llvm/lib/Transforms/Vectorize/VPlanUtils.h
@@ -49,6 +49,7 @@ inline bool isSingleScalar(const VPValue *VPV) {
case Instruction::GetElementPtr:
case Instruction::ICmp:
case Instruction::FCmp:
+ case Instruction::Select:
case VPInstruction::Broadcast:
case VPInstruction::PtrAdd:
return true;
More information about the llvm-commits
mailing list