Unverified Commit 37eb9c96 authored by Zhijin Zeng's avatar Zhijin Zeng Committed by GitHub
Browse files

[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: default avatarZhijin Zeng <zhijin.zeng@spacemit.com>
parent 2c1c887c
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment