[all-commits] [llvm/llvm-project] 1efd12: [InstCombine] Fold `icmp eq/ne (X *nw Z), (Y *nw Z...

Yingwei Zheng via All-commits all-commits at lists.llvm.org
Sun Sep 29 19:21:42 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1efd1227b2042b865afb7c5a260f2d96927bf911
      https://github.com/llvm/llvm-project/commit/1efd1227b2042b865afb7c5a260f2d96927bf911
  Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
  Date:   2024-09-30 (Mon, 30 Sep 2024)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
    M llvm/test/Transforms/InstCombine/icmp-mul.ll

  Log Message:
  -----------
  [InstCombine] Fold `icmp eq/ne (X *nw Z), (Y *nw Z) -> icmp eq/ne Z, 0` when `X != Y` (#110413)

Alive2: https://alive2.llvm.org/ce/z/9oDP6K
I found this pattern in
https://github.com/casadi/casadi/blob/04e75858d7e626dda62d83b862fc89fc26f52745/casadi/core/repmat.cpp#L70-L78.



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