[llvm] [PatternMatchHelpers] Introduce m_Unless (NFC) (PR #212454)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 30 10:51:55 PDT 2026
================
@@ -2781,10 +2781,8 @@ void VPlanTransforms::dropPoisonGeneratingRecipes(VPlan &Plan) {
// wrapped in a Reverse, which is just a permutation of the header mask, so
// peel it off before checking. The header mask is still the abstract region
// value at this point (materialization happens later).
- auto IsNotHeaderMask = [](VPValue *Mask) {
- return Mask &&
- !match(Mask, m_CombineOr(m_HeaderMask(), m_Reverse(m_HeaderMask())));
- };
+ auto m_UnlessHdrMask = m_Unless( // NOLINT
----------------
fhahn wrote:
Ah right, but here `m_UnlessHdrMask` is not a generic matcher any more, so could also just be `UnlessHdrMask`?
https://github.com/llvm/llvm-project/pull/212454
More information about the llvm-commits
mailing list