[all-commits] [llvm/llvm-project] 12d1cb: [InstCombine] Preserve disjoint or after folding c...

Jim Lin via All-commits all-commits at lists.llvm.org
Fri Apr 25 21:35:26 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 12d1cb1347128a49153d7b5ecd6923c0184519d3
      https://github.com/llvm/llvm-project/commit/12d1cb1347128a49153d7b5ecd6923c0184519d3
  Author: Jim Lin <jim at andestech.com>
  Date:   2025-04-26 (Sat, 26 Apr 2025)

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

  Log Message:
  -----------
  [InstCombine] Preserve disjoint or after folding casted bitwise logic (#136815)

Optimize
`or disjoint (zext/sext a) (zext/sext b))`
to
`(zext/sext (or disjoint a, b))`
without losing disjoint.

Confirmed here: https://alive2.llvm.org/ce/z/kQ5fJv.



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