This makes Zicond and XVentanaCondOps use the same code path.
The instructions have identical semantics.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
LGTM.
llvm/lib/Target/RISCV/RISCVISelLowering.h | ||
---|---|---|
365 | What about renaming these two nodes to SELECT_EQZ/NEZ with another NFC patch? |
llvm/lib/Target/RISCV/RISCVISelLowering.h | ||
---|---|---|
365 | SELECT_ZERO_EQZ/NEZ would be better according to their semantics. |
I was going to leave moving over the similar condops until we'd resolve questions about the extra combines, given these extensions aren't "experimental" like zicond is. But this looks fine to me - thanks.
Regarding the suggestion to rename the RISCVISD::CZERO_* nodes - I'm not sure there's much value in this, as the zicond naming is the "definitive" one and it's hard to see much use of xventacondops going forwards now there's a standard extension.
clang-format not found in user’s local PATH; not linting file.