[all-commits] [llvm/llvm-project] c49c7d: [InstCombine] Combine and->cmp->sel->or-disjoint i...

Jeffrey Byrnes via All-commits all-commits at lists.llvm.org
Wed May 28 17:17:17 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c49c7ddb0b335708778d2bfd88119c439bd0973e
      https://github.com/llvm/llvm-project/commit/c49c7ddb0b335708778d2bfd88119c439bd0973e
  Author: Jeffrey Byrnes <jeffrey.byrnes at amd.com>
  Date:   2025-05-28 (Wed, 28 May 2025)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
    A llvm/test/Transforms/InstCombine/or-bitmask.ll

  Log Message:
  -----------
  [InstCombine] Combine and->cmp->sel->or-disjoint into and->mul (#135274)

While and->cmp->sel combines into and->mul may result in worse code on
some targets, this combine should be uniformly beneficial.

Proof: https://alive2.llvm.org/ce/z/MibAcN

---------

Co-authored-by: Matt Arsenault <arsenm2 at gmail.com>
Co-authored-by: Yingwei Zheng <dtcxzyw at qq.com>



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