[llvm] [LV] Introduce m_One and improve (0|1)-match (NFC) (PR #157419)

Mel Chen via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 9 00:31:55 PDT 2025


================
@@ -186,7 +186,7 @@ bool EVLIndVarSimplifyImpl::run(Loop &L) {
   Value *TC = nullptr;
   auto IntrinsicMatch = m_Intrinsic<Intrinsic::experimental_get_vector_length>(
       m_Value(RemTC), m_SpecificInt(VF),
-      /*Scalable=*/m_SpecificInt(1));
+      /*Scalable=*/m_One());
----------------
Mel-Chen wrote:

This isn’t using VPlanPatternMatch, so it should be unrelated to this patch?

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


More information about the llvm-commits mailing list