[llvm] [VPlan] Make canonical IV part of the region (PR #156262)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 2 00:48:05 PDT 2025
================
@@ -168,7 +172,9 @@ class LLVM_ABI_FOR_TEST VPValue {
bool hasDefiningRecipe() const { return getDefiningRecipe(); }
/// Returns true if this VPValue is a live-in, i.e. defined outside the VPlan.
- bool isLiveIn() const { return !hasDefiningRecipe(); }
+ bool isLiveIn() const {
+ return !hasDefiningRecipe() && SubclassID != VPRegionValueSC;
----------------
ayalz wrote:
Perhaps more consistent to have both check SubclassID
https://github.com/llvm/llvm-project/pull/156262
More information about the llvm-commits
mailing list