[llvm] [VPlan] Add specialized VPValue subclasses for different types (NFC) (PR #172758)

via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 4 14:05:46 PST 2026


================
@@ -449,8 +450,8 @@ SmallVector<VPRegisterUsage, 8> llvm::calculateRegisterUsageForPlan(
         // FIXME: Might need some motivation why these values are ignored. If
         // for example an argument is used inside the loop it will increase the
         // register pressure (so shouldn't we add it to LoopInvariants).
-        if (!DefR && (!U->getLiveInIRValue() ||
-                      !isa<Instruction>(U->getLiveInIRValue())))
+        auto *LI = dyn_cast<VPIRValue>(U);
----------------
ayalz wrote:

```suggestion
        auto *IRV = dyn_cast<VPIRValue>(U);
```

https://github.com/llvm/llvm-project/pull/172758


More information about the llvm-commits mailing list