[llvm] [VPlan] Prevent uses of materialized VPSymbolicValues. (NFC) (PR #182318)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 10 08:15:57 PDT 2026
================
@@ -1407,11 +1407,14 @@ bool VPValue::isDefinedOutsideLoopRegions() const {
}
void VPValue::replaceAllUsesWith(VPValue *New) {
replaceUsesWithIf(New, [](VPUser &, unsigned) { return true; });
+ if (auto *SV = dyn_cast<VPSymbolicValue>(this))
+ SV->markMaterialized();
----------------
lukel97 wrote:
Is anything guarding this in a non-asserts build without NDEBUG? It doesn't look like there's a definition for markMaterialized otherwise
https://github.com/llvm/llvm-project/pull/182318
More information about the llvm-commits
mailing list