[all-commits] [llvm/llvm-project] 37eb9c: [RISC-V][ISel] Remove redundant czero.eqz like 'cz...
Zhijin Zeng via All-commits
all-commits at lists.llvm.org
Sat Apr 27 22:28:35 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 37eb9c9632fb5e82827d1a0559f2279e9a9f1969
https://github.com/llvm/llvm-project/commit/37eb9c9632fb5e82827d1a0559f2279e9a9f1969
Author: Zhijin Zeng <zhijin.zeng at spacemit.com>
Date: 2024-04-28 (Sun, 28 Apr 2024)
Changed paths:
M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
M llvm/test/CodeGen/RISCV/select.ll
Log Message:
-----------
[RISC-V][ISel] Remove redundant czero.eqz like 'czero.eqz a0, a0, a0' (#90208)
In RISC-V ISel, the instruction `czero.eqz a0, a0, a0` is meaningless.
This patch does the following folds in ISel:
```
czero_eqz x, (setcc x, 0, ne) -> x
czero_nez x, (setcc x, 0, eq) -> x
```
---------
Signed-off-by: Zhijin Zeng <zhijin.zeng at spacemit.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