[all-commits] [llvm/llvm-project] 5341d5: [RISCV] Combine (and (select cond, x, -1), c) to (...

Yeting Kuo via All-commits all-commits at lists.llvm.org
Thu Oct 19 01:11:26 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5341d5465dbf0b35c64c54f200af8389a8b76aef
      https://github.com/llvm/llvm-project/commit/5341d5465dbf0b35c64c54f200af8389a8b76aef
  Author: Yeting Kuo <46629943+yetingk at users.noreply.github.com>
  Date:   2023-10-19 (Thu, 19 Oct 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/test/CodeGen/RISCV/select-binop-identity.ll

  Log Message:
  -----------
  [RISCV] Combine (and (select cond, x, -1), c) to (select cond, x, (and x, c)) with Zicond. (#69563)

It's only beneficial when cond is setcc with integer equality condition
code. For other case, it has same instruction count as the original.




More information about the All-commits mailing list