[all-commits] [llvm/llvm-project] 856ef9: [RISCV] Optimize (and (icmp x, 0, neq), (icmp y, 0...

Ryan Buchner via All-commits all-commits at lists.llvm.org
Thu Nov 6 22:48:54 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 856ef9605b2307332911fe4f61be6014697bbcce
      https://github.com/llvm/llvm-project/commit/856ef9605b2307332911fe4f61be6014697bbcce
  Author: Ryan Buchner <buchner.ryan at gmail.com>
  Date:   2025-11-06 (Thu, 06 Nov 2025)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/test/CodeGen/RISCV/xaluo.ll
    M llvm/test/CodeGen/RISCV/zicond-opts.ll

  Log Message:
  -----------
  [RISCV] Optimize (and (icmp x, 0, neq), (icmp y, 0, neq)) utilizing zicond extension

PR  #166469

```
    %1 = icmp x, 0, neq
    %2 = icmp y, 0, neq
    %3 = and %1, %2
```
Origionally lowered to:
```
    %1 = snez x
    %2 = snez y
    %3 = and %1, %2
```
With optimiztion:
```
    %1 = snez x
    %3 = czero.eqz %1, y
```



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