[llvm] [VPlan] Use subpattern-m_VPValue in simplifyRecipe (NFC) (PR #213268)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 31 08:23:56 PDT 2026
================
@@ -1598,18 +1598,17 @@ static void simplifyRecipe(VPSingleDefRecipe *Def) {
// Def = IVInc + Y
// Fold the increment Y into the phi's start value, replace Def with IVInc,
// and if Inc exists, replace it with X.
- if (match(Def, m_Add(m_Add(m_VPValue(X), m_VPValue()), m_VPValue(Y))) &&
----------------
lukel97 wrote:
Might read clearer if we bind it to a dedicated `VPValue *IVInc;` instead of using Z, since the comments above reference IVInc
https://github.com/llvm/llvm-project/pull/213268
More information about the llvm-commits
mailing list