[all-commits] [llvm/llvm-project] 0a3353: [PatternMatch] Add `m_c_XorLike` matcher; NFC (#12...

goldsteinn via All-commits all-commits at lists.llvm.org
Sat Jan 18 09:23:22 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0a33532500a90668f5cfe485134e9c9c388d3614
      https://github.com/llvm/llvm-project/commit/0a33532500a90668f5cfe485134e9c9c388d3614
  Author: goldsteinn <35538541+goldsteinn at users.noreply.github.com>
  Date:   2025-01-18 (Sat, 18 Jan 2025)

  Changed paths:
    M llvm/include/llvm/IR/PatternMatch.h
    M llvm/unittests/IR/PatternMatch.cpp

  Log Message:
  -----------
  [PatternMatch] Add `m_c_XorLike` matcher; NFC (#122642)

`m_c_XorLike` matches either:
    `(xor L, R)`, `(xor R, L)`, or `(sub nuw R, L)` iff `R.isMask()`.

This is in preperation for dropping the fold from:
    `(sub C_Mask, X)` -> `(xor X, C_Mask)`



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list