[llvm] [VPlan] Strip dead code in cst live-in match (NFC) (PR #159589)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 18 08:04:48 PDT 2025


================
@@ -109,10 +109,6 @@ template <typename Pred, unsigned BitWidth = 0> struct int_pred_ty {
     if (!V)
       return false;
     const auto *CI = dyn_cast<ConstantInt>(V);
-    if (!CI && V->getType()->isVectorTy())
-      if (const auto *C = dyn_cast<Constant>(V))
-        CI = dyn_cast_or_null<ConstantInt>(
-            C->getSplatValue(/*AllowPoison=*/false));
----------------
fhahn wrote:

Can you assert instead, so we catch this if we ever add support for vector live-ins?

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


More information about the llvm-commits mailing list