Enable transform (X & Y) == Y ---> (~X & Y) == 0 and (X & Y) != Y ---> (~X & Y) != 0 when have Zbb extension to use more andn instruction.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/test/CodeGen/RISCV/rv32zbb-zbp.ll | ||
---|---|---|
562 | Can you pre-commit the new test cases so we can see the change here? |
llvm/test/CodeGen/RISCV/rv32zbb-zbp.ll | ||
---|---|---|
562 | Done, I added a precommit test in https://reviews.llvm.org/D116013. |
llvm/test/CodeGen/RISCV/rv32zbb-zbp.ll | ||
---|---|---|
562 | This diff doesn't yet reflect the separate test patch. You don't need to wait for the other patch to be accepted to update the diff here. You can use the other patch as the diff baseline and add it as a parent revision to this one. |
llvm/test/CodeGen/RISCV/rv32zbb-zbp.ll | ||
---|---|---|
562 | Done, I rebase to the pre-commit test, now the diff is OK. |
This is the default implementation