[llvm] [LV] Don't consider VPValues without underlying value as generating vectors (PR #150992)
Ramkumar Ramachandra via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 28 23:40:19 PDT 2025
================
@@ -4247,6 +4248,9 @@ static bool willGenerateVectors(VPlan &Plan, ElementCount VF,
// operand.
VPValue *ToCheck =
R.getNumDefinedValues() >= 1 ? R.getVPValue(0) : R.getOperand(1);
+ // Don't consider values that didn't come from the original scalar IR.
+ if (!ToCheck->getUnderlyingValue())
----------------
artagnon wrote:
Use isLiveIn and getLiveInIRValue for clarity?
https://github.com/llvm/llvm-project/pull/150992
More information about the llvm-commits
mailing list