[llvm] [VPlan] Simplify add x, (sub 0, y) -> sub x, y (PR #187228)
Ramkumar Ramachandra via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 27 01:05:33 PDT 2026
================
@@ -1452,14 +1452,26 @@ static void simplifyRecipe(VPSingleDefRecipe *Def, VPTypeAnalysis &TypeInfo) {
Plan->getZero(TypeInfo.inferScalarType(Def)));
if (CanCreateNewRecipe && match(Def, m_c_Mul(m_VPValue(A), m_AllOnes()))) {
----------------
artagnon wrote:
Just forgot to push after rebase -- note that wrap-flags regress in some cases, and https://github.com/llvm/llvm-project/pull/187710 would fix it.
https://github.com/llvm/llvm-project/pull/187228
More information about the llvm-commits
mailing list