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

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 6 13:31:14 PST 2026


================
@@ -36,8 +36,8 @@ VPTypeAnalysis::VPTypeAnalysis(const VPlan &Plan) : Ctx(Plan.getContext()) {
   // If there's no canonical IV, retrieve the type from the trip count
   // expression.
   auto *TC = Plan.getTripCount();
-  if (TC->isLiveIn()) {
-    CanonicalIVTy = TC->getLiveInIRValue()->getType();
+  if (auto *TCLI = dyn_cast<VPIRValue>(TC)) {
----------------
fhahn wrote:

updated to TCIRV, thanks

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


More information about the llvm-commits mailing list