[PATCH] D156026: [InstCombine] Contracting x^2 + 2*x*y + y^2 to (x + y)^2 (integer)
Noah Goldstein via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 30 08:57:06 PDT 2023
goldstein.w.n added inline comments.
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp:1007
+ m_OneUse(m_Mul(
+ m_Add(m_Shl(m_Deferred(A), m_SpecificInt(1)), m_Value(B)),
+ m_Deferred(B)))));
----------------
This should be `m_c_Add`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156026/new/
https://reviews.llvm.org/D156026
More information about the llvm-commits
mailing list