[llvm] [VPlan] Fix LastActiveLane assertion on scalar VF (PR #167897)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 17 00:48:58 PST 2025


================
@@ -46,6 +46,12 @@ VPValue *vputils::getOrCreateVPValueForSCEVExpr(VPlan &Plan, const SCEV *Expr) {
   return Expanded;
 }
 
+static inline auto m_CanonicalScalarIVSteps(const VPlan &Plan) {
----------------
fhahn wrote:

If it’s only used in a single function, you can re-use by assigning the pattern to a variable I think?

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


More information about the llvm-commits mailing list